Skip to main content

note_frequency

Function note_frequency 

Source
pub fn note_frequency(table: &[f64; 128], note: u8) -> f64
Expand description

Allocation-free, panic-free key→frequency lookup. note is masked into 0..128, so any u8 is valid; an unmapped key returns 0.0.