|
From: | Gianmaria Lari |
Subject: | Re: change regular/staccato/staccatissimo midi duration 2.19.80 |
Date: | Mon, 25 Dec 2017 15:45:59 +0100 |
Am 25.12.2017 um 14:22 schrieb Gianmaria Lari:
This code generate some 'regular', staccato and staccatissimo notes:
\version "2.19.80"
\score {
\fixed c' {c8 d e-. f-. g-! a-! r4}
\midi{}
\layout {}
}
Is there any way to change the default duration of 'regular', staccato and staccatissimo notes?
Have a look at the definition of staccato in the file script-init.ly:
staccato = #(make-articulation "staccato"
'midi-length
(lambda (len context)
(moment-min (ly:moment-mul len (ly:make-moment 1/2))
(seconds->moment 1/2 context)))
'midi-extra-velocity 4)
Maybe this can be copied and changed?
\version "2.19.80"staccato = #(make-articulation "staccato"'midi-length(lambda (len context)(moment-min (ly:moment-mul len (ly:make-moment 1/1))(seconds->moment 1/1 context)))'midi-extra-velocity 4)\score {\fixed c' {c8 d e\staccato f-. }\midi{}\layout {}}
(ly:make-moment 1/1)
(seconds->moment 1/1 context)
'midi-extra-velocity 4
[Prev in Thread] | Current Thread | [Next in Thread] |