MIDI "Jitter" - It Does Exist

Page: << < ..1112131415.. > >> Showing page 12 of 18
Author
jb
Max Output Level: -55 dBFS
  • Total Posts : 2020
  • Joined: 2003/11/04 15:45:25
  • Location: heart of late capitalist darkness
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 15:59:15 (permalink)

ORIGINAL: Steve_Karl

http://www.sightsea.com/music/singles/safety's_beginning.mp3


Steve, nice music.

Celeron 300A o/c 450, SBLive, Win98SE
RTGraham
Max Output Level: -57 dBFS
  • Total Posts : 1824
  • Joined: 2004/03/29 20:17:13
  • Location: New York
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 16:01:55 (permalink)

ORIGINAL: Steve_Karl
In reality, my experience is that 960 ticks in Sonar is much more accurate to a human performance than 96 is,
An MC-500 Mark II would be intolerable for me in this stage of the work I do.

Jitter is a non-issue for me. I don't see it, I don't hear it. My rig is stable and the playback is reliably consistent.
I'm a happy camper at 960.
Now ... It's quite possible that the "slop" cause by jitter that you refer to is something I've gotten used to, and have learned to work with.
Kind of like the way we learn to work with the difference in the height of guitar strings, or the throw of a piano key.
Listen and adjust, and forget about it.


Good point. And I should probably note here that for the most part, I've been very happy with 960ppqn as well - to me, it definitely feels like an improvement over older, lower-ppqn software sequencers. Most of the time, I'm happy with how SONAR plays back what I record... but I do find myself doing tweaking in surprising spots occasionally (especially with things like cymbal rolls).

ORIGINAL: Steve_Karl
I make a point of keeping my tempos set high, as in, if the piece is really at 90 BPM, I'll intentionally run it at 180.
I usually don't worry about the tempo unless I'm getting down below 100 BPM.


Interesting. I know dewdman says this only makes your computer work harder, but I wonder if you might be effectively running at 1920ppqn (kind of like optical resolution versus digital resolution on a scanner). In theory, you're achieving a better, more accurate *feel* by recording with higher precision when the timestamps are accurate, but it probably also means that the "slop," which is millisecond-timer-related (as opposed to MIDI sequencer clock related), spans twice the number of clicks when it does rear its head.

Interesting, musical post.
dewdman42
Max Output Level: -74 dBFS
  • Total Posts : 839
  • Joined: 2004/09/20 16:37:27
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 16:04:08 (permalink)

ORIGINAL: RTGraham
but it probably also means that the "slop," which is millisecond-timer-related (as opposed to MIDI sequencer clock related), spans twice the number of clicks when it does rear its head.


exactly
RTGraham
Max Output Level: -57 dBFS
  • Total Posts : 1824
  • Joined: 2004/03/29 20:17:13
  • Location: New York
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 16:10:59 (permalink)
ORIGINAL: dewdman42


ORIGINAL: RTGraham
but it probably also means that the "slop," which is millisecond-timer-related (as opposed to MIDI sequencer clock related), spans twice the number of clicks when it does rear its head.


exactly


Right... however, I can see how doubling the tempo might still be useful to Steve... if he happens to be using an extremely stable MIDI interface, where he's already minimizing his jitter, then he'll be capturing the subtleties of his performance with finer resolution overall, jitter notwithstanding. Wonder what interface he's using.

Which also makes me wonder... I know a lot of people who have old Emagic Unitor-8 interfaces that they never gave up, even though they're out of production, because they feel they're extremely stable. I'm talking about musicians who are serious about their timing... I wonder what kind of jitter characteristics those interfaces have. Granted, some of them are being used in Mac environments, so the entire communication mechanism might be different.

EDIT:

Just did some searching on the Unitor-8 interfaces... Emagic had incorporated, at the time, a new "technology" called AMT. It sounds, essentially, like hardware timestamps that get decoded only by the same manufacturer's software -in this case, Logic. Being that Apple now owns Logic, one could hypothesize that they incorporated some of those concepts into CoreMidi, which would make the Unitor a particularly stable interface on the Mac now, regardless of what application (i.e. Pro Tools) accesses it.

