Re: Quilismas in midi
Timothy Lanfear <[email protected]>
| Newsgroups | gmane.comp.gnu.lilypond.general |
|---|---|
| Message-ID | <[email protected]> |
On 26/08/2026 15:18, Fr. Samuel Springuel wrote:
> Performance wise, a quilisma is interpreted as extending the note which precedes it (either dotting it or doubling it, depending on preference). The note represented by the quilisma itself is of a normal duration. Is there a way for the quilisma function to be modified to do this so that the midi comes out with the correct durations?
I'm unsure if this function behaves exactly as you would like, but it
shouldn't be too much work to adjust to your preference. The
make-relative macro ensures the returned pitches are correct if you
enter your music in relative mode.
new_quilisma = #(define-music-function (notea noteb) (ly:music? ly:music?)
(make-relative (notea noteb)
#{ #notea #noteb #}
#{
\scaleDurations 3/2 $notea
\scaleDurations 1/1
\tweak NoteHead.stencil #ly:text-interface::print
\tweak NoteHead.text \markup \musicglyph "scripts.prall"
\tweak NoteHead.X-offset #0.8
$noteb
#}))
\score {
{
\new_quilisma e' f' g'
}
\layout {}
\midi {}
}
--
Timothy Lanfear, Bristol, UK.