[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Music functions and markup
From: |
David Kastrup |
Subject: |
Re: Music functions and markup |
Date: |
Thu, 22 Dec 2016 12:58:02 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Thomas Morley <address@hidden> writes:
> 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
> #})
This is... interesting.
\hold <c e>
will not work, though.
--
David Kastrup