X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fjazz-combo-template.ly;h=f16a6970a096de589dc179f06367173af20cce80;hb=3f57efa0cde39bf0642fb6fb3672a19262ceda83;hp=ff917606a4fd2735a698cbc7ac26fcf759ad6d77;hpb=5b1f3adfe5e3561eaa0f9440e0697054084b7107;p=lilypond.git diff --git a/Documentation/snippets/jazz-combo-template.ly b/Documentation/snippets/jazz-combo-template.ly index ff917606a4..f16a6970a0 100644 --- a/Documentation/snippets/jazz-combo-template.ly +++ b/Documentation/snippets/jazz-combo-template.ly @@ -4,11 +4,11 @@ % and then run scripts/auxiliar/makelsr.py % % This file is in the public domain. -%% Note: this file works from version 2.15.15 -\version "2.16.0" +%% Note: this file works from version 2.19.56 +\version "2.19.56" \header { - lsrtags = "keyboards, percussion, fretted-strings, template, real-music" + lsrtags = "fretted-strings, keyboards, percussion, real-music, template" texidoc = " This is quite an advanced template, for a jazz ensemble. Note that all @@ -20,7 +20,6 @@ music is within a @code{\\transpose} section. doctitle = "Jazz combo template" } % begin verbatim - \header { title = "Song" subtitle = "(tune)" @@ -31,27 +30,29 @@ music is within a @code{\\transpose} section. \column { "LilyPond example file by Amelie Zapf," "Berlin 07/07/2003" - } + } % begin verbatim + } } - +% To make the example display in the documentation +\paper { + paper-width = 130 +} %#(set-global-staff-size 16) \include "english.ly" %%%%%%%%%%%% Some macros %%%%%%%%%%%%%%%%%%% sl = { - \override NoteHead #'style = #'slash - \override Stem #'transparent = ##t - \override Flag #'transparent = ##t + \override NoteHead.style = #'slash + \hide Stem } nsl = { - \revert NoteHead #'style - \revert Stem #'transparent - \revert Flag #'transparent + \revert NoteHead.style + \undo \hide Stem } -crOn = \override NoteHead #'style = #'cross -crOff = \revert NoteHead #'style +crOn = \override NoteHead.style = #'cross +crOff = \revert NoteHead.style %% insert chord name style stuff here. @@ -75,7 +76,6 @@ trpHarmony = \transpose c' d { } trumpet = { \global - \set Staff.instrumentName = #"Trumpet" \clef treble << \trpt @@ -92,7 +92,6 @@ altoHarmony = \transpose c' a { } altoSax = { \global - \set Staff.instrumentName = #"Alto Sax" \clef treble << \alto @@ -113,7 +112,6 @@ bariHarmony = \transpose c' a \chordmode { } bariSax = { \global - \set Staff.instrumentName = #"Bari Sax" \clef treble << \bari @@ -130,7 +128,6 @@ tboneHarmony = \chordmode { } trombone = { \global - \set Staff.instrumentName = #"Trombone" \clef bass << \tbone @@ -154,7 +151,6 @@ gtrHarmony = \chordmode { } guitar = { \global - \set Staff.instrumentName = #"Guitar" \clef treble << \gtr @@ -187,7 +183,6 @@ lhLower = \relative c { PianoRH = { \clef treble \global - \set Staff.midiInstrument = #"acoustic grand" << \new Voice = "one" \rhUpper \new Voice = "two" \rhLower @@ -196,7 +191,6 @@ PianoRH = { PianoLH = { \clef bass \global - \set Staff.midiInstrument = #"acoustic grand" << \new Voice = "one" \lhUpper \new Voice = "two" \lhLower @@ -205,7 +199,6 @@ PianoLH = { piano = { << - \set PianoStaff.instrumentName = #"Piano" \new Staff = "upper" \PianoRH \new Staff = "lower" \PianoLH >> @@ -218,7 +211,6 @@ Bass = \relative c { } bass = { \global - \set Staff.instrumentName = #"Bass" \clef bass << \Bass @@ -242,7 +234,6 @@ down = \drummode { drumContents = { \global << - \set DrumStaff.instrumentName = #"Drums" \new DrumVoice \up \new DrumVoice \down >> @@ -253,27 +244,39 @@ drumContents = { \score { << \new StaffGroup = "horns" << - \new Staff = "trumpet" \trumpet - \new Staff = "altosax" \altoSax - \new ChordNames = "barichords" \bariHarmony - \new Staff = "barisax" \bariSax - \new Staff = "trombone" \trombone + \new Staff = "trumpet" \with { instrumentName = #"Trumpet" } + \trumpet + \new Staff = "altosax" \with { instrumentName = #"Alto Sax" } + \altoSax + \new ChordNames = "barichords" \with { instrumentName = #"Trumpet" } + \bariHarmony + \new Staff = "barisax" \with { instrumentName = #"Bari Sax" } + \bariSax + \new Staff = "trombone" \with { instrumentName = #"Trombone" } + \trombone >> \new StaffGroup = "rhythm" << \new ChordNames = "chords" \gtrHarmony - \new Staff = "guitar" \guitar - \new PianoStaff = "piano" \piano - \new Staff = "bass" \bass - \new DrumStaff \drumContents + \new Staff = "guitar" \with { instrumentName = #"Guitar" } + \guitar + \new PianoStaff = "piano" \with { + instrumentName = #"Piano" + midiInstrument = #"acoustic grand" + } + \piano + \new Staff = "bass" \with { instrumentName = #"Bass" } + \bass + \new DrumStaff \with { instrumentName = #"Drums" } + \drumContents >> >> \layout { \context { \Staff \RemoveEmptyStaves } \context { \Score - \override BarNumber #'padding = #3 - \override RehearsalMark #'padding = #2 + \override BarNumber.padding = #3 + \override RehearsalMark.padding = #2 skipBars = ##t } }