split_notename
- pitchtools.split_notename(notename)[source]
Splits a notename into octave, letter, alteration and cents
- Parameters:
notename (
str
) – the notename to split- Return type:
Microtonal alterations, like “+” (+50), “-” (-50), “>” (+25), “<” (-25) are resolved into cents alterations. Hertz deviations (for example ‘4C+15hz’) are not supported here
Input
Output
4C#+10
4, “C”, “#”, 10
Eb4-15
4, “E”, “b”, -15
4C+
4, “C”, “”, 50
5Db<
5, “D”, “b”, -25
See also