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

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to