MCPcopy Create free account
hub / github.com/PerroEngine/Perro / push_voice

Method push_voice

perro_source/audio_stack/perro_pawdio/src/midi.rs:598–605  ·  view source on GitHub ↗
(&mut self, note: MidiMixerNote)

Source from the content-addressed store, hash-verified

596
597#[inline]
598#[cfg(feature = "playback")]
599fn fast_sine(table: &[f32; SINE_TABLE_SIZE], phase: f32) -> f32 {
600 let idx = ((phase * (SINE_TABLE_SIZE as f32 / TAU)) as usize) & SINE_TABLE_MASK;
601 table[idx]
602}
603
604#[cfg(feature = "playback")]
605static SINE_TABLE: OnceLock<[f32; SINE_TABLE_SIZE]> = OnceLock::new();
606
607#[cfg(feature = "playback")]
608pub struct BuiltInMidiMixerSource {

Callers 1

process_controlsMethod · 0.80

Calls 4

remove_voice_atMethod · 0.80
lenMethod · 0.45
pushMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected