split_cents

pitchtools.split_cents(notename)[source]

Split a notename into the chromatic note and the cents deviation.

The cents deviation can be a negative or possitive integer or an abbreviation (‘+’, ‘-’, ‘>’, ‘<’)

Parameters:

notename (str) – the notename to split

Return type:

tuple[str, int]

Returns:

the chromatic pitch and the cents deviation from this chromatic pitch

Input

Output

“4E-”

(“4E”, -50)

“5C#+10”

(“5C#”, 10)

See also

split_notename()