alteration_to_cents
- pitchtools.alteration_to_cents(alteration)[source]
Convert an alteration to its corresponding cents deviation
- Parameters:
alteration (
str) – the alteration as str (see table below)- Return type:
int- Returns:
the alteration in cents
Alternation
Cents
#+150
#>125
``# ``
100
#<75
``+ ``
50
``> ``
25
``< ``
-25
``- ``
-50
b>-75
``b ``
-100
b<-125
b--150