Re: multi-instrument parts

2013-01-18 Thread Kieren MacMillan
Hi Jay, This doesn't Do The Right Thing™ when the key signatures are abstracted, e.g., \version 2.17.10 #(define (adjust-note mus key currkey) (cond ((or (eq? (ly:music-property mus 'name) 'NoteEvent) (eq? (ly:music-property mus 'name) 'KeyChangeEvent))

Re: multi-instrument parts

2013-01-16 Thread Jan-Peter Voigt
Hi Kieren, just stumbled across this thread. I once was trying to create an engraver, that recognizes transposition/instrument changes and inserts a time signature there. (IIRC it was a piece with a change between oboe and english horn) In the end I inserted tagged key-sigs, whenever I

Re: multi-instrument parts

2013-01-16 Thread Jay Anderson
On Tue, Jan 15, 2013 at 10:43 PM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: There's this: http://lsr.dsi.unimi.it/LSR/Item?id=697 which is useful when the transposition changes mid-piece (like for clarinets, horns, and trumpets). Also you don't have to think about the 'from' pitch.

multi-instrument parts

2013-01-15 Thread Kieren MacMillan
Hello all! Has anyone successfully written multi-instrument player parts correctly (i.e., using \addInstrumentDefinition and \switchInstrument, and not manually \transpose-ing bits)? I would love to see an example, so I can fix my hacks. Even seeing this non-working [in several ways… like why

Re: multi-instrument parts

2013-01-15 Thread Keith OHara
Kieren MacMillan kieren_macmillan at sympatico.ca writes: Has anyone successfully written multi-instrument player parts [...] using \addInstrumentDefinition and \switchInstrument [...] ? Almost certainly not. \addInstrumentDefinition is inconvenient. Google says: No results found for

Re: multi-instrument parts

2013-01-15 Thread Kieren MacMillan
Hi Keith, Thank you so much for the detailed and considered response. Boo. I really wish Lily would Do The Right Thing™ with regard to transposing parts. I want to be able to say \switchInstrument at any time, and easily generate C and transposed scores/parts (with all key signatures

Re: multi-instrument parts

2013-01-15 Thread Kieren MacMillan
p.s. It would help immensely if I could at least say \tag #'part { \transpose c d } c4 d e f and then use the tag filter to leave the transposition out of the C-score. However, this doesn't seem to work — any ideas how I can accomplish such a thing (or very similar)? Thanks, Kieren.

Re: multi-instrument parts

2013-01-15 Thread Keith OHara
On Tue, 15 Jan 2013 19:41:00 -0800, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: Boo. I really wish Lily would Do The Right Thing™ with regard to transposing parts. I want [...] perhaps I'll put together an official feature request… Almost certainly, \instrumentSwitch was written

Re: multi-instrument parts

2013-01-15 Thread Jay Anderson
On Tue, Jan 15, 2013 at 10:21 PM, Keith OHara k-ohara5...@oco.net wrote: On Tue, 15 Jan 2013 19:41:00 -0800, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: Boo. I really wish Lily would Do The Right Thing™ with regard to transposing parts. I want [...] perhaps I'll put together an

Re: multi-instrument parts

2013-01-15 Thread Kieren MacMillan
Hi Keith, Almost certainly, \instrumentSwitch was written in response to a similar request. If I remember correctly, Han-Wen wrote it and I paid him a bounty for it… =) you can store the music in a variable, and perform the action of transposing only where you need it. Yes, of course,

Re: multi-instrument parts

2013-01-15 Thread Kieren MacMillan
Hi Jay, There's this: http://lsr.dsi.unimi.it/LSR/Item?id=697 which is useful when the transposition changes mid-piece (like for clarinets, horns, and trumpets). Also you don't have to think about the 'from' pitch. You only need the 'to' pitch. That doesn't seem to handle key signatures very

Re: multi-instrument parts

2013-01-15 Thread Keith OHara
On Tue, 15 Jan 2013 21:43:04 -0800, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: I've been using it for 10 years now. Sorry, I've seen so many names they are all a jumble in my head. In that case, for the part where the player switches instruments, you'd probably like to store

Re: multi-instrument parts

2013-01-15 Thread Kieren MacMillan
Hi Keith, for the part where the player switches instruments, you'd probably like to store the as-written pitches along with the transpositions. Then you can use LilyPond's quoting system to get the music in concert pitch for the C-score. Now we're getting somewhere! Thanks! I will test

Re: multi-instrument parts

2013-01-15 Thread Kieren MacMillan
Hi Keith, for the part where the player switches instruments, you'd probably like to store the as-written pitches along with the transpositions. Then you can use LilyPond's quoting system to get the music in concert pitch for the C-score. Now we're getting somewhere! Thanks! I will test

Re: multi-instrument parts

2013-01-15 Thread David Kastrup
Keith OHara k-ohara5...@oco.net writes: On Tue, 15 Jan 2013 21:43:04 -0800, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: I've been using it for 10 years now. Sorry, I've seen so many names they are all a jumble in my head. And you are not even likely to keep confusing Keith with

Re: multi-instrument parts

2013-01-15 Thread Paul Scott
On Wed, Jan 16, 2013 at 01:48:21AM -0500, Kieren MacMillan wrote: Hi Keith, for the part where the player switches instruments, you'd probably like to store the as-written pitches along with the transpositions. Then you can use LilyPond's quoting system to get the music in concert