lilypond-user
[Top][All Lists]
Advanced

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

template


From: chip
Subject: template
Date: Mon, 05 Jan 2009 19:44:23 -0700
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

I have finally come up with a template that works well for a horn section for a band, I use it for TexMex/Tejano transcriptions. It has a score which includes trumpets 1,2, Alto Sax 1,2, Tenor Sax, Bari Sax, Trombone 1 Bass Clef and Trombone 2 Treble Clef (requested by one of our trombone players). It prints the score and creates the separate horn parts files. It also has overrides for bar numbering, auto-beaming, zigzag glissando, multi-measure rests and numeric time sig. The score prints the instrument name and the shortinstrumentnames on each successive page. On the individual parts the instrument name is above the top staff on the left in the 'piece' header position. And it includes english.ly so sharps and flats are simply a 'f' or 's', not the unfamiliar (to everybody I know) 'es' and 'is'. The first staff indentation in the parts is set to zero. If anyone is interested in this template I have included it below for your perusal. If it can be used anywhere in the Lilypond docs, well, that'd be great too.

Regards,
Chip
==========================

% LilyPond
\include "english.ly"
\version "2.11.65"
\header{
   title = "Title"
   composer = "ComposerName"
   arranger = "ArrangerName"
}
global = { \time 4/4  \key c \major \tempo 4=107
 #(override-auto-beam-setting '(end 1 8 * *) 1 4 'Staff)
 #(override-auto-beam-setting '(end 1 8 * *) 2 4 'Staff)
 #(override-auto-beam-setting '(end 1 8 * *) 3 4 'Staff)
 \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
 \override Score.BarNumber #'break-visibility = #end-of-line-invisible
 \override Score.BarNumber #'self-alignment-X = #-1
 \override Glissando #'thickness = #3
 \override Glissando #'style = #'zigzag
 \override Glissando #'minimum-length = #6
 \override Glissando #'springs-and-rods = #ly:spanner::set-spacing-rods
 \override MultiMeasureRest #'expand-limit = 1
 \set Score.skipBars = ##t
 \numericTimeSignature
}
\paper {
top-margin = 0.1\cm
page-top-space = 0.1\cm
ragged-bottom = ##t
left-margin = 20\mm
line-width = 175\mm
}

% ------ Trumpet 1------
trpta = {
% Notes here -----
a b c d
}
trumpeta = \transpose c d \relative c'' {
 \global
 \set Staff.instrumentName = #"Trumpet 1"
 \set Staff.shortInstrumentName = #"Trpt 1"
 \clef treble
 << \trpta >>
 }

% ------ Trumpet 2------
trptb = {
% Notes here -----
a b c d
}
trumpetb = \transpose c d \relative c'' {
 \global
 \set Staff.instrumentName = #"Trumpet 2"
 \set Staff.shortInstrumentName = #"Trpt 2"
 \clef treble
 << \trptb >>
}

% ------ Alto Sax 1 ------
altoa = {
% Notes here -----
a b c d
}
altosaxa = \transpose c a \relative c'' {
 \global
 \set Staff.instrumentName = #"Alto Sax 1"
 \set Staff.shortInstrumentName = #"Alto"
 \clef treble
 << \altoa >>
}

% ------ Alto Sax 2 -----
altob = {
% Notes here -----
a b c d
}
altosaxb = \transpose c a \relative c'' {
 \global
 \set Staff.instrumentName = #"Alto Sax 2"
 \set Staff.shortInstrumentName = #"Alto"
 \clef treble
 << \altob >>
}

% ------ Tenor------
tenor = {
% Notes here -----
a b c d
}
tenorsax = \transpose c d \relative c'' {
 \global
 \set Staff.instrumentName = #"Tenor Sax"
 \set Staff.shortInstrumentName = #"Tnr Sax"
 \clef treble
 << \tenor >>
}

% ------ Bari------
bari = {
% Notes here -----
a b c d
}
barisax =  \transpose c a \relative c''{
 \global
 \set Staff.instrumentName = #"Bari Sax"
 \set Staff.shortInstrumentName = #"Btn Sax"
 \clef treble
 << \bari >>
}

% ------ Trombone Bass Clef------
tbonea = {
% Notes here -----
a b c d
}
trombonea = \relative c {
 \global
 \set Staff.instrumentName = #"Trombone 1"
 \set Staff.shortInstrumentName = #"Tbn 1"
 \clef bass
 << \tbonea >>
}

% ------ Trombone Treble Clef------
tboneb= {
% Notes here -----
a b c d
}
tromboneb = \transpose c d \relative c' {
 \global
 \set Staff.instrumentName = #"Trombone 2"
 \set Staff.shortInstrumentName = #"Tbn 2"
 \clef treble
 << \tboneb >>
}

\book { \score {
 <<
   \new StaffGroup = "trumpets" <<
        \new Staff = "trpta" \trumpeta
            \new Staff = "trptb" \trumpetb >>
   \new StaffGroup = "saxes" <<
            \new Staff = "altoa" \altosaxa
            \new Staff = "altob" \altosaxb
            \new Staff = "tenor" \tenorsax
            \new Staff = "bari" \barisax >>
   \new StaffGroup = "trombones" <<
            \new Staff = "tbonea" \trombonea
        \new Staff = "tboneb" \tromboneb>>
 >> } }

\book { \score { << \new Staff = "trumpeta" \with { \remove Instrument_name_engraver } \trumpeta >> \header {piece="Trumpet 1"} \layout { indent = 0\mm} } } \book { \score { << \new Staff = "trumpetb" \with { \remove Instrument_name_engraver } \trumpetb >> \header {piece="Trumpet 2"} \layout { indent = 0\mm} } } \book { \score { << \new Staff = "altosaxa" \with { \remove Instrument_name_engraver } \altosaxa >> \header {piece="Alto Sax 1"} \layout { indent = 0\mm} } } \book { \score { << \new Staff = "altosaxb" \with { \remove Instrument_name_engraver } \altosaxb >> \header {piece="Alto Sax 2"} \layout { indent = 0\mm} } } \book { \score { << \new Staff = "tenorsax" \with { \remove Instrument_name_engraver } \tenorsax >> \header {piece="Tenor Sax"} \layout { indent = 0\mm} } } \book { \score { << \new Staff = "barisax" \with { \remove Instrument_name_engraver } \barisax >> \header {piece="Baritone Sax"} \layout { indent = 0\mm} } } \book { \score { << \new Staff = "trombonea" \with { \remove Instrument_name_engraver } \trombonea >> \header {piece="Trombone Base Clef"} \layout { indent = 0\mm} } } \book { \score { << \new Staff = "tromboneb" \with { \remove Instrument_name_engraver } \tromboneb >> \header {piece="Trombone Treble Clef"} \layout { indent = 0\mm} } }
\layout { \context { \Score } }




reply via email to

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