mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
18 lines
430 B
Rust
18 lines
430 B
Rust
use tek::*;
|
|
|
|
struct ExampleClips(Vec<Arc<RwLock<Clip>>>);
|
|
|
|
impl HasClips for ExampleClips {
|
|
fn phrases (&self) -> &Vec<Arc<RwLock<Clip>>> {
|
|
&self.0
|
|
}
|
|
fn phrases_mut (&mut self) -> &mut Vec<Arc<RwLock<Clip>>> {
|
|
&mut self.0
|
|
}
|
|
}
|
|
|
|
fn main () -> Usually<()> {
|
|
let mut phrases = ExampleClips(vec![]);
|
|
PoolClipCommand::Import(0, String::from("./example.mid")).execute(&mut phrases)?;
|
|
Ok(())
|
|
}
|