Valentin Villenave wrote:
2009/1/8 chip <c...@wiegand.org>:
The page at https://lsr.dsi.unumi.it says:
No output from Lilypond
Can you post your snippet here?
Cheers,
Valentin
Absolutely. Here it is -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% LilyPond
%{
This is a template that works well for a horn section for a band. 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. 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 the first staff indentation in the individual
printed parts is set to zero.
Tweaking the template to suit your own band is quite easy. The variable
names can be changed to adjust the template to any horns. Then just
change the same names in the \book \score section at the bottom of the
template. Adjust the key signature, tempo and time signature, and the
\transpose syntax, and you're good to go. For my own use I remove all
the \transpose syntaxes so I can view the complete score in concert key.
then after I see that all the parts are correct I add the \transpose
syntax before printing the parts.
%}
%\include "english.ly"
%\version "2.12.1"
\header{
title = "Title"
composer = "Composer-RecordingArtistName"
arranger = "Arranger-TranscriberName"
}
% Just change the \time, \key \tempo to meet your needs
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
}
% Change the \transpose keys to meet your needs
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
}
% Change the \transpose keys to meet your needs
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
}
% Change the \transpose keys to meet your needs
altosaxa = \transpose c a \relative c'' {
\global
\set Staff.instrumentName = #"Alto Sax 1"
\set Staff.shortInstrumentName = #"Alto 1"
\clef treble
<< \altoa >>
}
% ------ Alto Sax 2 -----
altob = {
% Notes here -----
a b c d
}
% Change the \transpose keys to meet your needs
altosaxb = \transpose c a \relative c'' {
\global
\set Staff.instrumentName = #"Alto Sax 2"
\set Staff.shortInstrumentName = #"Alto 2"
\clef treble
<< \altob >>
}
% ------ Tenor------
tenor = {
% Notes here -----
a b c d
}
% Change the \transpose keys to meet your needs
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
}
% Change the \transpose keys to meet your needs
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
}
% Change the \transpose keys to meet your needs
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
}
% Change the \transpose keys to meet your needs
tromboneb = \transpose c d \relative c' {
\global
\set Staff.instrumentName = #"Trombone 2"
\set Staff.shortInstrumentName = #"Tbn Bb"
\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"}
\layout { indent = 0\mm} } }
\book { \score { << \new Staff = "tromboneb" \with { \remove
Instrument_name_engraver } \tromboneb >> \header {piece="Trombone Bb"}
\layout { indent = 0\mm} } }
\layout { \context { \Score } }
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user