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

Method live

perro_source/audio_stack/perro_pawdio/src/midi.rs:461–471  ·  view source on GitHub ↗
(note: MidiMixerNote)

Source from the content-addressed store, hash-verified

459 }
460
461 fn live(note: MidiMixerNote) -> Self {
462 let auto_release_sample = (!note.held).then_some(duration_samples(note.sustain));
463 Self::new_internal(
464 Some(note.id),
465 note.note,
466 note.velocity,
467 note.volume,
468 note.program,
469 auto_release_sample,
470 )
471 }
472
473 fn new_internal(
474 id: Option<u64>,

Callers

nothing calls this directly

Calls 1

duration_samplesFunction · 0.85

Tested by

no test coverage detected