mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-02-21 08:19:03 +01:00
fix: checks, tests
This commit is contained in:
parent
cb17cdb8bc
commit
6411a82279
5 changed files with 9 additions and 11 deletions
2
deps/tengri
vendored
2
deps/tengri
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit ce2eeaee7fc23c3f3683cee310a9117d764409cb
|
||||
Subproject commit 2a7e981b9c4294cc23cf0dbf5c8625aff9486c78
|
||||
|
|
@ -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)))
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
//! ```
|
||||
//! let sample = Sample::new("test", 0, 0, vec![]);
|
||||
//! let sample = tek_device::Sample::new("test", 0, 0, vec![]);
|
||||
//! ```
|
||||
|
||||
use crate::*;
|
||||
|
|
|
|||
|
|
@ -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:?}");
|
||||
//! ```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue