pitchbend2cents

pitchtools.pitchbend2cents(pitchbend, maxcents=200)[source]

Convert a MIDI pitchbend to its corresponding deviation in cents

Parameters:
  • pitchbend (int) – the MIDI pitchbend value, between 0-16383 (8192 = 0 semitones)

  • maxcents – the cents corresponding to the max. bend

Return type:

int

Returns:

the bend expressed in cents