debugger shows bpm beats k

This commit is contained in:
breel
2026-03-10 23:11:22 -06:00
parent e9cbb86735
commit c470f7ae40
3 changed files with 15 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ fn main() {
let params = OutputDeviceParameters {
channels_count: 2,
sample_rate: flags.sample_rate,
channel_sample_count: flags.sample_rate / flags.smallest_note,
channel_sample_count: flags.sample_rate / flags.bpm * 60 / flags.smallest_note,
};
// 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