mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 13:16:44 +01:00
20 lines
428 B
Rust
20 lines
428 B
Rust
use crate::*;
|
|
|
|
#[derive(Clone, Debug)]
|
|
pub enum ArrangerClipCommand {
|
|
Play,
|
|
Get(usize, usize),
|
|
Set(usize, usize, Option<Arc<RwLock<Phrase>>>),
|
|
Edit(Option<Arc<RwLock<Phrase>>>),
|
|
SetLoop(bool),
|
|
RandomColor,
|
|
}
|
|
|
|
impl<T: ArrangerApi> Command<T> for ArrangerClipCommand {
|
|
fn execute (self, state: &mut T) -> Perhaps<Self> {
|
|
match self {
|
|
_ => todo!()
|
|
}
|
|
Ok(None)
|
|
}
|
|
}
|