]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/score-for-diatonic-accordion.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / score-for-diatonic-accordion.ly
index 46883755e6b6e55885e0621009982ac7962c2626..9419a6893e7261d72cdc0b75a6b5a08a5e6663a6 100644 (file)
@@ -1,14 +1,13 @@
-% 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.17.30
-\version "2.17.30"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.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.19.22"
 
 \header {
-  lsrtags = "template, real-music, specific-notation"
+  lsrtags = "real-music, specific-notation, template"
 
   texidoc = "
 A template to write a score for a diatonic accordion.
@@ -53,15 +52,10 @@ push-parts and which the pull-parts.
 3. For each pull- or push-part translate the piano notes to the
 according tabulature representation.
 
-
-This snippet comes with a useful optional macro for the jEdit text
-editor.
-
 "
   doctitle = "Score for diatonic accordion"
 } % begin verbatim
 
-
 verse = \lyricmode { Wie gross bist du! Wie gross bist du! }
 
 harmonies = \new ChordNames \chordmode {
@@ -81,12 +75,13 @@ staffTabLine = \new Staff \with {
   \remove "Clef_engraver"
 } {
   \override Staff.StaffSymbol.line-positions = #'(0)
-  % Shows one horizontal line. The vertical line (simulating a bar-line) is simulated with a gridline
+  % Shows one horizontal line. The vertical line
+  %  (simulating a bar-line) is simulated with a gridline
   \set Staff.midiInstrument = #"choir aahs"
   \key c \major
   \relative c''
   {
-    % disable the following line to see the the noteheads while writing the song
+    % disable the following line to see the noteheads while writing the song
     \NoNoteHead
     \override NoteHead.no-ledgers = ##t
 
@@ -96,7 +91,8 @@ staffTabLine = \new Staff \with {
     %  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
+    %     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['
@@ -105,7 +101,8 @@ staffTabLine = \new Staff \with {
     %  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)
+    %  9. At last it should look like 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
@@ -113,13 +110,13 @@ staffTabLine = \new Staff \with {
   }
 }
 
-%{
-%}
-
 % 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
-% 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
+% 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'
 % Tips:
 % - In jEdit Search & Replace mark the Option 'Keep Dialog'
@@ -137,9 +134,11 @@ AccordionTabTwoCBesDur = {
 
 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
-  %    change the second line using the transformation paper
+  % 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'
   % -
@@ -177,7 +176,11 @@ staffVoice = \new Staff = astaffvoice  {
   \clef treble
   {
     \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 }
+    {
+      <f' bes'>8 <f' a'>8 <d' bes'>8 |
+      <g' c''>4 <f' d''> <g' es''> <f' a'> |
+      <f' bes'>2 r8
+    }
     \bar "|."
   }
 }
@@ -195,7 +198,7 @@ staffAccordionMel =
 }
 
 AltOn =
-#(define-music-function (parser location mag) (number?)
+#(define-music-function (mag) (number?)
   #{ \override Stem.length = #(* 7.0 mag)
       \override NoteHead.font-size =
 #(inexact->exact (* (/ 6.0 (log 2.0)) (log mag))) #})
@@ -214,7 +217,8 @@ staffBassRhytm =
 
   \override Score.GridLine.extra-offset = #'( 13.0 . 0.0 ) % x.y
   \override Staff.StaffSymbol.line-positions = #'( 0 )
-  % Shows one horizontal line. The vertical line (simulating a bar-line) is simulated by a grid
+  % 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
   \time 4/4
   {
@@ -244,4 +248,3 @@ staffBassRhytm =
       \lyricsto VoiceBassRhytm \LyricBassRhythmI
   >>
 }
-%}