mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
sampler: arrows select slot
This commit is contained in:
parent
b376d75396
commit
2877545140
3 changed files with 38 additions and 21 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue