mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
wip(p67,e0): whew!
This commit is contained in:
parent
faf7576ad8
commit
132093f14a
8 changed files with 64 additions and 59 deletions
|
|
@ -2,51 +2,51 @@ use crate::*;
|
|||
|
||||
/// Stores and displays time-related info.
|
||||
pub struct TransportTui {
|
||||
pub(crate) jack: Arc<RwLock<JackClient>>,
|
||||
pub(crate) state: TransportModel,
|
||||
pub(crate) size: Measure<Tui>,
|
||||
pub(crate) cursor: (usize, usize),
|
||||
pub jack: Arc<RwLock<JackClient>>,
|
||||
pub state: TransportModel,
|
||||
pub size: Measure<Tui>,
|
||||
pub cursor: (usize, usize),
|
||||
}
|
||||
|
||||
/// Root view for standalone `tek_sequencer`.
|
||||
pub struct SequencerTui {
|
||||
pub(crate) jack: Arc<RwLock<JackClient>>,
|
||||
pub(crate) transport: TransportModel,
|
||||
pub(crate) phrases: PhrasesModel,
|
||||
pub(crate) player: PhrasePlayerModel,
|
||||
pub(crate) editor: PhraseEditorModel,
|
||||
pub(crate) size: Measure<Tui>,
|
||||
pub(crate) cursor: (usize, usize),
|
||||
pub(crate) split: u16,
|
||||
pub(crate) entered: bool,
|
||||
pub jack: Arc<RwLock<JackClient>>,
|
||||
pub transport: TransportModel,
|
||||
pub phrases: PhrasesModel,
|
||||
pub player: PhrasePlayerModel,
|
||||
pub editor: PhraseEditorModel,
|
||||
pub size: Measure<Tui>,
|
||||
pub cursor: (usize, usize),
|
||||
pub split: u16,
|
||||
pub entered: bool,
|
||||
/// MIDI output buffer
|
||||
pub(crate) note_buf: Vec<u8>,
|
||||
pub note_buf: Vec<u8>,
|
||||
/// MIDI output buffer
|
||||
pub(crate) midi_buf: Vec<Vec<Vec<u8>>>,
|
||||
pub midi_buf: Vec<Vec<Vec<u8>>>,
|
||||
}
|
||||
|
||||
/// Root view for standalone `tek_arranger`
|
||||
pub struct ArrangerTui {
|
||||
pub(crate) jack: Arc<RwLock<JackClient>>,
|
||||
pub(crate) transport: TransportModel,
|
||||
pub(crate) phrases: PhrasesModel,
|
||||
pub(crate) tracks: Vec<ArrangerTrack>,
|
||||
pub(crate) scenes: Vec<ArrangerScene>,
|
||||
pub(crate) name: Arc<RwLock<String>>,
|
||||
pub(crate) splits: [u16;2],
|
||||
pub(crate) selected: ArrangerSelection,
|
||||
pub(crate) mode: ArrangerMode,
|
||||
pub(crate) color: ItemColor,
|
||||
pub(crate) entered: bool,
|
||||
pub(crate) size: Measure<Tui>,
|
||||
pub(crate) cursor: (usize, usize),
|
||||
pub(crate) menu_bar: Option<MenuBar<Tui, Self, ArrangerCommand>>,
|
||||
pub(crate) status_bar: Option<ArrangerStatus>,
|
||||
pub(crate) history: Vec<ArrangerCommand>,
|
||||
pub jack: Arc<RwLock<JackClient>>,
|
||||
pub transport: TransportModel,
|
||||
pub phrases: PhrasesModel,
|
||||
pub tracks: Vec<ArrangerTrack>,
|
||||
pub scenes: Vec<ArrangerScene>,
|
||||
pub name: Arc<RwLock<String>>,
|
||||
pub splits: [u16;2],
|
||||
pub selected: ArrangerSelection,
|
||||
pub mode: ArrangerMode,
|
||||
pub color: ItemColor,
|
||||
pub entered: bool,
|
||||
pub size: Measure<Tui>,
|
||||
pub cursor: (usize, usize),
|
||||
pub menu_bar: Option<MenuBar<Tui, Self, ArrangerCommand>>,
|
||||
pub status_bar: Option<ArrangerStatus>,
|
||||
pub history: Vec<ArrangerCommand>,
|
||||
/// MIDI output buffer
|
||||
pub(crate) note_buf: Vec<u8>,
|
||||
pub note_buf: Vec<u8>,
|
||||
/// MIDI output buffer
|
||||
pub(crate) midi_buf: Vec<Vec<Vec<u8>>>,
|
||||
pub midi_buf: Vec<Vec<Vec<u8>>>,
|
||||
/// MIDI editor state
|
||||
pub(crate) editor: PhraseEditorModel,
|
||||
pub editor: PhraseEditorModel,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue