On 25/02/18 21:07, pe...@chubb.wattle.id.au wrote: >>>>>> "J" == J Martin Rushton <martinrushto...@btinternet.com> writes: > > J> to set a composition which starts with a single instrument before > J> bringing in the whole ensemble. I don't want to break it up into > J> multiple scores because I want the midi to play through as a single > J> performance. > > > Something like this? I think it'd look better with a line break after > the solo section, but this should give you an idea. Your example had > everything in parallel, instead of a sequential part. > > \version "2.21.0" > solo = \relative c'' { c4 c c c } > > desc = \relative c'' { b b b b } > treb = \relative c'' { g g g g } > bass = \relative c { e e e e } > > \score { > { % sequential Music that starts with the solo > \new Staff = "treb" \solo > > << % and now a parallel section of three staves. > % The label marks which one was the solo before. > \new Staff \desc > \context Staff = "treb" \treb > \new Staff { \clef "F" \bass > >> > } > >> > } >
Thank you to David, Karlin & Peter. I've sorted out the silly typo and understood that I need a second set of brackets to serialise the expressions. Thanks also for pointing out that I needed \context rather than \new. I'm using the script below which, although not perfect, enables me to get on with music not programming. The only slight niggle is whether I can persuade Lily to use the full instrument names at the start of the main section rather than the short names. Once again, thanks for your help. Martin --------------------%<-------------------- introPart = \new Staff ="tenor" \with { instrumentName = "Tenor" midiInstrument = "recorder" shortInstrumentName = "Te" } { \clef treble \intro } descantRecorderPart = \new Staff \with { alignAboveContext = #"tenor" instrumentName = "Descant" shortInstrumentName = "De" midiInstrument = "recorder" } { \clef "treble^8" \descantRecorder } trebleRecorderPart = \new Staff \with { alignAboveContext = #"tenor" instrumentName = "Treble" shortInstrumentName = "Tr" midiInstrument = "recorder" } { \clef "treble" \trebleRecorder } tenorRecorderPart = \context Staff ="tenor" \with { instrumentName = "Tenor" midiInstrument = "recorder" shortInstrumentName = "Te" } { \clef treble \tenorRecorder } bassRecorderPart = \new Staff \with { instrumentName = "Bass" midiInstrument = "recorder" shortInstrumentName = "Ba" } { \clef "bass^8" \bassRecorder } \book { \score { { \introPart << \descantRecorderPart \trebleRecorderPart \tenorRecorderPart \bassRecorderPart >> } \layout {} \midi {} } }
signature.asc
Description: OpenPGP digital signature
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user