]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/score-for-diatonic-accordion.ly
LSR: Update.
[lilypond.git] / Documentation / snippets / score-for-diatonic-accordion.ly
index c995e2167b748c46461b485fd0f8117c4fc93236..95bb1fab530009722fa58ea8948212ac1f636013 100644 (file)
@@ -1,6 +1,7 @@
-%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
+%% Do not edit this file; it is automatically
+%% generated from LSR http://lsr.dsi.unimi.it
 %% This file is in the public domain.
-\version "2.13.1"
+\version "2.13.10"
 
 \header {
   lsrtags = "template"
@@ -50,7 +51,7 @@ according tabulature representation.
 
 
 This snippet comes with a useful optional macro for the jEdit text
-editor. 
+editor.
 
 "
   doctitle = "Score for diatonic accordion"
@@ -79,82 +80,82 @@ staffTabLine = \new Staff \with {
        \set Staff.midiInstrument = #"choir aahs"
        \key c \major
        \relative c''
-               {  
-                       % disable the following line to see the the noteheads while writing the song 
-                       \NoNoteHead  
+               {
+                       % disable the following line to see the the noteheads while writing the song
+                       \NoNoteHead
                        \override NoteHead #'no-ledgers = ##t
 
                        % The beam between 8th-notes is used to draw the push-line
-                       %How to fast write the push-lines: 
-                       %        1. write repeatedly 'c c c c c c c c |' for the whole length of the song 
+                       %How to fast write the push-lines:
+                       %        1. write repeatedly 'c c c c c c c c |' for the whole length of the song
                        %        2. uncomment the line \NoNoteHead
                        %        3. compile
-                       %        4. Mark the positions on which push/pull changes. 
-                       %           In the score-picture click on the position the push- or pull-part starts 
+                       %        4. Mark the positions on which push/pull changes.
+                       %           In the score-picture click on the position the push- or pull-part starts
                         %           (on the noteHead, the cursor will change to a hand-icon).
                        %           The cursor in the source code will jump just at this position.
                        %         a) If a push-part starts there, replace the 'c' by an 'e['
                        %         b) If a pull-part starts there, replace the 'c' by an 's'
-                       %        5. Switch into 'overwrite-mode' by pressing the 'ins' key. 
-                       %        6. For the pull-parts overwrite the 'c' with 's' 
-                       %        7. For every push-part replace the last 'c' with 'e]' 
-                       %        8. Switch into 'insert-mode' again 
+                       %        5. Switch into 'overwrite-mode' by pressing the 'ins' key.
+                       %        6. For the pull-parts overwrite the 'c' with 's'
+                       %        7. For every push-part replace the last 'c' with 'e]'
+                       %        8. Switch into 'insert-mode' again
                        %        9. At last it should look lik e.g. (s s e[ c | c c c c c c c c | c c c c c c e] s s)
                        %       10. re-enable the line \NoNoteHead
                        \autoBeamOff
-                       \ZeroBeam 
-                        s8 s s e[ c c c c c c e] | s s s s s 
+                       \ZeroBeam
+                        s8 s s e[ c c c c c c e] | s s s s s
                }
 }
 
 %{
 %}
 
-% Accordion melody in tabulator score          
+% Accordion melody in tabulator score
 % 1. Place a copy of the piano melody below
-% 2. Separate piano melody into pull- and push-parts according to the staffTabLine you've already made      
+% 2. Separate piano melody into pull- and push-parts according to the staffTabLine you've already made
 % 3. For each line: Double the line. Remark the 1st one (Keeps unchanged as reference) and then change the second line using the transformation paper
-%    or the macros 'conv2diaton push.bsh' and 'conv2diaton pull.bsh' 
+%    or the macros 'conv2diaton push.bsh' and 'conv2diaton pull.bsh'
 % Tips:
 % - In jEdit Search & Replace mark the Option 'Keep Dialog'
 
 AccordionTabTwoCBesDur = {
  % pull 1
- %<f' bes'>8 <f' a'>8 <d' bes'>8 | 
-<g'' a''>8 <g'' b''>8 <e'' a''>8 | 
+ %<f' bes'>8 <f' a'>8 <d' bes'>8 |
+<g'' a''>8 <g'' b''>8 <e'' a''>8 |
  % push 2
- %<g' c''>4 <f' d''> <g' ees''> <f' a'> | 
-<g'' a''>4 <d'' eisis''> <g'' bisis''> <d'' f''> | 
+ %<g' c''>4 <f' d''> <g' ees''> <f' a'> |
+<g'' a''>4 <d'' eisis''> <g'' bisis''> <d'' f''> |
  % pull 3
 % <f' bes'>2 r8 }
  <g'' a''>2 r8 }
 
