[Top][All Lists]

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

custom dynamics with midi output

From: Karim Haddad
Subject: custom dynamics with midi output
Date: Sat, 8 Jun 2019 17:59:27 +0200
User-agent: NeoMutt/20170113 (1.7.2)

Dear All,

In the following documentation's snippet :

  doctitle = "Creating custom dynamics in MIDI output"
} % begin verbatim

#(define (myDynamics dynamic)
    (if (equal? dynamic "rfz")
      (default-dynamic-absolute-volume dynamic)))

\score {
  \new Staff {
    \set Staff.midiInstrument = #"cello"
    \set Score.dynamicAbsoluteVolumeFunction = #myDynamics
    \new Voice {
      \relative {
        a'4\pp b c-\rfz
  \layout {}
  \midi {}

all works well. But if we need some more dynamic customization like :

psub = \markup {\center-column { \dynamic p } \lower #0.5 \normal-text { \tiny 
\italic sub.}}
dpsub=#(make-dynamic-script psub)

#(define (myDynamics dynamic)
    (if (equal? dynamic "dpsub")
      (default-dynamic-absolute-volume dynamic)))

this doesn't work. Maybe should we use another scheme function in this case.
Any ideas ?

thank you and best to you all.

Karim Haddad

webpage :

reply via email to

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