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

Method file

perro_source/audio_stack/perro_pawdio/src/midi.rs:724–727  ·  view source on GitHub ↗
(bytes: &[u8], song: MidiSong, rx: Receiver<MidiControl>)

Source from the content-addressed store, hash-verified

722}
723
724#[cfg(feature = "playback")]
725fn program_wave(program: MidiProgram) -> WaveKind {
726 match program.0 {
727 16..=23 | 80..=87 => WaveKind::Square,
728 24..=39 | 56..=79 => WaveKind::Saw,
729 40..=55 => WaveKind::Triangle,
730 112..=127 => WaveKind::Noise,

Callers 4

is_file_presentFunction · 0.80
deleteFunction · 0.80
get_file_bytesFunction · 0.80
writeFunction · 0.80

Calls 1

parse_built_in_midi_fileFunction · 0.85

Tested by

no test coverage detected