wip: fix one batch of errors, unlock another

This commit is contained in:
🪞👃🪞 2024-08-09 00:31:23 +03:00
parent a54798994b
commit 10f191282e
14 changed files with 92 additions and 28 deletions

View file

@ -2,11 +2,13 @@ use crate::*;
/// Phrase editor.
pub struct Sequencer {
pub name: String,
pub mode: bool,
pub focused: bool,
pub entered: bool,
pub phrase: Option<Arc<RwLock<Phrase>>>,
pub transport: Option<Arc<RwLock<TransportToolbar>>>,
pub buffer: BigBuffer,
pub keys: Buffer,
/// Highlight input keys
@ -34,6 +36,7 @@ handle!(Sequencer |self, e| handle_keymap(self, e, KEYMAP_SEQUENCER));
impl Sequencer {
pub fn new () -> Self {
Self {
name: "".into(),
buffer: Default::default(),
keys: keys_vert(),
entered: false,
@ -44,6 +47,7 @@ impl Sequencer {
phrase: None,
now: 0,
ppq: 96,
transport: None,
note_axis: FixedAxis {
start: 12,
point: Some(36)