mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-03-13 11:50:44 +01:00
25 lines
661 B
Rust
25 lines
661 B
Rust
use crate::*;
|
|
|
|
pub type MidiData =
|
|
Vec<Vec<MidiMessage>>;
|
|
|
|
pub type ClipPool =
|
|
Vec<Arc<RwLock<MidiClip>>>;
|
|
|
|
pub type CollectedMidiInput<'a> =
|
|
Vec<Vec<(u32, Result<LiveEvent<'a>, MidiError>)>>;
|
|
|
|
pub type SceneWith<'a, T> =
|
|
(usize, &'a Scene, usize, usize, T);
|
|
|
|
pub type MidiSample =
|
|
(Option<u7>, Arc<RwLock<crate::Sample>>);
|
|
|
|
/// Collection of interaction modes.
|
|
pub type Modes = Arc<RwLock<BTreeMap<Arc<str>, Arc<Mode<Arc<str>>>>>>;
|
|
|
|
/// Collection of input bindings.
|
|
pub type Binds = Arc<RwLock<BTreeMap<Arc<str>, Bind<TuiEvent, Arc<str>>>>>;
|
|
|
|
/// Collection of view definitions.
|
|
pub type Views = Arc<RwLock<BTreeMap<Arc<str>, Arc<str>>>>;
|