fix: checks, tests

This commit is contained in:
stop screaming 2026-02-20 14:25:35 +02:00
parent cb17cdb8bc
commit 6411a82279
5 changed files with 9 additions and 11 deletions

2
deps/tengri vendored

@ -1 +1 @@
Subproject commit ce2eeaee7fc23c3f3683cee310a9117d764409cb
Subproject commit 2a7e981b9c4294cc23cf0dbf5c8625aff9486c78

View file

@ -370,7 +370,7 @@ impl Arrangement {
}
}
pub(crate) fn wrap (bg: Color, fg: Color, content: impl Content<TuiOut>) -> impl Content<TuiOut> {
pub fn wrap (bg: Color, fg: Color, content: impl Content<TuiOut>) -> impl Content<TuiOut> {
let left = Tui::fg_bg(bg, Reset, Fixed::X(1, Repeat::Y("")));
let right = Tui::fg_bg(bg, Reset, Fixed::X(1, Repeat::Y("")));
Bsp::e(left, Bsp::w(right, Tui::fg_bg(fg, bg, content)))

View file

@ -292,7 +292,7 @@ pub fn view_status (
)))
}
pub(crate) fn button_play_pause (playing: bool) -> impl Content<TuiOut> {
pub fn button_play_pause (playing: bool) -> impl Content<TuiOut> {
let compact = true;//self.is_editing();
Tui::bg(if playing { Rgb(0, 128, 0) } else { Rgb(128, 64, 0) },
Either::new(compact,

View file

@ -1,5 +1,5 @@
//! ```
//! let sample = Sample::new("test", 0, 0, vec![]);
//! let sample = tek_device::Sample::new("test", 0, 0, vec![]);
//! ```
use crate::*;

View file

@ -1,24 +1,22 @@
//! MIDI sequencer
//! ```
//! use crate::*;
//!
//! let clip = MidiClip::default();
//! let clip = tek_device::MidiClip::default();
//! println!("Empty clip: {clip:?}");
//!
//! let clip = MidiClip::stop_all();
//! let clip = tek_device::MidiClip::stop_all();
//! println!("Panic clip: {clip:?}");
//!
//! let mut clip = MidiClip::new("clip", true, 1, None, None);
//! let mut clip = tek_device::MidiClip::new("clip", true, 1, None, None);
//! clip.set_length(96);
//! clip.toggle_loop();
//! clip.record_event(12, MidiMessage::NoteOn { key: 36.into(), vel: 100.into() });
//! clip.record_event(12, midly::MidiMessage::NoteOn { key: 36.into(), vel: 100.into() });
//! assert!(clip.contains_note_on(36.into(), 6, 18));
//! assert_eq!(&clip.notes, &clip.duplicate().notes);
//!
//! let clip = std::sync::Arc::new(clip);
//! assert_eq!(clip.clone(), clip);
//!
//! let sequencer = Sequencer::default();
//! let sequencer = tek_device::Sequencer::default();
//! println!("{sequencer:?}");
//! ```