[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Music functions and markup
From: |
Simon Albrecht |
Subject: |
Re: Music functions and markup |
Date: |
Thu, 22 Dec 2016 14:24:38 +0100 |
On 22.12.2016 00:51, Thomas Morley wrote:
hold = #(define-music-function (note) (ly:music?)
#{
\withMusicProperty #'duration ##{ \breve #}
$note
#})
Wow! Always so much to discover in LilyPond :-)
And look how much the function definition can be simplified:
hold = #(define-music-function (note) (ly:music?)
(withMusicProperty 'duration breve note))
Though maybe it’s less confusing as
hold = #(define-music-function (note) (ly:music?)
(withMusicProperty 'duration (ly:make-duration -1 0) note))
Best, Simon