mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-11 14:16:42 +01:00
key pattern matching macro
This commit is contained in:
parent
e0c8a427f1
commit
92d747ba2a
7 changed files with 168 additions and 93 deletions
|
|
@ -49,12 +49,13 @@ impl<E: Engine> Track<E> {
|
|||
//None => ()
|
||||
//})
|
||||
//}
|
||||
|
||||
}
|
||||
impl Track<Tui> {
|
||||
pub fn from_edn <'a, 'e> (args: &[Edn<'e>]) -> Usually<Track<Tui>> {
|
||||
let mut _gain = 0.0f64;
|
||||
let mut track = Self::new("")?;
|
||||
#[allow(unused_mut)]
|
||||
let mut devices: Vec<JackDevice<E>> = vec![];
|
||||
let mut devices: Vec<JackDevice<Tui>> = vec![];
|
||||
edn!(edn in args {
|
||||
Edn::Map(map) => {
|
||||
if let Some(Edn::Str(n)) = map.get(&Edn::Key(SYM_NAME)) {
|
||||
|
|
@ -95,7 +96,7 @@ impl<E: Engine> Track<E> {
|
|||
}
|
||||
Ok(track)
|
||||
}
|
||||
pub fn add_device (&mut self, device: JackDevice<E>) {
|
||||
pub fn add_device (&mut self, device: JackDevice<Tui>) {
|
||||
self.devices.push(device);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue