lilypond-user
[Top][All Lists]
Advanced

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

Re: Invisible midi layer for specific measures


From: Paolo Prete
Subject: Re: Invisible midi layer for specific measures
Date: Mon, 11 Nov 2019 22:12:55 +0000 (UTC)

Thanks Aaron,

it worked perfectly.

Il lunedì 11 novembre 2019, 21:29:36 CET, Aaron Hill <address@hidden> ha scritto:


On 2019-11-11 12:16 pm, Paolo Prete wrote:

> Thank you Karl for your help.
> However, in the way you suggested, I have to repeat the music of the
> first \score block into the second \score block for the first and
> third measure of my snippet. I would like to avoid this redundancy,
> and I would like to specify the notes of "custom" generated midi only
> for for a subset of specific measures.


Variables and tags are helpful.  Consider:

%%%%
\version "2.19.83"

asdf = \fixed c' {
  | c4 d e2
  | \tag #'display { <f g>1_\trill }
    \tag #'midi { \repeat unfold 4 { f8 g } }
  | a4 b c'2
}

\score { \keepWithTag #'display \asdf \layout {} }
\score { \keepWithTag #'midi \asdf \midi { \tempo 1 = 60 } }
%%%%


-- Aaron Hill



reply via email to

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