lilypond-devel
[Top][All Lists]
Advanced

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

Re: Discussion: Improved Scheme interface for finding contexts


From: Jean Abou Samra
Subject: Re: Discussion: Improved Scheme interface for finding contexts
Date: Tue, 11 Jan 2022 23:15:27 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1



Le 11/01/2022 à 23:12, Dan Eble a écrit :
On Jan 11, 2022, at 11:35, Jean Abou Samra <jean@abou-samra.fr> wrote:
(ly:context-find-id context)
    (No direction: there cannot be two contexts with the
    same ID, can there?  I cannot imagine
Allow me:

<<
   \new PianoStaff <<
     \new Staff = "RH" ...
     \new Staff = "LH" ...
   >>
   \new PianoStaff <<
     \new Staff = "RH" ...
     \new Staff = "LH" ...
   >>
Another example is a user who uses \partCombine in more than one Staff.  There 
will be multiple Voices with the same ID because they are baked into the 
implementation:

      #{ \context Staff <<
           \context Voice = "one" \with #one-context-settings { #skip }
           \context Voice = "two" \with #two-context-settings { #skip }
           \context Voice = "shared" \with #shared-context-settings { #skip }
           \context Voice = "solo" { #skip }
           \context NullVoice = "null" { #skip }
           #pc-music
           #(make-part-combine-marks
             default-part-combine-mark-state-machine split-list)
         >> #} ))



Ah, ok. Seems like I misunderstood the whole
concept of having context IDs...

Thanks for correcting me.

Regards,
Jean




reply via email to

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