• SONAR
  • Natural Human playing in the PRV grid. (p.5)
2016/04/15 13:50:40
sonarman1
Unable to find any time to get deep into this. For now I tried to edit TTSSEQ.INI only to find out that there is no 'IgnoreMIDIInTimeStamps= ' in it or any anything close to it. I juggle between two computers in both my houses.  Both run Win10 64bit. Intel Core i3-4150 Haswell 3.5 GHz. One is pretty old with Intel core2duo 2.80GHz. Mostly recorded using Maudio keystation.

To make sure the midi controller is not the issue behind this I even tried recording using Sonar's Virtual controller. Used both mouse and the computer keyboard to input notes. The latency is just the same as how it is while using midi controller. So this is not related to the controller. I am sure of that now. I don't even think there is any additional issue here. As a matter of fact I have recorded for years and what I have observed is that although the notes may go till 240ticks ahead sometimes, they are just about a 120 ticks ahead(on average). Only few notes may go till 240 ticks. 120 ticks ahead is what I get normally. Not 240 ticks ahead as it is in my first screen shot. I am not sure why it is so in my first screen shot. May be while playing to a metronome and repeatedly hitting the note I might have played all the notes bit early. That is also possible or there was some other issue. Not sure though. But usually I only get only abt 120ticks ahead, so I guess we can ignore the first screen shot for now. I recorded a few notes now please go by these ones. 

Both of these I rec 2 days back while making that lengthy post with synth audio screen shots.

This is the one I recorded with 100ms latency

100ms (Do notice here I have recorded some notes continuously at 240ticks ahead. So may be I am prone to making this mistake while repeatedly playing the notes.)

(open the image in new tab to see it clearly)

10ms


This one I rec now today with 31ms latency

31ms


Just hitting the same note repeated might not be a good way to test this. I might be continuously hitting bit earlier or later. so I recorded a melody to see how it comes. 31ms latency here as well.

melody31ms

continuation



May be some more analysis is need. No time for now. Will get back 2morrow. Do interpret these. Here in the 10ms screenshot I am not sure why I got that much ticks ahead while playing with latency of 10ms. May be I am such a bad player who has the habit of playing everything bit ahead. Anyway thanks once again for all the help till now. 
2016/04/16 07:48:38
sonarman1
Okay. Been spending lot of time trying to sort this. I tried playing again and again in diff latencies with the metronome. What I got was Yes by average its 120 ticks ahead, but lot of variations sometimes some of it goes till 240ticks. Guess its mostly me playing little more ahead. Tried hitting the keys hard with more energy in hands and mostly got like 240ticks ahead (although not always). Tried playing softly and mostly it stayed in 120ticks, but again sometimes it goes 240ticks ahead for few notes and then comes back. I guess its just me playing like that. Still confusing but what makes it more clear is recording with slow tempo. I changed the tempo to 50bpm, 60bpm etc and played the stuffs and they never reached 240ticks anywhere. By average they were lesser than 120 ticks. When the bpm is high even little delay can make the notes go a 32 note or 16 note ahead.

          At 120bpm 240ticks(length of a 16th note) = 125ms and at 75bpm 240ticks = 200ms at 60bpm 240ticks = 250ms. So measuring latency based on ticks ifself is a bad idea causing confusion. Which is what we are having. Till now every screen shot I posted are recorded in 120bpm. And I had an average of 60ms ahead which went till 120ms in some cases. This 60ms had abt 30ms of latency caused by roundtrip and the rest 30 and 30+ms is the question. And I guess its mostly coz of natural variation. I am not a good timer as well, so I may have the habit of playing bit ahead. Or some thing else. If its something else then I sure need help. Btw another thing I noticed is that the best thing to do is to play a melody or riff to check rather than hitting a note continuously along with metronome. Like I said while hitting the note plainly just like that its possible to get into the cycle of hitting them ahead continuously, may be that's how I got most notes 120ms ahead in the first screenshot of this thread. Posting few screenshots of the melodies and riffs I tried playing at 120bpm and 75 bpm. This still need more observation.

120bpm 31ms rountrip latency
(open in new tab for high res)




75bpm 31ms roundtrip latency






Diff one with same 75bpm 31ms roundtrip latency




2016/04/16 08:00:58
sonarman1
If needed I can also move all these notes 31ms forward and post the screen shots. 
2016/04/17 06:25:58
sonarman1
Recorded with a external synth. First time rec a ext synth in home. Gave a line input via pc's inbuilt sound card . Hope that's not a problem. Is the external synth audio supposed to be latency free? I do notice latency while playing and recording. Which seems to be bit more than the soft synth latency. I trigger the ext synth track and soft synth track simultaneously and I get dual sounds. With soft synth audio followed by ext synth audio. So the ext synth track sounds more delayed than the soft synth track during playback.  But the recorded audio of ext synth is not much delayed (it gets compensated?). Not much delayed from the midi note but delayed little bit. All the ext synth audio is 15-17ms delayed than the midi note. Whether recorded while live input or later from the rec midi the ext synth audio is always 15-17ms delayed. Irrespective of the round trip latency. I recorded with 40ms, 60ms, 100ms, always its delayed only 15-17ms. But while playing I can hear that the latency is more, its about a 20% more than the latency while recording softsynth. If its compensated then its okay but why there is still a 15-17ms latency btw midi and audio? Any possible reasons? Meanwhile all the notes are ahead of the grid lines just like the midi notes. Tired of posting screen shots. While recording soft synth the delay between midi and audio was similar to the roundtrip latency. In 31ms the diff was 31ms. In 60ms then the delay was 60ms. But in ext synth its always 15-17ms irrespective of the audio latency ms. 

It might be possible like @brundlefly's opinion I might be having some other technical issue. Rec audio shows 15-17ms delay but the delay I hear while playing is surely much more than that. Like that I guess maybe while rec soft synth aswell although the delay showed btw the audio and midi is same as the roundtrip latency the delay I hear while playing might be even more than that. Never ending confusions.  
2016/04/17 12:20:29
Sanderxpander
You don't have a dedicated audio interface at all? The KeyStation is just a midi/USB keyboard, right? If so, I suspect this lies at the source of your problem.
2016/04/17 14:37:15
chuckebaby
im not sure if you've already listed your specs (interface, system, exc) but it does help if you put it in to your Sig, this way any post you have people have an idea of what you are running. what kind of situation you are surrounded by.
a lot of guess work goes in to trouble shooting but this can be 99% eliminated by upfront telling everyone your set up.
I thought you had an audio card (an interface) thus my first reply would have been to you:
are you using asio and try lowering your buffer size on your AI
2016/04/21 01:25:39
sonarman1
True that. Ideal thing is to get a dedicated audio interface first. Which I am about to, but its gonna take some time. Till then I will continue moving the notes toward the grid.
2016/05/17 03:25:23
sonarman1
Thanks for your reply in other thread. http://forum.cakewalk.com...730028-p2.aspx#3417021


As mentioned in your previous thread about this, Soft synth recording is not compensated for latency like normal audio input, so it's not a good timing reference (http://forum.cakewalk.com/FindPost/3400689). Also, since your timeline doesn't show M:B:T, it's not really possible to know what's early/late and by how much compared to the audio metronome.


Well I posted other screen shots that showed M:B:T in the PRV. The notes are always ahead. I dont suppose now it will be necessary. If necessary I can post those same shots with M:B:T.


I see there was a follow-up post in your earlier thread that I missed about recording simultaneous MIDI and audio from a keyboard synth. You mentioned getting a fixed audio latency regardless of ASIO buffer size. That is typical if you're driving the synth by MIDI echoed through SONAR because of keyboard scan time plus MIDI round-trip time, synth response time and D/A conversion in the synth if you're recording an analog output. 15-17ms isn't out of line if your MIDI interface is on the slow side. You'll get less un-compensated latency if you set the keyboard synth to use Local Control.

I kind of get it but i don't understand this "You'll get less un-compensated latency if you set the keyboard synth to use Local Control." You mean to say if I just record the audio out alone from the ext synth I will get low latency than now during playback? I will try.


You may also have some uncompensated interface latency if the driver isn't accurately reporting latency to SONAR. SONAR has a Manual Offset to add compensation for this 'hidden' latency. You can use a tool like the CEntrance Latency Tester to measure the actual latency and enter the difference between that actual value and the reported round-trip value in SONAR as the Manual Offset in samples.

I see. Possible. I dont record audio at all in my setup. Even if I had to I would be using a friends place or a studio. So I am not gonna care much abt this. But still I will test sometime soon for any hidden latency. And update the same here.





2016/05/17 10:32:38
brundlefly
sonarman1
 
I kind of get it but i don't understand this "You'll get less un-compensated latency if you set the keyboard synth to use Local Control." You mean to say if I just record the audio out alone from the ext synth I will get low latency than now during playback?



I meant with regard to your post #44, that if you record simultaneous audio and MIDI from a keyboard synth, you should use Local Control to have MIDI drive the synth directly rather than echoing it through SONAR. If the external synth is a separate module from your keyboard (not clear form the post), you'll have to route MIDI to the synth module, and then from its THRU into SONAR to eliminate as much of the MIDI latency from the synth response as possible.
 
But if you're using an onboard soundcard with WDM drivers as clock reference, all bets are off in terms of dialing in latency compensation and getting solid MIDI timing.
 
If your budget is forcing you to shop at the bottom end of the market for new equipment, I recommend you look for a good used ASIO interface. Other than monitors and headphones, I haven't bought an un-used piece of MIDI or audio gear since 1988, and I've had very good luck with used stuff. Even my PC is a refurb. I have resources, but I'm a cheapskate 
2016/05/17 15:26:32
soens
Whew! After recording a live performance I would just select everything and drag the 1st note to the -0- mark (if it's not already there) so it's right on the beat, and everything else will follow as it was played.
© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account