mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
rebind sequencer keys
This commit is contained in:
parent
27b1c27891
commit
98fa0c4c4f
4 changed files with 31 additions and 17 deletions
|
|
@ -107,19 +107,23 @@ impl Handle<Tui> for PhraseEditor<Tui> {
|
|||
true => { self.time_axis.point_inc(self.time_axis.scale); },
|
||||
false => { self.time_axis.start_inc(self.time_axis.scale); },
|
||||
},
|
||||
key!(KeyCode::Char('>')) => {
|
||||
self.time_axis.scale = prev_note_length(self.time_axis.scale)
|
||||
},
|
||||
key!(KeyCode::Char('<')) => {
|
||||
key!(KeyCode::Char('-')) => {
|
||||
self.time_axis.scale = next_note_length(self.time_axis.scale)
|
||||
},
|
||||
key!(KeyCode::Char(',')) => match self.entered {
|
||||
true => { self.note_len = prev_note_length(self.note_len) },
|
||||
false => { self.time_axis.scale = next_note_length(self.time_axis.scale) },
|
||||
key!(KeyCode::Char('_')) => {
|
||||
self.time_axis.scale = next_note_length(self.time_axis.scale)
|
||||
},
|
||||
key!(KeyCode::Char('.')) => match self.entered {
|
||||
true => { self.note_len = next_note_length(self.note_len) },
|
||||
false => { self.time_axis.scale = prev_note_length(self.time_axis.scale) },
|
||||
key!(KeyCode::Char('=')) => {
|
||||
self.time_axis.scale = prev_note_length(self.time_axis.scale)
|
||||
},
|
||||
key!(KeyCode::Char('+')) => {
|
||||
self.time_axis.scale = prev_note_length(self.time_axis.scale)
|
||||
},
|
||||
key!(KeyCode::Char('[')) => if self.entered {
|
||||
self.note_len = prev_note_length(self.note_len)
|
||||
},
|
||||
key!(KeyCode::Char(']')) => if self.entered {
|
||||
self.note_len = next_note_length(self.note_len)
|
||||
},
|
||||
key!(KeyCode::Char('a')) => if self.entered {
|
||||
self.put();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue