mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-01-12 19:16:41 +01:00
wip: p.45, e=33, lotta todo!
This commit is contained in:
parent
260736f31d
commit
627c7d8820
17 changed files with 198 additions and 226 deletions
|
|
@ -8,7 +8,7 @@ pub struct PhrasesTui {
|
|||
/// Scroll offset
|
||||
pub scroll: usize,
|
||||
/// Mode switch
|
||||
pub mode: Option<PhrasePoolMode>,
|
||||
pub mode: Option<PhrasesMode>,
|
||||
/// Whether this widget is focused
|
||||
pub focused: bool,
|
||||
/// Whether this widget is entered
|
||||
|
|
@ -16,7 +16,7 @@ pub struct PhrasesTui {
|
|||
}
|
||||
|
||||
/// Modes for phrase pool
|
||||
pub enum PhrasePoolMode {
|
||||
pub enum PhrasesMode {
|
||||
/// Renaming a pattern
|
||||
Rename(usize, String),
|
||||
/// Editing the length of a pattern
|
||||
|
|
@ -103,7 +103,7 @@ pub struct PhraseLength {
|
|||
pub focus: Option<PhraseLengthFocus>,
|
||||
}
|
||||
|
||||
impl<E: Engine> PhraseLength<E> {
|
||||
impl PhraseLength {
|
||||
pub fn new (pulses: usize, focus: Option<PhraseLengthFocus>) -> Self {
|
||||
Self { _engine: Default::default(), ppq: PPQ, bpb: 4, pulses, focus }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue