lilypond-user
[Top][All Lists]
Advanced

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

Re: scheme code for \set


From: Pedro Kroger
Subject: Re: scheme code for \set
Date: Mon, 12 Jul 2004 04:44:03 -0300
User-agent: Mutt/1.5.6+20040523i

* Nicolas Sceaux (address@hidden) 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




reply via email to

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