Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How much jitter is there? #4

Open
schollz opened this issue Jul 21, 2020 · 4 comments
Open

[Question] How much jitter is there? #4

schollz opened this issue Jul 21, 2020 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@schollz
Copy link
Owner

schollz commented Jul 21, 2020

Testing using 1/8th notes at 110 bpm on 3 instruments (nts-1, op-1, sh-01a). Two samples taken while running, for 20 seconds each. The samples were processed, aligned and differed.

Takeaways:

  • little difference between portmidi and rtmidi libraries
  • instrument makes a difference, nts-1 jitters between 0-20 ms, while op-1 jitters between 0-2 ms
  • little difference between one instrument and three simultaneous instruments

Some representative examples:

Measured from the nts-1, one instrument:

image

Measured from the nts-1, three instruments:

image

Measured from the op-1:

image

Measured from the op-1, 1/8th notes at 220 bpm:

image

Measured from the op-1, using rtmidi instead of portmidi:

image

Measured using a song I wrote at 110 bpm:

image

pattern a 

tempo 110
instruments nts-1
legato 1
C1 Eb G C Eb G C Eb 

instruments op-1
legato 50
Bb3D4  G3 Eb- Eb . . . . Bb3Eb4 G3 Eb- Eb . . . .
Bb3Eb4 G3 Eb- Eb . . . . Bb3Eb4 G3 Eb- Eb . . . .
G3C4  Eb3 C- C . . . . G3C4  Eb3 C- C . . . . 
G3C4  Eb3 C- C . . . . G3C4  Eb3 C- C . . . . 

instruments sh-01a
legato 90
Eb3GBb 
D3FBb
C3EbG- 
C3EbG
@schollz schollz closed this as completed Jul 21, 2020
@schollz schollz reopened this Jul 22, 2020
@schollz
Copy link
Owner Author

schollz commented Jul 22, 2020

Jitter from Raspberry Pi is bit higher, measured on op-1 on 1/8th notes at 220bpm:

image

image

Measurement method:

333

@schollz schollz changed the title Jitter [Question] How much jitter is there? Jul 22, 2020
@schollz schollz added the documentation Improvements or additions to documentation label Jul 22, 2020
@schollz
Copy link
Owner Author

schollz commented Jul 22, 2020

Interestingly, adding latency doesn't seem to help much more:

Raspberry Pi no latency:

image

Raspberry Pi w/ 1s latency (scheduled):

image

@schollz
Copy link
Owner Author

schollz commented Jul 22, 2020

Windows comparisons.

WIthout latency:

image

image

image

With latency:

image

image

image

image

@0atman
Copy link

0atman commented Aug 17, 2021

nice research!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants