mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
render chain with SplitFocus
This commit is contained in:
parent
a39e694a3e
commit
c3040cef1c
12 changed files with 247 additions and 147 deletions
11
src/model.rs
11
src/model.rs
|
|
@ -13,7 +13,7 @@ pub use self::sampler::{Sampler, Sample, read_sample_data};
|
|||
pub use self::mixer::Mixer;
|
||||
pub use self::plugin::{Plugin, PluginKind, lv2::LV2Plugin};
|
||||
|
||||
use crate::core::*;
|
||||
use crate::{core::*, view::*};
|
||||
|
||||
pub struct App {
|
||||
/// Paths to user directories
|
||||
|
|
@ -43,6 +43,8 @@ pub struct App {
|
|||
pub chain_mode: bool,
|
||||
/// Display mode of sequencer seciton
|
||||
pub seq_mode: bool,
|
||||
/// Display buffer for sequencer
|
||||
pub seq_buf: BufferedSequencerView,
|
||||
/// Optional modal dialog
|
||||
pub modal: Option<Box<dyn Component>>,
|
||||
/// Currently focused section
|
||||
|
|
@ -57,10 +59,6 @@ pub struct App {
|
|||
pub note_start: usize,
|
||||
/// Display position of cursor within time range
|
||||
pub time_cursor: usize,
|
||||
/// PPQ per display unit
|
||||
pub time_zoom: usize,
|
||||
/// Range of time steps to display
|
||||
pub time_start: usize,
|
||||
/// Focused scene+1, 0 is track list
|
||||
pub scene_cursor: usize,
|
||||
/// Collection of scenes
|
||||
|
|
@ -105,9 +103,8 @@ impl App {
|
|||
scenes: vec![],
|
||||
section: AppSection::default(),
|
||||
seq_mode: false,
|
||||
seq_buf: BufferedSequencerView::new(96, 16384),
|
||||
time_cursor: 0,
|
||||
time_start: 0,
|
||||
time_zoom: 12,
|
||||
timebase: Arc::new(Timebase::default()),
|
||||
track_cursor: 1,
|
||||
tracks: vec![],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue