lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

function variable question


From: Hugh Myers
Subject: function variable question
Date: Fri, 18 Dec 2009 14:38:38 -0700

Given:

flashNote = #(define-music-function (parser location note)(ly:music?) #{
  $note s2. \pageBreak
  #}
)

I'd like to modify it so that a fixed duration for the note can be
within the function rather than in the calling sequence. Like so:

instead of

  \flashNote e,4

I'd rather

  \flashNote e,

I've tried various versions of $note4, {$note}4 etc--- all producing
errors of course. Clues? Suggestions?

--hsm




reply via email to

[Prev in Thread] Current Thread [Next in Thread]