[EMAIL PROTECTED] writes:
> lyricStaff = #(def-music-function (location voice-markup music lyrics) (markup?
> ly:music? ly:music?)
> "
> Add a Voice with lyrics and an instrument name. Syntax:
> \lyricStaff #(markup \"instrument name\")
> \notemode { c d e f }
> \lyricmode { do r� mi fa }
> "
> (let ((name (gen-unique-context)))
> #{ << \context Voice = @name <<
> \set Staff . instrument = $voice-markup
> $music >>
> \lyricsto @name \new Lyrics $lyrics
> >> #}))
>
I don't see the point. Why doesn't it work when you use $name ?
\context should also be able to take a STRING_IDENTIFIER for the id.
> May I?
I would try to excercise extreme caution in adding such
functionality. Once you add it, you have a certain reponsibility to
keep supporting this. If you add too much things, it easily becomes
spaghetti.
In addition, your feature (textual substitution), can easily lead to
confusing syntactical errors, which is why I have been so strongly
against macro languages (textual substitution) in the past.
--
Han-Wen Nienhuys | [EMAIL PROTECTED] | http://www.xs4all.nl/~hanwen
_______________________________________________
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel