|
From: | Malte Meyn |
Subject: | Re: change regular/staccato/staccatissimo midi duration 2.19.80 |
Date: | Mon, 25 Dec 2017 14:42:43 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
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?
[Prev in Thread] | Current Thread | [Next in Thread] |