On Thu, 25 Jun 2015 at 11:37 Marc Hohl <[email protected]> wrote:
> Am 25.06.2015 um 12:00 schrieb Orm Finnendahl:
> [...]
> > violin-music.ly (containing the music only)
>
> To make life easier, I'd use violin-music.ily to make clear
> that this is an _included_ file, not a standalone compilable one.
>
> > violin.ly (containing the part layout and including violin-music.ly)
> > score.ly (containing the score layout and including violin-music.ly)
> >
> > IMHO the extra file is well worth the gained clarity and flexibility
> > for fine-tuning score and part layout. In addition I keep layout files
> > and files containing the music in different directories.
>
> +1
>
I do something similar. This also illustrates the use of \transposition and
\transpose to get correct pitch playback...
Chris
----------------------------
PieceNameMusic.ly : containing ALL the music like:
SopranoCornetMusic = {
\transpose ef c
{
\relative c'{
c'2.\p (c4 %1
c1) %2
r4 c\< (d e%3
f2\! f2 %4
f2\> e2\!) %5
}
---------------------
PieceNameVoices.ly : define all the voices:
SopranoCornetVoice = \new Voice {
\clef treble
\key c \major
\transposition ef'
\set Staff.midiInstrument = #"trumpet"
\dynamicsOnOneLine
\time 4/4
\transpose c bf,{
\SopranoCornetMusic
}
} %
SoloCornetVoice = \new Voice {
\transposition bf
\set Staff.midiInstrument = #"trumpet"
\dynamicsOnOneLine
\clef treble
\key f \major
\transpose c bf,{
\SoloCornetMusic
}
} %
------------------------------
PieceName.ly : Master file, like
\include "english.ly"
\include "PieceNameMusic.ly"
\include "PieceNameVoices.ly"
global = {
... stuff ...
}
\paper { ... }
\header { ... }
music =
{
<<
\new StaffGroup <<
\tag #'score \tag #'sop \new Staff \with { instrumentName = #"Soprano
Cornet"
shortInstrumentName = #"Eb Cn" } << \global \Marks
\SopranoCornetVoice >>
\tag #'score \tag #'solc \new Staff \with { instrumentName = #"Solo
cornet"
shortInstrumentName = #"S Cn" } << \global
\Marks \SoloCornetVoice >>
etc.
}
------------
PieceNameInstrumentName.ly : individual part(s):
\include "PieceName.ly"
#(set-global-staff-size 20)
\header{ instrument = "Solo cornet" }
\score {
\keepWithTag #'solc \music
\layout {
\context
{
\Score
\override SpacingSpanner.base-shortest-duration = #(ly:make-moment
1/16)
}
\context
{
\Staff
\remove Instrument_name_engraver
}
}
\midi { }
}
------------
PieceNameScore.ly:
\include "PieceName.ly"
#(set-default-paper-size "a4landscape")
#(set-global-staff-size 14)
\score {
\keepWithTag #'score \music
\layout {
indent = 2.0\cm
short-indent = 1\cm
}
\midi { }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user