Re: Programmatically building music-function names

2016-01-15 Thread Caio Giovaneti de Barros
On 15-01-2016 15:06, Chris Yate wrote: What I'm trying to do instead looks like: ``` printTheScore = #(define-music-function (parser location number ) (string? ) #{ \score { \music#number } #}) \printTheScore "One" \printTheScore "Two" ``` Maybe something like this... but If I

Programmatically building music-function names

2016-01-15 Thread Chris Yate
Hi, I'm trying to typeset a number of short pieces into multiple scores in one file. I can do this manually, as: ``` musicOne = \relative c'' { g4 a b c } musicTwo = \relative c'' { g4 a b c } \score { \musicOne } \score { \musicTwo } ``` However, there's a lot more common stuff in my real

Re: Programmatically building music-function names

2016-01-15 Thread David Kastrup
Chris Yate writes: > Hi, > > I'm trying to typeset a number of short pieces into multiple scores in one > file. I can do this manually, as: > This doesn't work; my substitution syntax is clearly wrong here, but > I'd be interested to see if there's a way to do it. Or does

Re: Programmatically building music-function names

2016-01-15 Thread Urs Liska
Am 15.01.2016 um 18:06 schrieb Chris Yate: > Hi, > > I'm trying to typeset a number of short pieces into multiple scores in > one file. I can do this manually, as: > ... > > I've attached a ly file including the code I've pasted here. > > thanks, > > Chris > Hi Chris, I think (if I didn't

Re: Programmatically building music-function names

2016-01-15 Thread Chris Yate
On 15 Jan 2016 17:26, "David Kastrup" wrote: > > Chris Yate writes: > > > Hi, > > > > I'm trying to typeset a number of short pieces into multiple scores in one > > file. I can do this manually, as: > > > > This doesn't work; my substitution syntax is clearly