lilypond-user
[Top][All Lists]
Advanced

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

Re: looking for examples


From: chip
Subject: Re: looking for examples
Date: Sat, 23 May 2009 17:24:34 -0700
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)


Lewis Overton wrote:
... It's more the assembly that has me stumbling around looking for light.

Lewy
Lewy,
Below I've pasted in my template I use for a horn section that includes 2 trumpets, 3 saxes and 2 'bones. It creates a full score and the individual parts. Another user, Bill, says this template was just what he was looking for just the other day. Look for the thread titled "transposing, etc" in the mailing list archives to see the entire message. Load it up and take a look at it, I think you will find it will do pretty much what you need.
Regards,
Chip

% LilyPond
\include "english.ly"
\version "2.13.0"
\header{
   title = ""
   composer = "As Recorded By: "
   arranger = "Transcribed by: Chip Wiegand"
}
global = { \time 4/4 \key c \major
 #(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
}
%%%%% This setup should give me the maximum usable staffs per page %%%%%
\paper {
top-margin = 0.1\cm
page-top-space = 0.1\cm
ragged-bottom = ##t
left-margin = 20\mm
line-width = 175\mm
}

%%%%% This script sets the 'footer' of the last page to show the current date %%%%%
tagline = \markup {
     \simple #(strftime "%b %d, %Y" (localtime (current-time)))
      \with-url #"http://lilypond.org/web/";
     { LilyPond \simple #(lilypond-version) (http://lilypond.org/) }
}

% ------ Trumpet 1------
trpta = {
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 = {
   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 = {a b c d
}
altosaxa = %{\transpose c a%} \relative c'' {
 \global
 \set Staff.instrumentName = #"Alto Sax"
 \set Staff.shortInstrumentName = #"Alto"
 \clef treble
 << \altoa >>
}

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

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

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

% ------ Bass Trombone------
tboneb= {a b c d
}
tromboneb = \relative c {
 \global
 \set Staff.instrumentName = #"Bass Trombone"
 \set Staff.shortInstrumentName = #"Tbn 2"
 \clef bass
 << \tboneb >>
}
%%%%% This section creates the seperate pdf files for each horn %%%%%
\book { \score {
 <<
   \new StaffGroup = "trumpets" <<
        \new Staff = "trpta" \trumpeta
            \new Staff = "trptb" \trumpetb >>
   \new StaffGroup = "saxes" <<
            \new Staff = "altoa" \altosaxa
            \new Staff = "tenor" \tenorsax
            \new Staff = "bari" \barisax >>
   \new StaffGroup = "trombones" <<
            \new Staff = "tbonea" \trombonea
        \new Staff = "tboneb" \tromboneb>>
 >> } }
%%%%% comment all these \book lines if no score is needed %%%%%%
\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"} \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"} \layout { indent = 0\mm} } } \book { \score { << \new Staff = "tromboneb" \with { \remove Instrument_name_engraver } \tromboneb >> \header {piece="Bass Trombone"} \layout { indent = 0\mm} } }

\layout { \context { \Score } }




reply via email to

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