Re: Variable assignment in music functions

2011-11-03 Thread Jean-Charles Malahieude
Le 03/11/2011 20:02, David Kastrup disait : \paper { tocname = "Inhaltsverzeichnis" } #(define-markup-command (toc layout props) () (interpret-markup layout props (ly:output-def-lookup layout 'tocname "none"))) \markup \toc But the list is a bit longer (cf. enclosure) I first def

Re: Variable assignment in music functions

2011-11-03 Thread Jean-Charles Malahieude
Le 03/11/2011 20:02, David Kastrup disait : Jean-Charles Malahieude writes: Le 03/11/2011 19:02, Michael Ellis disait : This allows me to do \set midiInstrument = #(cueInstrument 'get) in my cueNotes and similar functions and the choice of instruments can be set within the .ly file by

Re: Variable assignment in music functions

2011-11-03 Thread David Kastrup
Jean-Charles Malahieude writes: > Le 03/11/2011 19:02, Michael Ellis disait : >> This allows me to do >> >> \set midiInstrument = #(cueInstrument 'get) >> >> in my cueNotes and similar functions and the choice of instruments can >> be set within the .ly file by >> >> #(setMainCueClapIn

Re: Variable assignment in music functions

2011-11-03 Thread Jean-Charles Malahieude
Le 03/11/2011 19:02, Michael Ellis disait : Thanks for the suggestion, Jean-Charles. I think I've now got a solution that's fairly satisfactory: In my include file, I now have: %-- #(define (make-named-instrument default-name) (define

Re: Variable assignment in music functions

2011-11-03 Thread Michael Ellis
On Thu, Nov 3, 2011 at 12:04 PM, David Kastrup wrote: > Michael Ellis writes: > >> What's the right way to define a function that assigns string values >> to LilyPond variables? I'm trying to create a function in an include >> file that allows me to assign different values to variables used as >>

Re: Variable assignment in music functions

2011-11-03 Thread David Kastrup
Michael Ellis writes: > What's the right way to define a function that assigns string values > to LilyPond variables? I'm trying to create a function in an include > file that allows me to assign different values to variables used as > midi instrument specifiers. > %--

Variable assignment in music functions

2011-11-03 Thread Michael Ellis
What's the right way to define a function that assigns string values to LilyPond variables? I'm trying to create a function in an include file that allows me to assign different values to variables used as midi instrument specifiers. % setMain