[−][src]Function music_timer::create_performance_engine
pub fn create_performance_engine(
numerator: u8,
denominator: u8,
bpm: f32
) -> MusicTimerEngine
Creates a new music timer performance engine.
Arguments
numerator
- The upper part of a time signature. Must be none 0.denominator
- The lower part of a time signature. Only 2, 4, 8, 16, 32 are supported.bpm
- The beats per minute.
Example
let mut performer = music_timer::create_performance_engine(3, 4, 155.0);