* Nicolas Sceaux ([EMAIL PROTECTED]) wrote:
> A possible definition:

Thanks for your help.
If I do something like:

>     \notes {
>         c4
>         #(ly:export (mus:set 'Staff 'instrument "violin"))

it works beautifully,

But it doesn't if I do:

#(define-public (mus:set context property val)
  (make-music 'ContextSpeccedMusic
    'context-type context
    'element (make-music 'PropertySet
               'symbol property
               'value val)))

#(define (instr-name name)
   #(ly:export (mus:set 'Staff 'instrument name)))

\score {
    \notes {
        #(instr-name "violin")
        c d e
    }
}

Any suggestion?

Pedro


_______________________________________________
lilypond-user mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to