Pedro Kroger <[EMAIL PROTECTED]> writes:
> Hi,
>
> I'm wandering what is the equivalent scheme code for things like:
>
> \set Staff.instrument = "Violin solo"
>
> I want to define instrument's name from a scheme procedure (but I
> don't want use #{ ... #})
>
> I've tried to figure it out from the scheme files at scm but "set" is not
> the best thing to grep for in a lisp file!
A possible definition:
#(define-public (mus:set context property val)
(make-music 'ContextSpeccedMusic
'context-type context
'element (make-music 'PropertySet
'symbol property
'value val)))
\score {
\notes {
c4
#(ly:export (mus:set 'Score 'repeatCommands '((volta "93") end-repeat)))
c4 c4
#(ly:export (mus:set 'Score 'repeatCommands '((volta #f))))
c4 c4
}
}
nicolas
_______________________________________________
lilypond-user mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-user