lilypond-user
[Top][All Lists]
Advanced

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

Re: How to implement "f (second time p)" for midi?


From: Jean Abou Samra
Subject: Re: How to implement "f (second time p)" for midi?
Date: Sun, 18 Dec 2022 19:01:39 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1

Le 17/12/2022 à 04:10, Kenneth Wolcott a écrit :
   Thank you!  I copied the right hand notes so that there would be a
midi-specific version.


That sounds like you want to learn about tags… See

https://lilypond.org/doc/v2.24/Documentation/notation/different-editions-from-one-source#using-tags

You can take inspiration from this small example:

\version "2.24.0"

f_second_time_p = _\markup { \dynamic f \italic "(second time" \dynamic p \italic ")" }


\tagGroup layout,midi

mus = {
  \repeat volta 2 {
    \tag midi {
      \volta 1 <>\f
      \volta 2 <>\p
    }
    \tag layout <>\f_second_time_p
    c'1
  }
}

\score {
  \keepWithTag layout \mus
  \layout { }
}

\score {
  \keepWithTag midi \unfoldRepeats \mus
  \midi { }
}


Best,
Jean

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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