impl parse tone str
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user