An interesting scenario, if it's true. And an argument for Microsoft to do something similar with Windows: based on all of the posts in this thread, it's becoming clear (at least to me) that one solution, and probably a good one, would be for Windows to incorporate a kernel-level MIDI API that would support better clock resolution and timestamping.
post edited by RTGraham - 2007/10/19 16:27:42
jb
Max Output Level: -55 dBFS
  • Total Posts : 2020
  • Joined: 2003/11/04 15:45:25
  • Location: heart of late capitalist darkness
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 16:19:35 (permalink)
It's discussed here a couple of mouse wheels down.

Celeron 300A o/c 450, SBLive, Win98SE
dewdman42
Max Output Level: -74 dBFS
  • Total Posts : 839
  • Joined: 2004/09/20 16:37:27
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 16:24:10 (permalink)
The emagic unitor provided hardware timestamping, but only with Logic. It will not be more stable than anything else under sonar.

If you have 2-4ms of slop when recording your midi parts, then it does not matter what the resolution is set to..it only means it will record the slop more precisely... more precisely recorded slop! heh heh.. Its futile to think its giving any more accurate precision than that. and there is the possibility that the increased work load going to the computer to handle more ticks per second will make the slop worse.

Some key strikes might get lucky, some may not. You would have no way of knowing which ones were on the money and which were slopped out. Everyone has been measuring and the best we're seeing is in the average area of 2ms off reality.

As I said, if you want to capture a gliss or grace note, try the higher resolution, maybe you will get lucky maybe not. If you're just trying to play to tempo, using a lower PPQN is more likely to get the note where you wanted it and will impose less system resources to do so.



post edited by dewdman42 - 2007/10/19 16:34:42
Steve_Karl
Max Output Level: -50 dBFS
  • Total Posts : 2534
  • Joined: 2003/11/06 20:53:26
  • Location: Pittsburgh, PA USA
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 16:27:11 (permalink)

ORIGINAL: RTGraham

Right... however, I can see how doubling the tempo might still be useful to Steve... if he happens to be using an extremely stable MIDI interface, where he's already minimizing his jitter, then he'll be capturing the subtleties of his performance with finer resolution overall, jitter notwithstanding. Wonder what interface he's using.



Originally I had a Voyetra V24 ( I believe it was called ) on the first machine I used CWPA9 on.
It was very good.

Now I have 2 TASCAM pci-822 cards ( pci slot ... in 2 different machines )
No complaints at all.









Steve Karl
https://soundcloud.com/steve_karl
SPLAT 2017.01
dewdman42
Max Output Level: -74 dBFS
  • Total Posts : 839
  • Joined: 2004/09/20 16:37:27
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 16:33:00 (permalink)

ORIGINAL: RTGraham
Just did some searching on the Unitor-8 interfaces... Emagic had incorporated, at the time, a new "technology" called AMT. It sounds, essentially, like hardware timestamps that get decoded only by the same manufacturer's software -in this case, Logic. Being that Apple now owns Logic, one could hypothesize that they incorporated some of those concepts into CoreMidi, which would make the Unitor a particularly stable interface on the Mac now, regardless of what application (i.e. Pro Tools) accesses it.

Apple licensed MOTU's MTS technology for CoreMidi. In theory, MOTU midi devices with MTS will provide hardware timestamping to all CoreMidi applications, including Logic and Digital Performer. Prior to CoreMidi, only Digital Performer could take advantage of this hardware timestamping feature.

On the windows side the only options have been the Unitor with AMT, and as well Steinberg had a solution that only worked with their sequencer.


An interesting scenario, if it's true. And an argument for Microsoft to do something similar with Windows: based on all of the posts in this thread, it's becoming clear (at least to me) that one solution, and probably a good one, would be for Windows to incorporate a kernel-level MIDI API that would support better clock resolution and timestamping.


