Multi sample bulk import

This commit is contained in:
Skyler Lehmkuhl
2026-02-20 01:59:37 -05:00
parent 35089f3b2e
commit 66c848e218
9 changed files with 1176 additions and 2 deletions
@@ -458,6 +458,16 @@ impl MultiSamplerNode {
Ok(())
}
/// Remove all layers
pub fn clear_layers(&mut self) {
self.layers.clear();
self.layer_infos.clear();
// Stop all active voices
for voice in &mut self.voices {
voice.is_active = false;
}
}
/// Find the best matching layer for a given note and velocity
fn find_layer(&self, note: u8, velocity: u8) -> Option<usize> {
self.layers