From 6411a82279724fc5bdc2408d3f470994a2493d25 Mon Sep 17 00:00:00 2001 From: stop screaming Date: Fri, 20 Feb 2026 14:25:35 +0200 Subject: [PATCH] fix: checks, tests --- deps/tengri | 2 +- device/arranger.rs | 2 +- device/clock.rs | 2 +- device/sampler.rs | 2 +- device/sequencer.rs | 12 +++++------- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/deps/tengri b/deps/tengri index ce2eeaee..2a7e981b 160000 --- a/deps/tengri +++ b/deps/tengri @@ -1 +1 @@ -Subproject commit ce2eeaee7fc23c3f3683cee310a9117d764409cb +Subproject commit 2a7e981b9c4294cc23cf0dbf5c8625aff9486c78 diff --git a/device/arranger.rs b/device/arranger.rs index 5b64f3b8..be67eb03 100644 --- a/device/arranger.rs +++ b/device/arranger.rs @@ -370,7 +370,7 @@ impl Arrangement { } } -pub(crate) fn wrap (bg: Color, fg: Color, content: impl Content) -> impl Content { +pub fn wrap (bg: Color, fg: Color, content: impl Content) -> impl Content { 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))) diff --git a/device/clock.rs b/device/clock.rs index 17ab9d36..e8a42a5a 100644 --- a/device/clock.rs +++ b/device/clock.rs @@ -292,7 +292,7 @@ pub fn view_status ( ))) } -pub(crate) fn button_play_pause (playing: bool) -> impl Content { +pub fn button_play_pause (playing: bool) -> impl Content { let compact = true;//self.is_editing(); Tui::bg(if playing { Rgb(0, 128, 0) } else { Rgb(128, 64, 0) }, Either::new(compact, diff --git a/device/sampler.rs b/device/sampler.rs index c4905944..353b2b5c 100644 --- a/device/sampler.rs +++ b/device/sampler.rs @@ -1,5 +1,5 @@ //! ``` -//! let sample = Sample::new("test", 0, 0, vec![]); +//! let sample = tek_device::Sample::new("test", 0, 0, vec![]); //! ``` use crate::*; diff --git a/device/sequencer.rs b/device/sequencer.rs index c12a263f..f7b2145e 100644 --- a/device/sequencer.rs +++ b/device/sequencer.rs @@ -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:?}"); //! ```