syn accepts tones isntead of i32

This commit is contained in:
2026-03-11 09:27:27 -06:00
parent 37fb8940ec
commit ff3911fee9
2 changed files with 18 additions and 16 deletions

View File

@@ -13,7 +13,7 @@ fn main() {
flags.sample_rate,
);
// Play some tones (middle C, E, G). // 16 channels actually // 60=c 64=e 67=g //up to 128velocity though dont go below 50 tbh // 12 tones per octave
syn.tone_on(0, tone::new("c").i32(), 127);
syn.tone_on(0, tone::new("c+5"), 127);
play(syn, flags.sample_rate, flags.bpm, flags.smallest_note);
}