Now you're getting it. This is what I've been trying to say for days. Microsoft is the one to bug about this. They need a Windows equivalent of Apple's CoreMidi...and then you have to convince hardware makers to build the same sort of technology into their interfaces that MOTU did in theirs. Ideally, Microsoft would mimic Apple and license MOTU's MTS. That way, all the MOTU hardware would instantly become useable under Windows sequencers that use the new model. However, I doubt MS will ever copy Apple in this regard. Also, MS has had DirectMusic out for a long time now, which had a lot of similar technology a CoreMidi and absolutely nobody in the windows world jumped on that bandwagon except for Steinberg and that guy with the 8PortSE driver. There is just not a lot of drive in this direction.

Personally I think Cakewalk has a lot of influence over Microsoft audio/midi technology and I wish they would take a more active role in terms of advancing sub-millisecond midi timing accuracy.

dewdman42
Max Output Level: -74 dBFS
  • Total Posts : 839
  • Joined: 2004/09/20 16:37:27
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 16:39:10 (permalink)

ORIGINAL: Steve_Karl
Now I have 2 TASCAM pci-822 cards ( pci slot ... in 2 different machines )
No complaints at all.


That is one of the few PCI based midi interfaces out there and I would be very interested to hear the results if you were to run this interface through some of the tests that others on this thread have done. PCI based midi does have the potential to be lower latency and less jitter than USB in general, though you're still dealing with the MM timer which is 1ms on a good day, but can sometimes be sloppy too. But still I would expect that you might very well be getting pretty close to 1ms timing with that interface, just on a hunch..(which is the same as 480PPQN by the way)...not including the other midi slop you get from the midi cable and midi ports on your keyboard.

brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:10:13 (permalink)
If you're just trying to play to tempo, using a lower PPQN is more likely to get the note where you wanted it and will impose less system resources to do so.


Okay. I'm officially taking a stance: This is NOT true.

I set up a new Sonar project at 48PPQ, saved it as a template, closed Sonar, restarted, opened the template, and recorded some randomly played notes from my keyboard. In the event view, the first four events were at ticks 37, 3, 19 and 10. This would correspond to 740, 60, 380 and 200 at 960PPQ. But when I changed the project to 960PPQ, the displayed tick values were 742, 73, 392 and 201.

Based on this, I feel it is safe to say that Sonar always uses a resolution of at least 960PPQ internally, so there is no value in running at a lower PPQ setting, except possibly if you like the tick values to have a smaller range when you are looking at things in the event view.


dewdman42
Max Output Level: -74 dBFS
  • Total Posts : 839
  • Joined: 2004/09/20 16:37:27
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:16:18 (permalink)
You might be right, but I feel that is a bug in sonar if true. One thing we do not really know for sure, is whether Sonar is making more trips, more often, to the midi input buffer.
post edited by dewdman42 - 2007/10/19 17:27:54
Jim Wright
Max Output Level: -66 dBFS
  • Total Posts : 1218
  • Joined: 2004/01/15 15:30:34
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:16:45 (permalink)
Edited: never mind, Steve already answered my question....
Serves me right for not scanning the full thread first !

- Jim

post edited by Jim Wright - 2007/10/19 17:30:30
dewdman42
Max Output Level: -74 dBFS
  • Total Posts : 839
  • Joined: 2004/09/20 16:37:27
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:18:36 (permalink)
He already said he's using that Tascam one, which is a PCI based interface, which is why I'm curious about what kind of performance he is getting from that interface, it might be quite good.
Steve_Karl
Max Output Level: -50 dBFS
  • Total Posts : 2534
  • Joined: 2003/11/06 20:53:26
  • Location: Pittsburgh, PA USA
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:19:30 (permalink)
Hi Jim,

Tascam pci-822.


No problem
post edited by Steve_Karl - 2007/10/19 17:35:18

Steve Karl
https://soundcloud.com/steve_karl
SPLAT 2017.01
Steve_Karl
Max Output Level: -50 dBFS
  • Total Posts : 2534
  • Joined: 2003/11/06 20:53:26
  • Location: Pittsburgh, PA USA
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:24:32 (permalink)

