lilypond-user
[Top][All Lists]
Advanced

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

Different accidentals for same pitch bend?


From: Richard Sabey
Subject: Different accidentals for same pitch bend?
Date: Sat, 28 May 2011 18:40:42 +0000

The way /usr/share/lilypond/current/ly/makam.ly is written suggests that Lilypond determines which accidental is appropriate for a pitch from one quantity only, namely by how much it is higher or lower than the MIDI pitch of the same letter-name and the same octave. Taking an example from makam.ly, you may, for example, associate a downward inflection by 1/9 of a tone with the accidental glyph "accidentals.mirroredflat", but that glyph must serve for c, d, e, f, g, a and b.

Is there any way to make Lilypond select an accidental in some other way? Possibly related to both the amount of offset and the letter name?

Sort of something like this?

myGlyphs = #`(
    ;;;;; etc.
    (-1/34 . ,(if (eq? somethingorother 3) "accidentals.natural" "accidentals.natural.arrowdown" ))
    ;;;;; etc.
)
\layout {
  \context {
    \Score
    \override Accidental #'glyph-name-alist = \myGlyphs
  }
}

Thing is, I don't know the data structures that Scheme can see, or even if it is possible to encode such a conditional _expression_ in the alist so that it works.

The reason I ask is that I'd like to compose in 34et (temperament that divides the octave into 34 equal intervals). In this temperament, the tone (say f to g) is 6/34 of an octave, so the tritone from f to b is 18/34 of an octave. This means that b lowered by one step is higher than f by 17/34 of an octave, that is, half an octave, or exactly 6 MIDI semitones. This means that b lowered by one step and f need identical amounts of MIDI pitch bend but different accidental glyphs.


reply via email to

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