lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Event-listener and repeats


From: Samuel DA MOTA
Subject: Event-listener and repeats
Date: Mon, 29 Sep 2014 20:34:52 +0100

Hi,

I've some question regarding the use of the event-listener.

Is it possible to get the event-listener run after unfolding the repeats
on the music sheet?

To clarify, on the following example:

============= Lilypond file =========
\version "2.18.2"

main = {
  a \repeat volta 2 { b c }
}

\score {
  \main
}
=====================================

The event-listener will only "see" three notes and will output the
following

========
0.00000000      note    57      4       0.25000000      point-and-click 2 4
0.25000000      note    59      4       0.25000000      point-and-click 22 4
0.50000000      note    48      4       0.25000000      point-and-click 24 4
========

On the midi file, there is five notes being played, hence the output of
the event-listener does not match it (because of the repeats).

What I'd like to see

========
0.00000000      note    57      4       0.25000000      point-and-click 2 4
0.25000000      note    59      4       0.25000000      point-and-click 22 4
0.50000000      note    48      4       0.25000000      point-and-click 24 4
0.75000000      note    59      4       0.25000000      point-and-click 22 4
1.00000000      note    48      4       0.25000000      point-and-click 24 4
========

So, is it possible to first unfold all the repeat,
and then have the event-listener see all of this?

A two-steps solution would be ok for me.
Like, first reading the music and apply the unfold-repeat scheme
function to generate an equivalent lilypond file with no repeat in it.

Also since lilypond do unfold the music when generating the midi file,
is there a way to change the midi generator to produce a file like the output 
of the event-listener?

Regards,
--
Sam



reply via email to

[Prev in Thread] Current Thread [Next in Thread]