ORIGINAL: brundlefly

If you're just trying to play to tempo, using a lower PPQN is more likely to get the note where you wanted it and will impose less system resources to do so.


Okay. I'm officially taking a stance: This is NOT true.

I set up a new Sonar project at 48PPQ, saved it as a template, closed Sonar, restarted, opened the template, and recorded some randomly played notes from my keyboard. In the event view, the first four events were at ticks 37, 3, 19 and 10. This would correspond to 740, 60, 380 and 200 at 960PPQ. But when I changed the project to 960PPQ, the displayed tick values were 742, 73, 392 and 201.

Based on this, I feel it is safe to say that Sonar always uses a resolution of at least 960PPQ internally, so there is no value in running at a lower PPQ setting, except possibly if you like the tick values to have a smaller range when you are looking at things in the event view.





I agree totally.
Even if one is using a poorly designed midi interface that reaks with jitter, choosing a lower PPQ is still going to impose limitations that aren't needed.


Steve Karl
https://soundcloud.com/steve_karl
SPLAT 2017.01
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:31:26 (permalink)
I don't know if I'd call it a bug, per se, but it is definitely contrary to what their manual says:

Internally, SONAR stores times as “raw” ticks or clock pulses. The
timebase—the number of pulses per quarter note (PPQ)—is adjustable,
from 48 to 960 PPQ.

They really should clarify that these settings apply only to editing operations, and that everything is recorded and played back with an "internal" resolution of 960PPQ, regardless of how you set the "editing and display" resolution.
dewdman42
Max Output Level: -74 dBFS
  • Total Posts : 839
  • Joined: 2004/09/20 16:37:27
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:34:02 (permalink)
You guys are both still missing the point that the MM timer is only 1ms and its sometimes not even that. That is the frequency with which Sonar goes to look at what the midi interface has collected. Regardless of what you have set your PPQN to, You're never ever going to get better than that..which means 1ms quantization effectively. That results in a kind of jitter. And that very action of going to look at the midi buffer is EXPENSIVE. The main reason for suggesting to use a lower PPQN is to reduce the overhead. If Sonar is not going to look at the midi buffer less often, then there is no point in lowering it. However, if lowering it does have some impact, then there may be a case for it.

Bottom line, however, is that nothing you think you are doing with your setups is giving you true 960PPQN midi recording from your midi input port. At best its maybe half that. And its probably not that good either. 960PPQN on windows is mostly marketing.

Anyway, I'm unsubscribing from this thread because I feel like I'm beating my head against a wall. The only final comment I can make is to use your ears, do what works for you and have fun. I hope cakewalk will investigate the fact that the PRV is not representing what is actually playing back, that is a bug IMHO.
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:35:12 (permalink)
One thing we do not really know for sure, is whether Sonar is making more trips, more often, to the midi input buffer.


Based on the results of the MIDI round-trip test I did at "48PPQ" (wink, wink, nod, nod), I think we do know that it is checking more often.
Steve_Karl
Max Output Level: -50 dBFS
  • Total Posts : 2534
  • Joined: 2003/11/06 20:53:26
  • Location: Pittsburgh, PA USA
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:39:46 (permalink)

ORIGINAL: brundlefly

One thing we do not really know for sure, is whether Sonar is making more trips, more often, to the midi input buffer.


Based on the results of the MIDI round-trip test I did at "48PPQ" (wink, wink, nod, nod), I think we do know that it is checking more often.


Also, hearing the difference ( consistently over years ) between 480 and 960 is good enough for me without any numerical tests.


Steve Karl
https://soundcloud.com/steve_karl
SPLAT 2017.01
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:53:47 (permalink)
You guys are both still missing the point that the MM timer is only 1ms and its sometimes not even that. That is the frequency with which Sonar goes to look at what the midi interface has collected.


I hear what you're saying. But I'm not really trying to address this point. I'm just saying that adjusting the setting has no effect on how Sonar records or plays back events, so you might as well set it high so that your editing operations don't inadvertently quantize things more than necessary. And also that, as far as I can tell form my testing, using lower PPQ settings won't decrease jitter, or quantize your input so that it plays back significantly more than a ms different from the way you played it in, contrary to the many statements along these lines that have been made in this thread.

Jim Wright
Max Output Level: -66 dBFS
  • Total Posts : 1218
  • Joined: 2004/01/15 15:30:34
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:54:39 (permalink)
As Yoda said "There is another...." way to improve MIDI timing accuracy on a Windows machine. At least in theory...

Bear with me while I set the stage.
There are (at least) three major sources of MIDI jitter on a Windows DAW.

1) is any jitter that's contributed by the underlying transport (USB, Firewire, PCI). USB contributes at least 2 milliseconds of jitter, for reasons discussed above. Firewire contributes about 0.3 milliseconds of jitter. PCI - contributes very little jitter (probably 5-20 microseconds at most; depends on drivers, interrupt configuration, etc.). Anything that Both Firewire and PCI will be

2) is the nature of MIDI DIN. If you stuff too much data over the wire too fast -- you will get "MIDI logjam" effects, a.k.a. smearing. This happens if you do something like send lots of tightly-packed controller messages. It happens because MIDI DIN can only send 1 byte of data every 320 microseconds - period. Try to send more, and data will just queue up until the logjam clears. This "smears" the timing. Note that USB MIDI is *not* susceptible to MIDI logjam effects in quite the same way, because it doesn't have a built-in throttle limiting data transfer to 1 byte every 320 microseconds. However, this is only true when the USB MIDI -- does not have MIDI DIN jacks. If you are using USB MIDI to send data to/from MIDI DIN jacks (as opposed to a hardware synth with a USB interface) --- then MIDI logjam can still occur, even with USB MIDI.

3) The final MIDI jitter source is the infamous 1 millisecond Windows "MM" timer, which sequencers have historically used for timing MIDI data.



OK. Time to explain how it's possible (in theory, at least) to avoid the 1 millisecond quantizing/jitter effects.

First, use a PCI-based MIDI interface - not USB MIDI. This removes one major potential jitter source.

Then - don't use the "MM" timer to time incoming and outgoing MIDI data. This part requires kernel-level coding, but should be doable.

The standard Windows API calls for sending and receiving MIDI do not actually use the MM timer directly. I know some posts have said they do - but those posts were wrong. For example, the API call for sending a single MIDI 'short" message looks something like midiOut(driverHandle,midiMessageData). There is no timestamp argument in that API call. Instead, Windows tries to send the data "as fast as possible" through the MIDI driver specified by 'driverHandle'.

If you call 'midiOut' from user-level code, then it can take a while for MIDI data to actually get sent out the MIDI DIN jack (Windows has to do a context switch from user to kernel level; various kinds of house-keeping may occur....). But, if you call midiOut from your own kernel-level code, sending MIDI data can be much more 'immediate' - especially if you bypass some of the normal Windows 'wrapping' of MIDI drivers, and tickle the driver more directly. Plus, if you are running kernel-level sequencer code - you can completely avoid using the 1 millisecond-resolution MM timer. What do you use instead? A higher-resolution, kernel-level timer (several kinds are available, Google on QueryPerformanceCounter for one option).

Putting all these pieces together --- a clever sequencer designer might be able to build a kernel-level 'event engine' that a) runs at kernel level, to avoid various layers of Windows cruft; b) talks to the MIDI interface drivers more directly, to bypass still more cruft; c) uses its own custom-shop high-performance timer, rather than the stock 'MM timer.
Easy? No. But it might be do-able.
Does Sonar do this? No. Noel said (later in this thread) that Sonar uses the "MM' timer.
Have I built code like this? No. All my sequencer engines were user-level stuff (lthe last one was Win98-vintage).
Will this make a different with USB MIDI drivers? Probably not. USB introduces enough other slop that it wouldn't be worth it.
How about Firewire? Possible, but more tricky to do than with PCI-based MIDI ports (because of the Firewire driver stack).
My gut tells me that a PCI-based interface still provides the best shot at minimizing jitter, because it has the lowest inherent 'transport jitter' (PCI bus is very very fast) and also has the simplest driver stack (less chance for Windows to muck things up).

