Skip to content

Commit 3d09eb6

Browse files
committed
Update midir note
1 parent 2b76e2a commit 3d09eb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/notes/midir_precise_timing.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ The following information is provided by Gemini 2.0 Flash. I questioned about th
55

66
I also found this open issue: https://github.com/Boddlnagg/midir/issues/45 in which a similar question was raised.
77

8-
However, I tested using the `test_play.rs` example in the midir repo, and even with a buffer size of 2048 the notes match their expected play time pretty well. Maybe I need to decrease sample rate as well.
8+
Update 2025/02/26: My test today testifies to my finding. I tested using `sleep` of 266ms between two recurring notes, and I observed a pattern of notes with the duration of 256ms interspersed with notes with the duration of 299ms at every fourth or fifth note.
9+
10+
I did not observe this in the previous test was because midir defaults the ALSA backend. To use the JACK backend, I need to specify `--features jack`.
11+
12+
~~However, I tested using the `test_play.rs` example in the midir repo, and even with a buffer size of 2048 the notes match their expected play time pretty well. Maybe I need to decrease sample rate as well.~~
913

1014
---
1115

0 commit comments

Comments
 (0)