cents2pitchbend
- pitchtools.cents2pitchbend(cents, maxcents=200)[source]
Convert a deviation in cents to the corresponding value as pitchbend.
- Parameters:
cents (
int
) – the bend interval, in centsmaxcents – the cents corresponding to the max. bend
- Return type:
int
- Returns:
the bend MIDI value (between 0-16383)
See also