(note: MidiMixerNote)
| 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>, |
nothing calls this directly
no test coverage detected