On 02/12/2013 01:24 PM, Janek Warchoł wrote:
we have a snippet
Documentation/snippets/transposing-pitches-with-minimum-accidentals-smart-transpose.ly

The problem with this snippet is that it's conceived as a function that "wraps" a given piece of music. But as I recall, if you put a transposition function _outside_ the call to naturalize-music, that transposition will not benefit from the naturalization rules.

What you actually want to see in a given passage is something like,

{
  \set Staff.transposition = #'chromatic
  c'4 bf' gs' e'    % any transposition applied to this passage
                    % will be chromatic
  \set Staff.transposition = #'tonal
  c' d' e' f'       % whereas this will be treated tonally
}

The above would not affect the written music in concert pitch, but would be called in to play if the music was ever passed through transposition.

Note that the transposition rule should be possible to apply at all levels, Score, StaffGroup, Staff, Voice.

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to