Whew! If you plowed through all that, you probably deserve a beer

- Jim

Edit: Noel clarified that Sonar doesn't use a kernel-level event engine. Frankly, building one would be a pretty tricky piece of coding. It would be even more tricky to make this hypothetical 'kernel-level event engine' perform reliably, given all the other stuff that goes on in the kernel. Probably wiser not to go there...

"The difference between theory and practice in theory is much less than the difference between theory and practice in practice." [Randal L. Schwartz]

post edited by Jim Wright - 2007/10/20 11:58:29
Noel Borthwick [Cakewalk]
Cakewalk Staff
  • Total Posts : 6475
  • Joined: 2003/11/03 17:22:50
  • Location: Boston, MA, USA
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 17:58:45 (permalink)
Exactly. Internally SONAR always internally operates and stores MIDI at 960PPQ. This is by design since SONAR 1 I think. The PPQ setting in the project is only for display and edit purposes.

ORIGINAL: brundlefly

If you're just trying to play to tempo, using a lower PPQN is more likely to get the note where you wanted it and will impose less system resources to do so.


Okay. I'm officially taking a stance: This is NOT true.

I set up a new Sonar project at 48PPQ, saved it as a template, closed Sonar, restarted, opened the template, and recorded some randomly played notes from my keyboard. In the event view, the first four events were at ticks 37, 3, 19 and 10. This would correspond to 740, 60, 380 and 200 at 960PPQ. But when I changed the project to 960PPQ, the displayed tick values were 742, 73, 392 and 201.

Based on this, I feel it is safe to say that Sonar always uses a resolution of at least 960PPQ internally, so there is no value in running at a lower PPQ setting, except possibly if you like the tick values to have a smaller range when you are looking at things in the event view.





Noel Borthwick
Senior Manager Audio Core, BandLab
My Blog, Twitter, BandLab Profile
Steve_Karl
Max Output Level: -50 dBFS
  • Total Posts : 2534
  • Joined: 2003/11/06 20:53:26
  • Location: Pittsburgh, PA USA
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 18:07:10 (permalink)

ORIGINAL: Jim Wright

My gut tells me that a PCI-based interface still provides the best shot at minimizing jitter, because it has the lowest inherent 'transport jitter' (PCI bus is very very fast) and also has the simplest driver stack (less chance for Windows to muck things up).

Whew! If you plowed through all that, you probably deserve a beer

- Jim



Excellent post Jim.
I agree on a gut level about the pci bus, remembering the first few USB midi devices and all of the discussion about the same type of issues kind of engraved it on a stone wall, in my mind at least.



Steve Karl
https://soundcloud.com/steve_karl
SPLAT 2017.01
Steve_Karl
Max Output Level: -50 dBFS
  • Total Posts : 2534
  • Joined: 2003/11/06 20:53:26
  • Location: Pittsburgh, PA USA
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 18:14:26 (permalink)
Oh ... thinking of hardware, an other Midi Interface that has worked well for me with no 'noticable' timing issues is the M-Audio 2496.
I used it for about 6 months when in transition from the Voyetra ( isa slot ) to the pci-822.
I still have the 2496 but it's in a retired PC that doesn't get used for music anymore.
post edited by Steve_Karl - 2007/10/19 18:25:00

Steve Karl
https://soundcloud.com/steve_karl
SPLAT 2017.01
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 18:17:44 (permalink)
Exactly. Internally SONAR always internally operates and stores MIDI at 960PPQ. This is by design since SONAR 1 I think. The PPQ setting in the project is only for display and edit purposes.


