dummy syn

This commit is contained in:
breel
2026-03-10 20:08:15 -06:00
parent ecfb30a7d8
commit b88858fdd0

View File

@@ -49,24 +49,28 @@ fn main() {
enum Syn {
Real(Synthesizer),
Text,
}
impl Syn {
fn note_on(&mut self, a: i32, b: i32, c: i32) {
match self {
Syn::Real(syn) => syn.note_on(a, b, c),
Syn::Text => eprintln!("note_on({:?}, {:?}, {:?})", a, b, c),
};
}
fn note_off(&mut self, a: i32, b: i32) {
match self {
Syn::Real(syn) => syn.note_off(a, b),
Syn::Text => eprintln!("note_off({:?}, {:?})", a, b),
};
}
fn render(&mut self, a: &mut [f32], b: &mut [f32]) {
match self {
Syn::Real(syn) => syn.render(a, b),
Syn::Text => eprintln!("render(..., ...)"),
};
}
}