Re: Writing markup in lisp

2013-01-26 Thread Paul Morris
On Jan 26, 2013, at 12:42 PM, David Kastrup wrote: > Not quite: you'll need > > \addInstrumentDefinition #"contrabassoon" > #`((shortInstrumentName . ,#{ \markup { ... } #} )) > > or you'll have the quoted equivalent of \markup in your definition. Thanks David! _

Re: Writing markup in lisp

2013-01-26 Thread Alberto Simões
On 26/01/13 17:42, David Kastrup wrote: Paul Morris writes: Please disregard my last message. I now see that you wanted to use \markup in the following scheme code: \addInstrumentDefinition #"contrabassoon" #`((shortInstrumentName . "Cbsn.")) So I think something like this should work:

Re: Writing markup in lisp

2013-01-26 Thread David Kastrup
Paul Morris writes: > Please disregard my last message. I now see that you wanted to use > \markup in the following scheme code: > > \addInstrumentDefinition #"contrabassoon" > #`((shortInstrumentName . "Cbsn.")) > > > So I think something like this should work: > > \addInstrumentDefinition #"c

Re: Writing markup in lisp

2013-01-26 Thread Paul Morris
Please disregard my last message. I now see that you wanted to use \markup in the following scheme code: \addInstrumentDefinition #"contrabassoon" #`((shortInstrumentName . "Cbsn.")) So I think something like this should work: \addInstrumentDefinition #"contrabassoon" #`((shortInstrumentNa

Re: Writing markup in lisp

2013-01-26 Thread Paul Morris
Hello Alberto, Looks like you've already figured it out, but you can also wrap lilypond code in #{ ... #} to embed it in scheme code. This is particularly helpful for use with \markup. So I think the following should also work (although I haven't tried it): \set Staff.instrumentName = #{

Re: Writing markup in lisp

2013-01-26 Thread Alberto Simões
And got there: \addInstrumentDefinition #"SC" #`((shortInstrumentName . ,(markup #:center-column (#:line ("S") #:line ("C") Thank you Alberto On 26/01/13 16:05, Alberto Simões wrote: Hello I am trying to use this kind of approach to

Re: Writing markup in lisp

2013-01-26 Thread Alberto Simões
Almost there... \addInstrumentDefinition #"SC" #`((shortInstrumentName . ,(markup #:column (#:line ("S") #:line ("C") now if I can center the letters... On 26/01/13 16:05, Alberto Simões wrote: Hello I am trying to use this kind of approac

Writing markup in lisp

2013-01-26 Thread Alberto Simões
Hello I am trying to use this kind of approach to define instrument names/changes: \addInstrumentDefinition #"contrabassoon" #`((shortInstrumentName . "Cbsn.")) just like it is explained in http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Writing-parts Now, I needed a special ins