Thanks for the clarification, Noel. Guess we should have gone to you first!
Steve_Karl
Max Output Level: -50 dBFS
  • Total Posts : 2534
  • Joined: 2003/11/06 20:53:26
  • Location: Pittsburgh, PA USA
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 18:21:47 (permalink)
We can then assume that there is no performance benifit running at a lower PPQ? ... and that there is even a chance of higher overhead making the translation from the 960 base to a lower ppq?

Interesting. Just thinking out loud here.

Steve Karl
https://soundcloud.com/steve_karl
SPLAT 2017.01
dewdman42
Max Output Level: -74 dBFS
  • Total Posts : 839
  • Joined: 2004/09/20 16:37:27
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 18:51:47 (permalink)
Noel, I don't suppose there is any chance you can tell us what timers are used for retrieving midi data from the midi driver or whether Sonar uses kernel mode stuff of its own to timestamp incoming midi?
dewdman42
Max Output Level: -74 dBFS
  • Total Posts : 839
  • Joined: 2004/09/20 16:37:27
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 18:55:59 (permalink)
Given the above statment from Noel, there is absolutely no point whatsoever for ever running Sonar at a value lower than 960PPQN. If that is how it is always recorded and played back no matter what you have it set at, then you might as well have Sonar set to that value so that what you see in the PRV is accurately reflecting what is actually recorded in the track and being played back.

Perhaps while editing in the PRV you might find it convenient to be able to nudge notes around at a lower resolution, but in my view if that is the case it should be a PRV lock-to-grid feature. The current implication by the manual and where it is configured; that changing this setting will change the fundamental timing of Sonar. This is apparently not the case.

Further to that, I would really like more information about what actual timer is used by Sonar for retrieving incoming midi events from the hardware and how that lines up with this 960PPQN hard coded resolution.
post edited by dewdman42 - 2007/10/19 19:08:51
Dave Malaguti [Cakewalk]
Max Output Level: -90 dBFS
  • Total Posts : 39
  • Joined: 2003/11/04 11:12:13
  • Location: Boston, MA, USA
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 18:58:23 (permalink)

ORIGINAL: brundlefly
What you're saying is kind of what we all thought/expected. But this is not what I'm seeing in my testing. Ignoring for the moment whether a given transient starts right on the beat or not, if what you say is true, the beginnings of transients should be at even intervals (i.e. all early or late by the same amount. But I am seeing differences on the order of 100 samples from the expected interval between consecutive events when rendering through the TTS-1. I just did a test with the Dreamstation DXi, and got smaller errors, on the order of 30 samples. So it seems to be Synth-specific. I have not yet tried a VST instrument.


I just ran through your test, and it definitely looks like what you're seeing is introduced by TTS-1. I was able to reproduce your results, although the variations in the spacing of the hits were extremely regular in my test.

Sample Position Interval
0
1297 1297
2703 1406
4111 1408
5519 1408
6801 1282
8207 1406
9615 1408
11023 1408
12305 1282
13711 1406
15119 1408
16527 1408
17809 1282


I then re-ran the test, this time using Twonar, which as Noel has mentioned is a very simple DXi included as a sample with the SDK. As you can see from the results, jitter disappears entirely in this case.

Sample Position Interval
0
1379 1379
2757 1378
4135 1378
5514 1379
6892 1378
8270 1378
9648 1378
11026 1378
12404 1378
13782 1378
15160 1378
16539 1379
17917 1378


You can download Twonar here if you want to check it out. I think this shows fairly definitively that the problem is not in SONAR itself. We'll take a look at TTS-1 and see if anything can be done about the way it responds.

Dave Malaguti
Beta Administrator
Cakewalk
dewdman42
Max Output Level: -74 dBFS
  • Total Posts : 839
  • Joined: 2004/09/20 16:37:27
  • Status: offline
RE: MIDI "Jitter" - It Does Exist 2007/10/19 19:00:24 (permalink)

ORIGINAL: Dave Malaguti [Cakewalk]
We'll take a look at TTS-1 and see if anything can be done about the way it responds.


Awesome!!!!
Page: << < ..1112131415.. > >> Showing page 12 of 18
Jump to:
© 2025 APG vNext Commercial Version 5.1