mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
rename time modules
This commit is contained in:
parent
9f70441627
commit
866d88c8ec
14 changed files with 41 additions and 28 deletions
|
|
@ -1,22 +1,23 @@
|
||||||
use crate::*;
|
use crate::*;
|
||||||
|
|
||||||
view!(TuiOut: |self: Tek| self.size.of(View(self, self.view)); {
|
view!(TuiOut: |self: Tek| self.size.of(View(self, self.view)); {
|
||||||
//":inputs" => self.view_inputs().boxed(),
|
":nil" =>
|
||||||
//":outputs" => self.view_outputs().boxed(),
|
Box::new("nil"),
|
||||||
//":scene-add" => self.view_scene_add().boxed(),
|
":transport" =>
|
||||||
//":scenes" => self.view_scenes().boxed(),
|
self.view_transport().boxed(),
|
||||||
//":tracks" => self.view_tracks().boxed(),
|
":arranger" =>
|
||||||
":nil" => Box::new("nil"),
|
ArrangerView::new(self).boxed(),
|
||||||
":transport" => self.view_transport().boxed(),
|
":editor" =>
|
||||||
":arranger" => ArrangerView::new(self).boxed(),
|
self.editor.as_ref()
|
||||||
":editor" => self.editor.as_ref()
|
.map(|e|Bsp::s(Bsp::e(e.clip_status(), e.edit_status()), e))
|
||||||
.map(|e|Bsp::s(Bsp::e(e.clip_status(), e.edit_status()), e))
|
.boxed(),
|
||||||
.boxed(),
|
":sample" =>
|
||||||
":sample" => ().boxed(),//self.view_sample(self.is_editing()).boxed(),
|
().boxed(),//self.view_sample(self.is_editing()).boxed(),
|
||||||
":sampler" => ().boxed(),//self.view_sampler(self.is_editing(), &self.editor).boxed(),
|
":sampler" =>
|
||||||
//":samples-grid" => SamplerView::new(self).boxed(),
|
().boxed(),//self.view_sampler(self.is_editing(), &self.editor).boxed(),
|
||||||
":status" => self.view_status().boxed(),
|
":status" =>
|
||||||
":pool" => self.pool.as_ref()
|
self.view_status().boxed(),
|
||||||
|
":pool" => self.pool.as_ref()
|
||||||
.map(|pool|Fixed::x(self.w_sidebar(), PoolView(self.is_editing(), pool)))
|
.map(|pool|Fixed::x(self.w_sidebar(), PoolView(self.is_editing(), pool)))
|
||||||
.boxed(),
|
.boxed(),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ impl Cli {
|
||||||
keys_mix: SourceIter(include_str!("./edn/arranger_keys_mix.edn")),
|
keys_mix: SourceIter(include_str!("./edn/arranger_keys_mix.edn")),
|
||||||
tracks: match mode {
|
tracks: match mode {
|
||||||
Mode::Sequencer => vec![Track::default()],
|
Mode::Sequencer => vec![Track::default()],
|
||||||
Mode::Groovebox => vec![Track {
|
Mode::Groovebox | Mode::Sampler => vec![Track {
|
||||||
devices: vec![
|
devices: vec![
|
||||||
Device::boxed(Sampler::new(
|
Device::boxed(Sampler::new(
|
||||||
jack,
|
jack,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,16 @@
|
||||||
|
//handle!(TuiIn: |self: Sampler, input|SamplerCommand::execute_with_state(self, input.event()));
|
||||||
|
//input_to_command!(SamplerCommand: |state: Sampler, input: Event|match state.mode{
|
||||||
|
//Some(SamplerMode::Import(..)) => Self::Import(
|
||||||
|
//FileBrowserCommand::input_to_command(state, input)?
|
||||||
|
//),
|
||||||
|
//_ => match input {
|
||||||
|
//// load sample
|
||||||
|
//kpat!(Shift-Char('L')) => Self::Import(FileBrowserCommand::Begin),
|
||||||
|
//kpat!(KeyCode::Up) => Self::Select(state.note_pos().overflowing_add(1).0.min(127)),
|
||||||
|
//kpat!(KeyCode::Down) => Self::Select(state.note_pos().overflowing_sub(1).0.min(127)),
|
||||||
|
//_ => return None
|
||||||
|
//}
|
||||||
|
//});
|
||||||
//impl Handle<TuiIn> for AddSampleModal {
|
//impl Handle<TuiIn> for AddSampleModal {
|
||||||
//fn handle (&mut self, from: &TuiIn) -> Perhaps<bool> {
|
//fn handle (&mut self, from: &TuiIn) -> Perhaps<bool> {
|
||||||
//if from.handle_keymap(self, KEYMAP_ADD_SAMPLE)? {
|
//if from.handle_keymap(self, KEYMAP_ADD_SAMPLE)? {
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
mod clock; pub use self::clock::*;
|
mod time_clock; pub use self::time_clock::*;
|
||||||
mod microsecond; pub use self::microsecond::*;
|
mod time_moment; pub use self::time_moment::*;
|
||||||
mod moment; pub use self::moment::*;
|
mod time_note; pub use self::time_note::*;
|
||||||
mod note_duration; pub use self::note_duration::*;
|
mod time_perf; pub use self::time_perf::*;
|
||||||
mod perf; pub use self::perf::*;
|
mod time_pulse; pub use self::time_pulse::*;
|
||||||
mod pulse; pub use self::pulse::*;
|
mod time_sample_count; pub use self::time_sample_count::*;
|
||||||
mod sample_count; pub use self::sample_count::*;
|
mod time_sample_rate; pub use self::time_sample_rate::*;
|
||||||
mod sample_rate; pub use self::sample_rate::*;
|
mod time_timebase; pub use self::time_timebase::*;
|
||||||
mod timebase; pub use self::timebase::*;
|
mod time_unit; pub use self::time_unit::*;
|
||||||
mod unit; pub use self::unit::*;
|
mod time_usec; pub use self::time_usec::*;
|
||||||
|
|
||||||
pub(crate) use ::tek_jack::{*, jack::{*, contrib::*}};
|
pub(crate) use ::tek_jack::{*, jack::{*, contrib::*}};
|
||||||
pub(crate) use std::sync::{Arc, RwLock, atomic::{AtomicBool, AtomicUsize, Ordering::*}};
|
pub(crate) use std::sync::{Arc, RwLock, atomic::{AtomicBool, AtomicUsize, Ordering::*}};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue