[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Music functions and markup
From: |
Thomas Morley |
Subject: |
Re: Music functions and markup |
Date: |
Thu, 22 Dec 2016 00:51:00 +0100 |
2016-12-22 0:34 GMT+01:00 Klaus Blum <address@hidden>:
> Attention,
>
> Thomas Morley-2 wrote
>> hold = #(define-music-function (note) (ly:music?)
>> #{
>> $note \breve
>> #})
>
> produces two notes:
>
> $note will exactly produce the note given as parameter,
> \breve will add an additional breve with the same pitch.
>
> Cheers,
> Klaus
Sorry, I spoke too early.
How about:
hold = #(define-music-function (note) (ly:music?)
#{
\withMusicProperty #'duration ##{ \breve #}
$note
#})
Cheers,
Harm