sampler: arrows select slot

This commit is contained in:
🪞👃🪞 2025-04-25 20:56:36 +03:00
parent b376d75396
commit 2877545140
3 changed files with 38 additions and 21 deletions

View file

@ -8,10 +8,10 @@ expose! {
[f32] => {}
[u7] => {}
[usize] => {
":sample-up" => 0,
":sample-down" => 0,
":sample-left" => 0,
":sample-right" => 0,
":sample-up" => self.note_pos().min(119) + 8,
":sample-down" => self.note_pos().max(8) - 8,
":sample-left" => self.note_pos().min(126) + 1,
":sample-right" => self.note_pos().max(1) - 1,
}
}
}