mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
queue 0
This commit is contained in:
parent
66c29525be
commit
e92677d50c
1 changed files with 5 additions and 1 deletions
|
|
@ -135,6 +135,10 @@ pub fn to_sequencer_command (state: &SequencerTui, input: &TuiInput) -> Option<S
|
|||
key!(Char('q')) =>
|
||||
Enqueue(Some(state.phrases.phrases[state.phrases.phrase.load(Ordering::Relaxed)].clone())),
|
||||
|
||||
// 0: Enqueue phrase 0 (stop all)
|
||||
key!(Char('0')) =>
|
||||
Enqueue(Some(state.phrases.phrases[0].clone())),
|
||||
|
||||
// E: Toggle between editing currently playing or other phrase
|
||||
key!(Char('e')) => if let Some((_, Some(playing_phrase))) = state.player.play_phrase() {
|
||||
let editing_phrase = state.editor.phrase()
|
||||
|
|
@ -199,7 +203,7 @@ render!(|self: SequencerTui|lay!([self.size, Tui::split_up(false, 1,
|
|||
false
|
||||
}
|
||||
))),
|
||||
self.editor
|
||||
//self.editor
|
||||
]),
|
||||
)
|
||||
)]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue