]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/jazz-combo-template.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / jazz-combo-template.ly
index c6839e5a8293a43c6cec696ce7eed943c3a4889d..f16a6970a096de589dc179f06367173af20cce80 100644 (file)
@@ -1,57 +1,14 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
-%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
-%% and then run scripts/auxiliar/makelsr.py
-%%
-%% This file is in the public domain.
-\version "2.15.7"
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.19.56
+\version "2.19.56"
 
 \header {
-  lsrtags = "keyboards, percussion, fretted-strings, template"
-
-%% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c
-  texidoces = "
-Ésta es una plantilla bastante avanzada, para un conjunto de
-jazz. Observe que la notación de todos los instrumentos está en
-@code{\\key c \\major} (Do mayor). Esto se refiere al tono de
-concierto; la armadura se transporta automáticamente si la música está
-dentro de una sección @code{\\transpose}.
-
-"
-  doctitlees = "Plantilla para combo de jazz"
-
-
-%% Translation of GIT committish: 514674cb00c18629242dfcde0c1a4976758adc56
-  texidocit = "
-Ecco un modello piuttosto complesso, per un gruppo jazz. Si noti che tutti
-gli strumenti sono in @code{\\key c \\major}. Si tratta della tonalità
-reale; sarà trasposta automaticamente includendo la
-musica all'interno di una sezione @code{\\transpose}.
-
-"
-  doctitleit = "Modello per combo jazz"
-
-%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40
-  texidocde = "
-Hier ist ein ziemlich kompliziertes Beispiel für ein Jazz-Ensemble. Achtung:
-Alle Instrumente sind in @code{\\key c \major} (C-Dur) notiert. Das bezieht sich
-auf die klingende Musik: LilyPond transponiert die Tonart automatisch, wenn
-sich die Noten innerhalb eines @code{\\transpose}-Abschnitts befinden.
-
-"
-
-  doctitlede = "Vorlage für Jazz-Combo"
-
-%% Translation of GIT committish: bdfe3dc8175a2d7e9ea0800b5b04cfb68fe58a7a
-  texidocfr = "
-Bien que compliqué de prime abord, voici un canevas tout à fait indiqué
-pour les ensembles de jazz.  Vous noterez que tous les instruments sont
-notés en ut (@code{\\key c \major}), la tonalité de concert.  Les notes
-seront automatiquement transposée dès lors qu'elles seront inscrites
-dans une section @code{\\transpose}.
-
-"
-  doctitlefr = "Symboles de jazz"
+  lsrtags = "fretted-strings, keyboards, percussion, real-music, template"
 
   texidoc = "
 This is quite an advanced template, for a jazz ensemble. Note that all
@@ -73,25 +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 NoteHead.style = #'slash
+  \hide Stem
 }
 nsl = {
-  \revert NoteHead #'style
-  \revert Stem #'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.
 
@@ -115,7 +76,6 @@ trpHarmony = \transpose c' d {
 }
 trumpet = {
   \global
-  \set Staff.instrumentName = #"Trumpet"
   \clef treble
   <<
     \trpt
@@ -132,7 +92,6 @@ altoHarmony = \transpose c' a {
 }
 altoSax = {
   \global
-  \set Staff.instrumentName = #"Alto Sax"
   \clef treble
   <<
     \alto
@@ -153,7 +112,6 @@ bariHarmony = \transpose c' a \chordmode {
 }
 bariSax = {
   \global
-  \set Staff.instrumentName = #"Bari Sax"
   \clef treble
   <<
     \bari
@@ -170,7 +128,6 @@ tboneHarmony = \chordmode {
 }
 trombone = {
   \global
-  \set Staff.instrumentName = #"Trombone"
   \clef bass
   <<
     \tbone
@@ -194,7 +151,6 @@ gtrHarmony = \chordmode {
 }
 guitar = {
   \global
-  \set Staff.instrumentName = #"Guitar"
   \clef treble
   <<
     \gtr
@@ -227,7 +183,6 @@ lhLower = \relative c {
 PianoRH = {
   \clef treble
   \global
-  \set Staff.midiInstrument = #"acoustic grand"
   <<
     \new Voice = "one" \rhUpper
     \new Voice = "two" \rhLower
@@ -236,7 +191,6 @@ PianoRH = {
 PianoLH = {
   \clef bass
   \global
-  \set Staff.midiInstrument = #"acoustic grand"
   <<
     \new Voice = "one" \lhUpper
     \new Voice = "two" \lhLower
@@ -245,7 +199,6 @@ PianoLH = {
 
 piano = {
   <<
-    \set PianoStaff.instrumentName = #"Piano"
     \new Staff = "upper" \PianoRH
     \new Staff = "lower" \PianoLH
   >>
@@ -258,7 +211,6 @@ Bass = \relative c {
 }
 bass = {
   \global
-  \set Staff.instrumentName = #"Bass"
   \clef bass
   <<
     \Bass
@@ -282,7 +234,6 @@ down = \drummode {
 drumContents = {
   \global
   <<
-    \set DrumStaff.instrumentName = #"Drums"
     \new DrumVoice \up
     \new DrumVoice \down
   >>
@@ -293,30 +244,41 @@ 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
     }
   }
   \midi { }
 }
-