mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
25 lines
813 B
Rust
25 lines
813 B
Rust
/// Phrase editor.
|
|
|
|
pub(crate) use tek_core::*;
|
|
pub(crate) use tek_core::crossterm::event::KeyCode;
|
|
pub(crate) use tek_core::midly::{num::u7, live::LiveEvent, MidiMessage};
|
|
pub(crate) use tek_core::jack::*;
|
|
pub(crate) use std::sync::{Arc, RwLock};
|
|
|
|
submod! {
|
|
arranger arranger_cmd arranger_tui arranger_snd
|
|
sequencer sequencer_cmd sequencer_tui sequencer_snd
|
|
transport transport_cmd transport_tui transport_snd
|
|
}
|
|
|
|
/// FIXME: use PPQ value from global timebase
|
|
pub const PPQ: usize = 96;
|
|
|
|
pub const CORNERS: CornersTall = CornersTall(CORNERS_STYLE);
|
|
tui_style!(CORNERS_STYLE =
|
|
Some(Color::Rgb(96, 255, 32)), None, None, Modifier::empty(), Modifier::DIM);
|
|
|
|
/// Octave number (from -1 to 9)
|
|
pub const NTH_OCTAVE: [&'static str;11] = [
|
|
"-1", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
|
|
];
|