wip: a little broken rendering (as a treat)

This commit is contained in:
🪞👃🪞 2024-09-06 00:57:21 +03:00
parent 80086b9a8b
commit eb122585d6
9 changed files with 457 additions and 474 deletions

View file

@ -21,9 +21,8 @@ submod! {
sequencer_handle
sequencer_view
transport
transport_focus
transport_handle
transport_render
transport_view
}
pubmod! {

View file

@ -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,
}
}
}