mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
wip: a little broken rendering (as a treat)
This commit is contained in:
parent
80086b9a8b
commit
eb122585d6
9 changed files with 457 additions and 474 deletions
|
|
@ -21,9 +21,8 @@ submod! {
|
|||
sequencer_handle
|
||||
sequencer_view
|
||||
transport
|
||||
transport_focus
|
||||
transport_handle
|
||||
transport_render
|
||||
transport_view
|
||||
}
|
||||
|
||||
pubmod! {
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
use crate::*;
|
||||
|
||||
#[derive(PartialEq)]
|
||||
/// Which section of the transport is focused
|
||||
pub enum TransportFocus { BPM, Quant, Sync }
|
||||
|
||||
impl TransportFocus {
|
||||
pub fn prev (&mut self) {
|
||||
*self = match self {
|
||||
Self::BPM => Self::Sync,
|
||||
Self::Quant => Self::BPM,
|
||||
Self::Sync => Self::Quant,
|
||||
}
|
||||
}
|
||||
pub fn next (&mut self) {
|
||||
*self = match self {
|
||||
Self::BPM => Self::Quant,
|
||||
Self::Quant => Self::Sync,
|
||||
Self::Sync => Self::BPM,
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue