lilypond-user
[Top][All Lists]
Advanced

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

Re: Merging dynamics with music


From: mskala
Subject: Re: Merging dynamics with music
Date: Sat, 16 Sep 2023 07:58:06 -0400 (EDT)
User-agent: Alpine 2.20 (LNX 67 2015-01-07)

On Sat, 16 Sep 2023, David Kastrup wrote:

> Try
>
> \new Staff << \MyMusic \MyDynamics >>
>
> since otherwise the variables will end up in separate Staff contexts.

With the following code, the notes in the MIDI file still are both at
default velocity.  Explicitly instantiating the Staff does make a
difference in the visual output.

MyMusic = { c'1 c'1 }
MyDynamics = { s1\ppp s1\fff }

\score {
  \new Staff << \MyMusic \MyDynamics >>
  \layout { }
  \midi { }
}


-- 
Matthew Skala
mskala@ansuz.sooke.bc.ca                 People before tribes.
https://ansuz.sooke.bc.ca/



reply via email to

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