mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
wip: fix one batch of errors, unlock another
This commit is contained in:
parent
a54798994b
commit
10f191282e
14 changed files with 92 additions and 28 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue