lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Transpose without collapsing double accidentals


From: mskala
Subject: Transpose without collapsing double accidentals
Date: Sat, 19 Sep 2015 09:53:47 -0500 (CDT)
User-agent: Alpine 2.20 (LNX 67 2015-01-07)

If transposing music produces notes with alteration of more than a whole
tone, \transpose will produce a warning and change the note name.  I would
like to be able to transpose notes up or down an octave without changing
their names or alteration at all, even if it is more than a whole tone.

Simple example (not an octave, but exhibits what I think is the same
problem):

\score {
  \transpose cis c \transpose c cis { cisis'1 }
}

This gives a warning ("warning: Transposing cProb' by cisih' makes
alteration larger than double") from the inner transpose, and then
engraves a D, not a C-double-sharp.  When it creates a note more altered
than double-sharp, it changes the note name, even though the round trip
would correctly have ended with a note not more altered than double-sharp.

Despite the wording of the error, it is actually "a whole tone of
alteration" that triggers the note name change, not twice the size of a
sharp or flat, as demonstrated by my actual application:

My actual application is in 22-EDO microtonal music, where a sharp or flat
is worth three units of the octave division, and the gaps between
successive letter names are one and four units.  The note cisis is two EDO
units sharper than d ; but I want to pass it to some kind of "transpose
down an octave" function and get cisis, as the output.  Given that I've
already redefined the note names and accidentals with the regular.ly
script from http://x31eq.com/lilypond/ , doing
  \transpose c c, { cisis }
gives me a warning about how it has no accidental symbol for 6/11 of a
whole tone, and engraves a D note.  It's apparently detecting that the
alteration of cisis makes it sharper than d and automatically changing the
note name from c to d.  Is there any simple way to make it NOT change the
note name or alteration, but only transpose the octave?

-- 
Matthew Skala
address@hidden                 People before principles.
http://ansuz.sooke.bc.ca/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]