impl parse tone str

This commit is contained in:
2026-03-11 09:17:04 -06:00
parent 0d4d92f374
commit b8910becc6
5 changed files with 76 additions and 17 deletions

View File

@@ -2,7 +2,7 @@ use itertools::Itertools;
mod flags;
mod syn;
mod note;
mod tone;
fn main() {
let flags = flags::Flags::new();
@@ -12,8 +12,8 @@ fn main() {
flags.sound_font,
flags.sample_rate,
);
// Play some notes (middle C, E, G). // 16 channels actually // 60=c 64=e 67=g //up to 128velocity though dont go below 50 tbh // 12 notes per octave
syn.note_on(0, note::new("any").i32(), 127);
// 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.note_on(0, tone::new("c").i32(), 127);
play(syn, flags.sample_rate, flags.bpm, flags.smallest_note);
}