Le mardi 14 février 2023 à 19:49 +0100, Karim Haddad a écrit : > Thank you Hans, Gregory and Jean, > > Your help is precious. > > Just another beginner's question: > I found amazingly that Lily plays the 1/8th tones correctly as it does for > 1/4th tones. > If i need to use other weird scales, can someone point me to the lily code > responsible for the midi pitch tuning (bend) in lilypond, so I can mess > around ...
From LilyPond's point of view, every note has a pitch, and this
pitch is played strictly, that's it.
In the code I sent, the 1/8 tone intervals are played correctly because
I defined the pitches "cet", etc., with the values they should have, using
`ly:parser-set-note-names`. You can do that too, like in the following example;
you also need to define accidental glyphs.
```
\version "2.25.2"
#(ly:parser-set-note-names
`((mynoteA . ,(ly:make-pitch 0 0 1/14))
(mynoteB . ,(ly:make-pitch 0 0 3/14))))
\layout {
\context {
\Score
alterationGlyphs =
#'((1/14 . "accidentals.sharp.slash.stem")
(3/14 . "accidentals.sharp.slashslashslash.stemstem"))
}
}
{ mynoteA mynoteB }
```
signature.asc
Description: This is a digitally signed message part
