(pitches)
Transforms MIDI pitches [21,108] to [0, 88).
Transforms MIDI pitches [21,108] to [0, 88).
Transforms MIDI pitches [ 21 108 ] to [ 0 88 ) .
def demidify(pitches):
  """Transforms MIDI pitches [21,108] to [0, 88)."""
  assertions = [
      tf.assert_greater_equal(pitches, 21),
      tf.assert_less_equal(pitches, 108)
  ]
  with tf.control_dependencies(assertions):
    return pitches - 21
def demidify ( pitches ) : assertions = [ tf . assert_greater_equal ( pitches , 21 ) , tf . assert_less_equal ( pitches , 108 ) ] with tf . control_dependencies ( assertions ) : return pitches - 21