Instrument in score block?

2014-06-10 Thread Maarten Deen
Is it possible to define headers (like instrument) in the score context? I've 
tried, and nothing comes up.


Background: I play trumpet and use Lilypond to transpose music. You have parts 
in F, A, E flat, whatever, and my trumpets are tuned in B flat or C.


So what I do is I write the score in an lyi file and include that in a ly file 
that does the transposing.


So I get something like below. Two book parts, one with suffix C (so the 
filename is score-C.pdf) and one with suffix Bes. In the \score I do the 
transposing. And of course because I do the transposing there, I can only set 
the instrument there. It is important that you specify which trumpet to take, 
otherwise you're a full note off ofcourse.


But as I said, this does not work. Are there other options?

\book {
\bookOutputSuffix "C"

\score {
\transpose c bes, { \partI }
\header { instrument = "Trumpet in C" }
\layout { ragged-last = ##f }

} %% \score

} %%\book

\book {
\bookOutputSuffix "Bes"

\score {
\transpose bes bes { \partI }
\header { instrument = "Trumpet in Bes" }
\layout { ragged-last = ##f }

} %% \score

} %%\book


Regards,
Maarten

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Instrument in score block?

2014-06-10 Thread David Kastrup
Maarten Deen  writes:

> Is it possible to define headers (like instrument) in the score
> context? I've tried, and nothing comes up.
>
> Background: I play trumpet and use Lilypond to transpose music. You
> have parts in F, A, E flat, whatever, and my trumpets are tuned in B
> flat or C.
>
> So what I do is I write the score in an lyi file and include that in a
> ly file that does the transposing.

> \book {
>   \bookOutputSuffix "C"
>   
>   \score {
>   \transpose c bes, { \partI }
>   \header { instrument = "Trumpet in C" }
>   \layout { ragged-last = ##f }
>   
>   } %% \score
>
> } %%\book
>
> \book {
>   \bookOutputSuffix "Bes"
>   
>   \score {
>   \transpose bes bes { \partI }
>   \header { instrument = "Trumpet in Bes" }
>   \layout { ragged-last = ##f }
>   
>   } %% \score
>
> } %%\book

Not a complete working example.  Anything wrong with

partI = { c'1 }
\book {
	\bookOutputSuffix "C"
	\header { instrument = "Trumpet in C" }
	\score {
		\transpose c bes, { \partI }
		\layout { ragged-last = ##f }
	} %% \score
} %%\book

\book {
	\bookOutputSuffix "Bes"
	\header { instrument = "Trumpet in Bes" }
	\score {
		\transpose bes bes { \partI }
		\layout { ragged-last = ##f }
		
	} %% \score

} %%\book


-- 
David Kastrup
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Instrument in score block?

2014-06-10 Thread Maarten Deen

On 2014-06-10 21:52, David Kastrup wrote:



Not a complete working example.  Anything wrong with


Heh, that simple. Makes sense, the header block outside the score block.
Thanks.

Regards,
Maarten


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user