On 23.02.2018 19:02, Paolo Prete wrote:
> The following code doesn't compile and I wonder if I can solve that by
> using another syntax...
This works:
%%%%%%%%%%%%
\version "2.19.80"
fun =
#(define-music-function
(num note post)
(number? ly:duration? ly:music?)
#{ c'4 $post #})
\score {
{
\fun #1 4 ( d' 4 )
}
}
%%%%%%%%%%%
Best, Simon