+2006-06-08 Graham Percival <gpermus@gmail.com>
+
+ * input/test/ smart-transpose.ly, reverse-music.ly:
+ \applyMusic to music functions update, thanks Michael!
+
2006-06-07 Graham Percival <gpermus@gmail.com>
* input/test/ add-staccato.ly, add-text-script.ly,
voice in the first @code{<< \\ >>} construct is effective in the second
@code{<< \\ >>}, and the voice is tied across the two constructs.
+@cindex note heads, styles
+
@lilypond[quote,verbatim,fragment]
\new Staff \relative c' {
\override NoteHead #'style = #'cross
-
-\version "2.7.39"
+\version "2.9.7"
+\sourcefilename "smart-transpose.ly"
\header {
texidoc="@cindex Smart Transpose
accidentals should be removed, as well as E-sharp (-> F), bC (-> B),
bF (-> E), B-sharp (-> C).'', as proposed by a request for a new feature.
In this manner, the most natural enharmonic notes are chosen in this example.
-
"
}
%
music = \relative c' { c4 d e f g a b c }
+naturaliseMusic =
+#(define-music-function (parser location m)
+ (ly:music?)
+ (naturalise m))
+
\score {
\context Staff {
\transpose c ais \music
- \applyMusic #naturalise \transpose c ais \music
+ \naturaliseMusic \transpose c ais \music
\transpose c deses \music
- \applyMusic #naturalise \transpose c deses \music
+ \naturaliseMusic \transpose c deses \music
}
\layout { ragged-right = ##t}
}
-