mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-03-13 11:50:44 +01:00
parent
cb989baf83
commit
b6559fc904
7 changed files with 2459 additions and 2416 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -3035,14 +3035,10 @@ dependencies = [
|
|||
"better-panic",
|
||||
"crossterm 0.29.0",
|
||||
"dizzle",
|
||||
"heck 0.5.0",
|
||||
"palette",
|
||||
"proc-macro2",
|
||||
"quanta",
|
||||
"quote",
|
||||
"rand 0.8.5",
|
||||
"ratatui",
|
||||
"syn 2.0.117",
|
||||
"unicode-width 0.2.0",
|
||||
]
|
||||
|
||||
|
|
|
|||
4
Justfile
4
Justfile
|
|
@ -1,8 +1,8 @@
|
|||
export RUSTFLAGS := "--cfg procmacro2_semver_exempt -Zmacro-backtrace -Clink-arg=-fuse-ld=mold"
|
||||
export RUST_BACKTRACE := "1"
|
||||
|
||||
default:
|
||||
@just -l
|
||||
default +ARGS="new":
|
||||
target/debug/tek {{ARGS}}
|
||||
|
||||
cloc:
|
||||
for src in {cli,edn/src,input/src,jack/src,midi/src,output/src,plugin/src,sampler/src,tek/src,time/src,tui/src}; do echo; echo $src; cloc --quiet $src; done
|
||||
|
|
|
|||
15
app/tek.rs
15
app/tek.rs
|
|
@ -20,19 +20,12 @@ pub(crate) use ::midly::{Smf, TrackEventKind, MidiMessage, Error as MidiError, n
|
|||
pub extern crate tengri;
|
||||
pub(crate) use tengri::{
|
||||
*,
|
||||
dizzle::{
|
||||
self,
|
||||
*
|
||||
},
|
||||
crossterm::event::{Event, KeyEvent},
|
||||
ratatui::{
|
||||
self,
|
||||
prelude::{Rect, Style, Stylize, Buffer, Modifier, buffer::Cell, Color::{self, *}},
|
||||
prelude::{Rect, Style, Stylize, Buffer, Color::{self, *}},
|
||||
widgets::{Widget, canvas::{Canvas, Line}},
|
||||
},
|
||||
crossterm::{
|
||||
self,
|
||||
event::{Event, KeyEvent, KeyCode::{self, *}},
|
||||
},
|
||||
};
|
||||
#[cfg(feature = "sampler")] pub(crate) use symphonia::{
|
||||
default::get_codecs,
|
||||
|
|
@ -887,9 +880,9 @@ def_command!(SamplerCommand: |sampler: Sampler| {
|
|||
Ok(None)
|
||||
},
|
||||
StopSample { slot: usize } => {
|
||||
let slot = *slot;
|
||||
let _slot = *slot;
|
||||
todo!();
|
||||
Ok(None)
|
||||
//Ok(None)
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
4412
app/tek_impls.rs
4412
app/tek_impls.rs
File diff suppressed because it is too large
Load diff
|
|
@ -545,14 +545,16 @@ pub trait HasPlayClip: HasClock {
|
|||
}
|
||||
|
||||
pub trait MidiMonitor: HasMidiIns + HasMidiBuffers {
|
||||
/// Input note flags.
|
||||
fn notes_in (&self) -> &Arc<RwLock<[bool;128]>>;
|
||||
/// Current monitoring status.
|
||||
fn monitoring (&self) -> bool;
|
||||
/// Mutable monitoring status.
|
||||
fn monitoring_mut (&mut self) -> &mut bool;
|
||||
fn toggle_monitor (&mut self) {
|
||||
*self.monitoring_mut() = !self.monitoring();
|
||||
}
|
||||
fn monitor (&mut self, scope: &ProcessScope) {
|
||||
}
|
||||
/// Enable or disable monitoring.
|
||||
fn toggle_monitor (&mut self) { *self.monitoring_mut() = !self.monitoring(); }
|
||||
/// Perform monitoring.
|
||||
fn monitor (&mut self, _scope: &ProcessScope) { /* do nothing by default */ }
|
||||
}
|
||||
|
||||
pub trait MidiRecord: MidiMonitor + HasClock + HasPlayClip {
|
||||
|
|
|
|||
2
dizzle
2
dizzle
|
|
@ -1 +1 @@
|
|||
Subproject commit 89260648ff828ab3c55b566368007a7b83fc3fc8
|
||||
Subproject commit 7d1fbe3fbe53699a3e12eb5a3d55db79653d72d8
|
||||
2
tengri
2
tengri
|
|
@ -1 +1 @@
|
|||
Subproject commit 06f8ed3ae3a5d0458036ba816f244df11c6b1277
|
||||
Subproject commit 5d0dc40fdcd7cc022d1e468d9bf59de722949ace
|
||||
Loading…
Add table
Add a link
Reference in a new issue