Skip to main content

tempo_data

Function tempo_data 

Source
pub fn tempo_data(quarter_bpm: FloatType) -> [u8; 3]
Expand description

The three bytes of a tempo of so many quarters a minute: the microseconds a quarter lasts.

use music21::midi::translate::tempo_data;

assert_eq!(tempo_data(90.0), *b"\n,+");