play with higher note

This commit is contained in:
2026-03-10 10:38:16 -06:00
parent 76e74cba8b
commit 3dbac8061d

View File

@@ -22,8 +22,8 @@ fn main() {
let settings = SynthesizerSettings::new(params.sample_rate as i32);
let mut synthesizer = Synthesizer::new(&sound_font, &settings).unwrap();
// 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
synthesizer.note_on(0, 64, 100);
// 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
synthesizer.note_on(0, 64+12, 127);
//synthesizer.render(&mut left[..], &mut right[..]); // puts in a state of rendering the first loop of these notes
// The recycled output buffer per-loop, could be in lamba but that'd be wasteful
@@ -42,6 +42,6 @@ fn main() {
.unwrap();
// Let it ride
std::thread::sleep(std::time::Duration::from_secs(1));
std::thread::sleep(std::time::Duration::from_secs(2));
}