LEFT | RIGHT |
1 % DO NOT EDIT this file manually; it is automatically | 1 % DO NOT EDIT this file manually; it is automatically |
2 % generated from Documentation/snippets/new | 2 % generated from Documentation/snippets/new |
3 % Make any changes in Documentation/snippets/new/ | 3 % Make any changes in Documentation/snippets/new/ |
4 % and then run scripts/auxiliar/makelsr.py | 4 % and then run scripts/auxiliar/makelsr.py |
5 % | 5 % |
6 % This file is in the public domain. | 6 % This file is in the public domain. |
7 %% Note: this file works from version 2.16.0 | 7 %% Note: this file works from version 2.16.0 |
8 \version "2.17.5" | 8 \version "2.17.6" |
9 | 9 |
10 \header { | 10 \header { |
11 lsrtags = "template, real-music, specific-notation" | 11 lsrtags = "template, real-music, specific-notation" |
12 | 12 |
13 texidoc = " | 13 texidoc = " |
14 A template to write a score for a diatonic accordion. | 14 A template to write a score for a diatonic accordion. |
15 | 15 |
16 - There is a horizontal staff indicating if the accordion must be | 16 - There is a horizontal staff indicating if the accordion must be |
17 pushed (thick line) or pulled (thin line) | 17 pushed (thick line) or pulled (thin line) |
18 | 18 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 verse = \lyricmode { Wie gross bist du! Wie gross bist du! } | 65 verse = \lyricmode { Wie gross bist du! Wie gross bist du! } |
66 | 66 |
67 harmonies = \new ChordNames \chordmode { | 67 harmonies = \new ChordNames \chordmode { |
68 \germanChords | 68 \germanChords |
69 \set chordChanges = ##t | 69 \set chordChanges = ##t |
70 bes8 bes8 bes8 | 70 bes8 bes8 bes8 |
71 es2 f | 71 es2 f |
72 bes1 | 72 bes1 |
73 } | 73 } |
74 | 74 |
75 NoStem = { \override Stem transparent = ##t \override Flag transparent = ##t } | 75 NoStem = { \override Stem.transparent = ##t \override Flag.transparent = ##t } |
76 NoNoteHead = \override NoteHead transparent = ##t | 76 NoNoteHead = \override NoteHead.transparent = ##t |
77 ZeroBeam = \override Beam positions = #'(0 . 0) | 77 ZeroBeam = \override Beam.positions = #'(0 . 0) |
78 | 78 |
79 staffTabLine = \new Staff \with { | 79 staffTabLine = \new Staff \with { |
80 \remove "Time_signature_engraver" | 80 \remove "Time_signature_engraver" |
81 \remove "Clef_engraver" | 81 \remove "Clef_engraver" |
82 } { | 82 } { |
83 \override Staff.StaffSymbol line-positions = #'(0) | 83 \override Staff.StaffSymbol.line-positions = #'(0) |
84 % Shows one horizontal line. The vertical line (simulating a bar-line) is simu
lated with a gridline | 84 % Shows one horizontal line. The vertical line (simulating a bar-line) is simu
lated with a gridline |
85 \set Staff.midiInstrument = #"choir aahs" | 85 \set Staff.midiInstrument = #"choir aahs" |
86 \key c \major | 86 \key c \major |
87 \relative c'' | 87 \relative c'' |
88 { | 88 { |
89 % disable the following line to see the the noteheads while writing the song | 89 % disable the following line to see the the noteheads while writing the song |
90 \NoNoteHead | 90 \NoNoteHead |
91 \override NoteHead no-ledgers = ##t | 91 \override NoteHead.no-ledgers = ##t |
92 | 92 |
93 % The beam between 8th-notes is used to draw the push-line | 93 % The beam between 8th-notes is used to draw the push-line |
94 %How to fast write the push-lines: | 94 %How to fast write the push-lines: |
95 % 1. write repeatedly 'c c c c c c c c |' for the whole length of the song | 95 % 1. write repeatedly 'c c c c c c c c |' for the whole length of the song |
96 % 2. uncomment the line \NoNoteHead | 96 % 2. uncomment the line \NoNoteHead |
97 % 3. compile | 97 % 3. compile |
98 % 4. Mark the positions on which push/pull changes. | 98 % 4. Mark the positions on which push/pull changes. |
99 % In the score-picture click on the position the push- or pull-part star
ts | 99 % In the score-picture click on the position the push- or pull-part star
ts |
100 % (on the noteHead, the cursor will change to a hand-icon). | 100 % (on the noteHead, the cursor will change to a hand-icon). |
101 % The cursor in the source code will jump just at this position. | 101 % The cursor in the source code will jump just at this position. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 \Score | 153 \Score |
154 % The vertical line (simulating a bar-line) in | 154 % The vertical line (simulating a bar-line) in |
155 % the staffBassRhytm is a gridline | 155 % the staffBassRhytm is a gridline |
156 \consists "Grid_line_span_engraver" | 156 \consists "Grid_line_span_engraver" |
157 } | 157 } |
158 \context { | 158 \context { |
159 \Staff | 159 \Staff |
160 \consists "Grid_point_engraver" | 160 \consists "Grid_point_engraver" |
161 gridInterval = #(ly:make-moment 4 4) % 4/4 - tact. How many beats per bar | 161 gridInterval = #(ly:make-moment 4 4) % 4/4 - tact. How many beats per bar |
162 % The following line has to be adjusted O-F-T-E-N. | 162 % The following line has to be adjusted O-F-T-E-N. |
163 \override GridPoint Y-extent = #'(-2 . -21) | 163 \override GridPoint.Y-extent = #'(-2 . -21) |
164 } | 164 } |
165 \context { | 165 \context { |
166 \ChoirStaff | 166 \ChoirStaff |
167 \remove "System_start_delimiter_engraver" | 167 \remove "System_start_delimiter_engraver" |
168 } | 168 } |
169 } | 169 } |
170 | 170 |
171 staffVoice = \new Staff = astaffvoice { | 171 staffVoice = \new Staff = astaffvoice { |
172 \time 4/4 | 172 \time 4/4 |
173 \set Staff.instrumentName = "Voice" | 173 \set Staff.instrumentName = "Voice" |
(...skipping 15 matching lines...) Expand all Loading... |
189 \time 4/4 | 189 \time 4/4 |
190 \set Staff.instrumentName="Accordion" | 190 \set Staff.instrumentName="Accordion" |
191 \set Staff.midiInstrument="voice oohs" | 191 \set Staff.midiInstrument="voice oohs" |
192 \key c \major | 192 \key c \major |
193 \clef treble | 193 \clef treble |
194 { \AccordionTab \bar "|." } | 194 { \AccordionTab \bar "|." } |
195 } | 195 } |
196 | 196 |
197 AltOn = | 197 AltOn = |
198 #(define-music-function (parser location mag) (number?) | 198 #(define-music-function (parser location mag) (number?) |
199 #{ \override Stem length = #(* 7.0 mag) | 199 #{ \override Stem.length = #(* 7.0 mag) |
200 \override NoteHead font-size = | 200 \override NoteHead.font-size = |
201 #(inexact->exact (* (/ 6.0 (log 2.0)) (log mag))) #}) | 201 #(inexact->exact (* (/ 6.0 (log 2.0)) (log mag))) #}) |
202 | 202 |
203 AltOff = { | 203 AltOff = { |
204 \revert Stem length | 204 \revert Stem.length |
205 \revert NoteHead font-size | 205 \revert NoteHead.font-size |
206 } | 206 } |
207 | 207 |
208 BassRhytm = {s4 s8 | c2 c2 | c2 s8 } | 208 BassRhytm = {s4 s8 | c2 c2 | c2 s8 } |
209 LyricBassRhythmI= \lyricmode { c b | c } | 209 LyricBassRhythmI= \lyricmode { c b | c } |
210 | 210 |
211 staffBassRhytm = | 211 staffBassRhytm = |
212 \new Staff = staffbass \with { \remove "Clef_engraver" } { | 212 \new Staff = staffbass \with { \remove "Clef_engraver" } { |
213 % This is not a RhythmicStaff because it must be possible to append lyrics. | 213 % This is not a RhythmicStaff because it must be possible to append lyrics. |
214 | 214 |
215 \override Score.GridLine extra-offset = #'( 13.0 . 0.0 ) % x.y | 215 \override Score.GridLine.extra-offset = #'( 13.0 . 0.0 ) % x.y |
216 \override Staff.StaffSymbol line-positions = #'( 0 ) | 216 \override Staff.StaffSymbol.line-positions = #'( 0 ) |
217 % Shows one horizontal line. The vertical line (simulating a bar-line) is simu
lated by a grid | 217 % Shows one horizontal line. The vertical line (simulating a bar-line) is simu
lated by a grid |
218 % Search for 'grid' in this page to find all related functions | 218 % Search for 'grid' in this page to find all related functions |
219 \time 4/4 | 219 \time 4/4 |
220 { | 220 { |
221 \context Voice = "VoiceBassRhytm" | 221 \context Voice = "VoiceBassRhytm" |
222 \stemDown \AltOn #0.6 | 222 \stemDown \AltOn #0.6 |
223 \relative c'' | 223 \relative c'' |
224 { | 224 { |
225 \BassRhytm | 225 \BassRhytm |
226 } | 226 } |
(...skipping 11 matching lines...) Expand all Loading... |
238 \lyricsto melodyVoi \verse | 238 \lyricsto melodyVoi \verse |
239 \staffAccordionMel | 239 \staffAccordionMel |
240 \staffTabLine | 240 \staffTabLine |
241 \staffBassRhytm | 241 \staffBassRhytm |
242 \context Lyrics = "lBassRhytmAboveI" | 242 \context Lyrics = "lBassRhytmAboveI" |
243 \with { alignAboveContext = staffbass } | 243 \with { alignAboveContext = staffbass } |
244 \lyricsto VoiceBassRhytm \LyricBassRhythmI | 244 \lyricsto VoiceBassRhytm \LyricBassRhythmI |
245 >> | 245 >> |
246 } | 246 } |
247 %} | 247 %} |
LEFT | RIGHT |