]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.144
authorfred <fred>
Tue, 27 Mar 2001 12:31:24 +0000 (12:31 +0000)
committerfred <fred>
Tue, 27 Mar 2001 12:31:24 +0000 (12:31 +0000)
input/tricks/improv.ly [new file with mode: 0644]

diff --git a/input/tricks/improv.ly b/input/tricks/improv.ly
new file mode 100644 (file)
index 0000000..ff35018
--- /dev/null
@@ -0,0 +1,46 @@
+
+improOn = \notes {\translator Voice = impro }
+improOff = \notes {\translator SquashVoice = melo }
+
+global = \notes { s1*3 \bar "|."; }
+
+\score {
+  <
+    \context ChordNames \chords {e8:m7*7 a2.:m7 bes4:m7 b1:m7 e8:m }
+    \context Staff \notes <
+      \context SquashVoice = impro { \global }
+      \context Voice = melo \transpose c'' {
+       e8 e g a a16()bes()a8 g \improOn e8
+       ~e2~e8 f4 fis8
+       ~fis2 \improOff a16()bes a8 g e
+      }
+    >
+  >
+  \paper { 
+    \translator {
+      \VoiceContext
+      \name SquashVoice;
+      \alias Voice;
+      \consists Pitch_squash_engraver;
+      \consists Local_key_engraver;
+      squashedPosition = 6;
+      NoteHead \override #'style = #'slash
+      Accidentals \override #'transparent = ##t
+    }
+    \translator {
+      \VoiceContext
+      \alias SquashVoice;
+      \consists Local_key_engraver;
+    }
+    \translator {
+      \ScoreContext
+      \accepts SquashVoice;
+    }
+    \translator {
+      \StaffContext
+      \remove Local_key_engraver;
+      \accepts SquashVoice;
+    }
+    linewidth = -1;
+  }
+}