miti icon indicating copy to clipboard operation
miti copied to clipboard

[Question] How much jitter is there?

Open schollz opened this issue 3 years ago • 4 comments

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 avatar Jul 21 '20 22:07 schollz

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

image

image

Measurement method:

333

schollz avatar Jul 22 '20 02:07 schollz

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

Raspberry Pi no latency:

image

Raspberry Pi w/ 1s latency (scheduled):

image

schollz avatar Jul 22 '20 13:07 schollz

Windows comparisons.

WIthout latency:

image

image

image

With latency:

image

image

image

image

schollz avatar Jul 22 '20 13:07 schollz

nice research!

0atman avatar Aug 17 '21 11:08 0atman