From: Graham Percival Date: Thu, 8 Jun 2006 10:33:39 +0000 (+0000) Subject: \applyMusic to music functions update, thanks Michael! X-Git-Tag: cvs/HEAD~321 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=76d05b5fdddd9a495a678b20fee2bfd8c95c39ab;p=lilypond.git \applyMusic to music functions update, thanks Michael! --- diff --git a/ChangeLog b/ChangeLog index 531ce4f8cd..8f951cc8de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-08 Graham Percival + + * input/test/ smart-transpose.ly, reverse-music.ly: + \applyMusic to music functions update, thanks Michael! + 2006-06-07 Graham Percival * input/test/ add-staccato.ly, add-text-script.ly, diff --git a/Documentation/user/basic-notation.itely b/Documentation/user/basic-notation.itely index e19e01ef24..f4590459a8 100644 --- a/Documentation/user/basic-notation.itely +++ b/Documentation/user/basic-notation.itely @@ -935,6 +935,8 @@ second 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 diff --git a/input/test/smart-transpose.ly b/input/test/smart-transpose.ly index b1296b3948..d97359157c 100644 --- a/input/test/smart-transpose.ly +++ b/input/test/smart-transpose.ly @@ -1,5 +1,5 @@ - -\version "2.7.39" +\version "2.9.7" +\sourcefilename "smart-transpose.ly" \header { texidoc="@cindex Smart Transpose @@ -9,7 +9,6 @@ to have the minimum number of accidentals. In that case, ``Double 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. - " } % @@ -66,14 +65,18 @@ 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} } -