lilypond-user
[Top][All Lists]
Advanced

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

Hidden dynamic that can be heard on midi ouput


From: Paolo Prete
Subject: Hidden dynamic that can be heard on midi ouput
Date: Mon, 8 Jun 2020 18:33:01 +0200

Hello,

it can be useful to create dynamics that can be heard only in the midi output. Then I used the below procedure. However, if I try to make a function with the same command, there's a syntax error. How can I fix it?
Thanks!


%%%%%%%%%%%%%%
midiDynamic = #(define-music-function (parser location dyn) (ly:music?)
#{ -\tag #'display \! -\tag #'midi $dyn #})

music = {

c'\pp

% WORKS
c'-\tag #'display \! -\tag #'midi \ff

% DOESN'T WORK, FIXME
% c'\midiDynamic \fff

}

\score {
  \keepWithTag #'layout
  \new Staff { \music }
  \layout {}
}

\score {
  \keepWithTag #'midi
  \new Staff { \music }
  \midi {}
}
%%%%%%%%%%%%%%

reply via email to

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