fn instrument2div(instrument: u8) -> u16 {
    match instrument {
        0 | 1 => 4,
        2 => 15,
        3 | 4 => 31,
        5 | 6 => 465,
        _ => panic!("Invalid instrument used"),
    }
}
// returns divider*2, to avoid dealing with floats at this point
returns divider*2, to avoid dealing with floats at this point
returns divider * 2 to avoid dealing with floats at this point
fn instrument2div(instrument: u8) -> u16 {
    match instrument {
        0 | 1 => 4,
        2 => 15,
        3 | 4 => 31,
        5 | 6 => 465,
        _ => panic!("Invalid instrument used"),
    }
}
fn instrument2div ( instrument : u8 ) -> u16 { match instrument { 0 | 1 => 4 , 2 => 15 , 3 | 4 => 31 , 5 | 6 => 465 , _ => panic ! ( " " ) , } }
returns divider*2, to avoid dealing with floats at this point
returns divider * 2 to avoid dealing with floats at this point
instrument
u8
instrument
u8