black screen yay
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
okay stopped screaming 2026-02-23 15:38:20 +02:00
parent cb989baf83
commit b6559fc904
7 changed files with 2459 additions and 2416 deletions

View file

@ -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)
},
});

File diff suppressed because it is too large Load diff

View file

@ -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 {