-  AccordionTab= { \dynamicUp           
+  AccordionTab= { \dynamicUp
 % 1. Place a copy of the piano melody above
-% 2. Separate piano melody into pull- and push-parts according to the staffTabLine you've already made      
-% 3. For each line: Double the line. Remark the 1st one (Keeps unchanged as reference) and then 
+% 2. Separate piano melody into pull- and push-parts according to the staffTabLine you've already made
+% 3. For each line: Double the line. Remark the 1st one (Keeps unchanged as reference) and then
 %    change the second line using the transformation paper
 % Tips:
 % - In jEdit Search & Replace mark the Option 'Keep Dialog'
-% - 
+% -
 \AccordionTabTwoCBesDur
  }
 
 
- \layout {   
+
+ \layout {
  \context {
-   \Staff        
+   \Staff
    \consists "Grid_point_engraver"
 
    gridInterval = #(ly:make-moment 4 4) % 4/4 - tact. How many beats per bar
 
    % The following line has to be adjusted O-F-T-E-N.
-   \override GridPoint #'Y-extent = #'(-2 . -21)   
+   \override GridPoint #'Y-extent = #'(-2 . -21)
  }
  \context {
     \ChoirStaff
-    \remove "System_start_delimiter_engraver" 
+    \remove "System_start_delimiter_engraver"
  }
 }
 
@@ -163,18 +164,18 @@ staffVoice = \new Staff=astaffvoice  {
        \set Staff.instrumentName="Voice"
        \set Staff.midiInstrument="voice oohs"
        \key bes \major
-       \partial 8*3 
+       \partial 8*3
        \clef treble
-       {       
-               \context Voice = "melodyVoi" 
+       {
+               \context Voice = "melodyVoi"
                { <f' bes'>8 <f' a'>8 <d' bes'>8 | <g' c''>4 <f' d''> <g' es''> <f' a'> | <f' bes'>2 r8 }
        \bar "|."
        }
 }
 
 staffAccordionMel = \new Staff  \with { \remove "Clef_engraver" } {
-       #(set-accidental-style 'forget) %Set the accidentals (Vorzeichen) for each note, 
-                                       %do not remember them for the rest of the measure.  
+       #(set-accidental-style 'forget) %Set the accidentals (Vorzeichen) for each note,
+                                       %do not remember them for the rest of the measure.
        \time 4/4
        \set Staff.instrumentName="Accordion"
        \set Staff.midiInstrument="voice oohs"
@@ -187,7 +188,7 @@ staffAccordionMel = \new Staff  \with { \remove "Clef_engraver" } {
                #{ \override Stem #'length = #$(* 7.0 mag)
                \override NoteHead #'font-size =
                #$(inexact->exact (* (/ 6.0 (log 2.0)) (log mag))) #})
-     
+
        AltOff = {
                \revert Stem #'length
                \revert NoteHead #'font-size
@@ -198,17 +199,17 @@ LyricBassRhythmI=  \lyricmode { c b | c }
 
 staffBassRhytm = \new Staff=staffbass  \with { \remove "Clef_engraver" } {
        % This is not a RhythmicStaff  because it must be possible to append lyrics.
-               
+
        \override Score.GridLine #'extra-offset = #'( 13.0 . 0.0 ) % x.y
-       \override Staff.StaffSymbol #'line-positions = #'( 0 ) 
+       \override Staff.StaffSymbol #'line-positions = #'( 0 )
         % Shows one horizontal line. The vertical line (simulating a bar-line) is simulated by a grid
-        % Search for 'grid' in this page to find all related functions 
+        % Search for 'grid' in this page to find all related functions
        \time 4/4
-       {       
-               \context Voice = "VoiceBassRhytm" 
+       {
+               \context Voice = "VoiceBassRhytm"
                \stemDown \AltOn #0.6
                \relative c''
-               {   
+               {
                \BassRhytm
                }
                \AltOff
@@ -216,13 +217,13 @@ staffBassRhytm = \new Staff=staffbass  \with { \remove "Clef_engraver" } {
        }
 }
 
-\new Score 
+\new Score
 \with {
- \consists "Grid_line_span_engraver" %The vertical line (simulating a bar-line) in the staffBassRhytm is a gridline 
+ \consists "Grid_line_span_engraver" %The vertical line (simulating a bar-line) in the staffBassRhytm is a gridline
 }
-\new ChoirStaff 
+\new ChoirStaff
        <<
-               \harmonies 
+               \harmonies
                \staffVoice
                \context Lyrics = "lmelodyVoi" \with {alignBelowContext=astaffvoice} { \lyricsto "melodyVoi" \verse }
                \staffAccordionMel