lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instrument in score block?


From: David Kastrup
Subject: Re: Instrument in score block?
Date: Tue, 10 Jun 2014 21:52:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Maarten Deen <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]