Re: ?Zero latency?

Glenn NK wrote:

I think he just "jerry-rigged" something together, and thought or assumed that Pianoteq was the problem.  If it was, we'd be all complaining about it.  But we as a group aren't - at least I don't hear them.

I didn't interpret his post like this at all - it just came across as a request for help from someone who was very new to the whole idea of using a PC for a piano.

Btw, regarding that DPC latency checker, I think I was too hasty in my assessment, and I think it is very useful, but perhaps not for this particular situation. It would certainly not hurt for Pianoshrek to run it, but I doubt whether it will report any problems. If he was having more serious problems (erratic behaviour), it then might be more applicable. IMHO of course.

This afternoon, I visited my piano-rebuilder friend; he's also very much into electronics/music.  We discussed this issue - and without any prompting from me, he specifically said that neither USB2.0 nor Firewire are really going to do the job.  A PCI or PCIe (or Mac equivalent) will be needed.

Well, for me, USB is "cutting it", as a lousy player.  I don't like the fact that my ASIO latency is, percentage wise, much greater than the buffer size would suggest, but I don't have any problems playing at this latency at all.

If anyone has a Firewire interface, I'd be very interested in an ASIO round-trip latency test result.

Greg.

Re: ?Zero latency?

Now here's an interesting post:
http://forum.cockos.com/showpost.php?s=...ostcount=6

It mentions the concept of a "safety buffer", and I suspect that is what I have run into with my USB interface. If this safety buffer is required for USB, I'd rather see this buffer in the control panel. By all means set a minimum size for this buffer, but allow us to modify this buffer, rather than some "fake" secondary ASIO buffer. With only one, large, buffer, we could at least benefit from less overhead, because the system would not be rapidly servicing the "fake" small ASIO buffer! Another benefit is that we would have a much better idea of the ACTUAL latency, if we could see the buffer size in the control panel.

It also mentions that the best Firewire interfaces have only very slightly more latency than the best PCI/e devices.

Greg.

Last edited by skip (06-01-2010 09:28)

Re: ?Zero latency?

quote: "The mantra is "programs on one HDD, stream audio to another", and they both should be at least 7,200 rpm. "

First part is 100% correct, second part is less true: You can record or play up to 24 tracks or even more (at 44 KHz / 24 bit resolution) without problems on a good, defragmented 5400 rpm drive. I did.

Another thing about first part: it must preferably be a physically different drive, not just a second partition of the same.

Re: ?Zero latency?

Sorry to go little bit off-topic but still talking about latency and its negative effects:

I have learned to play with some latency; I notice it but it doesn't bother me anymore that much. When 1-2 years ago I started to play PTQ and other software pianos this was my main problem.

But what I can now see is this: too much latency can have a negative effect (at least to my) piano technique. I can notice that when practicing with "latency piano" with play-alongs for example I begin to play with more tension and natural relaxation is lost. This can be very harmful to technique. It's more evident in faster tempos and faster passages.

We have to take this latency-issue seriously and be careful with it!

Re: ?Zero latency?

Just regarding a MIDI controller reproducing the precise timing of a real piano, of course a controller that continuously sampled the key position would be able to replicate the timing quite accurately. It could "model" the position of a virtual hammer & damper.  That InfiniteResponse ( http://www.infiniteresponse.com ) folding keyboard that we have discussed is doing a bit of this:

Quoting:
"A sophisticated digital-signal processing algorithm (DSP)  analyzes the slightest key movement thousands of time[s] a second. It delivers MIDI messages based on acceleration vectors, not just key speed at the bottom. It's more about how you play the note than how hard"

(where it all falls down, though, is that apparently it feels nothing like a real piano!)

Greg.

Last edited by skip (06-01-2010 17:01)

Re: ?Zero latency?

Guys, thank you for the discussin again :-)

Glenn: I didn't report or raise the problem is in the Pianoteq. I've reported the latency issue and ask where the problem is. To be honest Pianoteq was the last suspicious part (it doesn't matter I'm not a technical expert).
I don't think I "jerry-rigged" something together but what was free on the board :-).
So the 1st configuration were my friend's Clavinova 370 connected via USB to desktop 3Ghz quad core, 4GB RAM, HW on-board sound card, ASIO4All, PT settings 64 samples (1.5ms). So do you think the problem is in the sound card and ASIO4All? It should be replaced?
2nd configuration was V-Piano connected via USB or MIDI cable (both were tested) Edirol U-101 connected via USB to my notebook, 2.2 Core2Duo (BTW 7200 HDD), 4GB RAM, ASIO, 7.1 ms. Felling of latency was completely same as the 1st configuration.
So what should I try ? Try the system with desktop and PCI sound card and native ASIO?
Anyway I don't think I have to or can adapt or learn to adjust. This is very critical to me and it doesn't make sense to change my playing, feeling and everything what I learned in my life :-) In playing you think in advance and sometimes you need to react/interact on the sound produced by the instrument very quickly. In very quick passages I'm not able to play in "real-time" mode :-) and operate with sound colors. I'm not able to play with sustain pedal also and pedal is very important, it is not only push and release. A lot of aspects against the latency.

Greg/skip: Thank you for the latency measurement you did for me. Maybe I'm too fussy maybe not :-) My friend played first 5 notes with PT and said - heyyyy there is a huuuuge latency mate. This is really bad. I said yes, I can feel that also. After two hours playing and testing he said. Quite good sound, nice dynamic (BTW much better then any Clavinova)...plainly very good simulation but it is not acceptable with this latency. If you resolve the problem and when you buy the system, we can try to record some 2 piano concertos....
I've tested the PT with all possible instruments with buffer size checking and the latency was same :-(
I will try to find some studio with desktop computer, but it will take some time....

Re: ?Zero latency?

Pianoshrek2: Yes, again, I do think it would be helpful if you could somehow test on a desktop machine, with native ASIO.  Also consider doing the other tests I suggested, on your existing system(s): try other instruments in Pianoteq, and try other software, to try and narrow down the possible causes. (I don't think Pianoteq will end up being the problem, but it is possible that there is some aspect of the Pianoteq sound, right at the beginning of the notes, that makes you "feel" like the latency is bad, when in fact it may not be. If that is the case, then maybe you will have to work with Modarrt to sort it out)

Greg.

Re: ?Zero latency?

I don't know if anyone has addressed the following possibilty before or not, I haven't read every post.

You can have Asio4All, or your onboard soundcard driver, or an external one, or whatnot, telling you what latency there is at certain settings so you THINK you've got 7.1ms latency happening- and the delay is awful- but the problem may be that you're simply not accessing the driver that you think you're accessing.

It may be as simple as your settings being incorrect, but not in an obvious way. Maybe you're accessing a Direct Sound driver instead, or another native driver- these have latency that sometimes exceeds 300-400ms!

7.1ms latency would not bother most people much, if at all. Your experiencing very bad latency, and your friend verifying how bad it is, indicates with a high degree of certainty that you're getting WAY more than 7.1ms. When things are so far from the norm, there's often an easy, and easily overlooked, explanation.

As has been suggested, other hardware and software components could be responsible. Something as simple as a bad midi cable? It sounds as though your processors are plenty adequate.

Good luck!

Michael

Last edited by Michael H (07-01-2010 02:16)

Re: ?Zero latency?

Michael,
Very good point, however, I think you have forgotten that he has recorded key-contact to sound latency, and it was in the range 50 to 60ms. (perhaps you missed those posts - it's turning in to a very long thread!)  With these figures, I doubt very much that he's going through DirectSound, especially seeing that I get very similar figures with a USB interface. (as I published earlier)

There's just NO way I could describe my latency as excessive though, and I'm a bit puzzled.

Greg.

Last edited by skip (07-01-2010 03:42)

Re: ?Zero latency?

FYI, I'm experiencing a bit of arpeggiation when I use ASIO4ALL with my integrated IDT audio interface on my Dell Latitude E6500 laptop, and using the Fast Track Ultra for MIDI input. I'm mainly noticing it when I play just two notes together, however, it feels a bit awkward when I play normally, too.   I tried playing Glenn's torture-chord (across a looped-back physical MIDI connection), but I didn't notice any problems with this.

Moving the audio back to the FTU, the problem disappears.

Pianoshrek2: whatever you do, I strongly suggest NOT using ASIO4ALL for any of your testing at the moment. I know we have said this 100 times already.

Greg.

Last edited by skip (07-01-2010 12:21)

Re: ?Zero latency?

I recorded the MIDI of myself playing repeated two-note chords, using the FTU for MIDI and audio. On playback, it sounded very crisp, even when looped back over the MIDI connection.

I then switched the audio to ASIO4ALL (on integrated audio interface), and played it over the MIDI connection again.  The difference is very easy to hear - obvious arppegiation. There's no doubt whatsoever.

Still on ASIO4ALL, if I play back the MIDI file from within Pianoteq, it sounds fine.

It seems to me that on my system, ASIO4ALL is having a detremental effect on the timing of MIDI communication and/or processing.
(I suppose it may not be directly due to ASIO4ALL, and could instead be related to the audio interface itself. With DirectSound, I can't use small buffer sizes, so I think it is likely that it will place less load on the system, and thus have less impact, or none at all, on the MIDI timing. I may test this later)

Greg.

Last edited by skip (07-01-2010 14:41)

Re: ?Zero latency?

Oops, it appears I missed a lot. Just couldn't bring myself to read all 100+ posts before replying. 'My bad' as they say

It still seems to me that this is extraordinary, certainly outside the norm, and that there's got to be some really oddball reason lurking somewhere.

Michael

Re: ?Zero latency?

yes, "ASIO4ALL is having a detremental effect", but probably more on the timing of audio than MIDI, since it's nothing else than a way to use ASIO with sound cards that would normally not be able to use it; hence the results are probably not at the same level than real ("professional") ASIO-compatible sound cards. My 2 cents.

Re: ?Zero latency?

Luc,
I disagree. If the timing of audio were being affected, there would be glitches in the audio, but there are not.
The "glitches" are in the actual timing of the notes. Everything sounds fine, except for the arpeggiation.
It sounds just like I am arpeggiating the chords with my fingers.

A plausible explanation is that for whatever reason, when I use ASIO4ALL on this particular system, it is performing high priority processing that is robbing the M-Audio driver from processor time to the extent that the MIDI timing is being adversely affected.  Note that I tried running that DPC Latency Checker with ASIO4ALL active, but it didn't report any problems.

Greg.

Last edited by skip (08-01-2010 10:22)

Re: ?Zero latency?

This is important I think.

If Pianoteq is already streaming audio, the latency decreases by about 20ms.  For example, I get about 33ms if a note is already playing (quietly, in the background), but about 53ms if Pianoteq is idle.

This difference only occurs when I use the M-Audio Fast Track Ultra for audio.  Using the Delta 66 (PCI), the latency is a pretty constant 30ms or so.

I have not yet tried other applications, but I actually suspect it will be consistent, because right at the beginning I did test Kontakt, and the latency was about the same as Pianoteq. 

It looks like the FTU driver takes 20ms to wake up, if there is nothing happening.

I repeated the test with Pianoteq running in a VST host (Chainer), but I got the same results.

Note that the above testing was done on a P4 2.4GHz desktop PC using an MPU401 compatible interface for MIDI input.

Greg.

Last edited by skip (08-01-2010 11:53)

Re: ?Zero latency?

Hello,

I like "skip's method" and tested it with PTQ  on my netbook  Asus eeePC 901. I measure around 32 ms latency between my fingernail hits the keys of my Kawai ES3 stage-piano and the sound is heard from the keyboard-amp.

Using the sound-engine of  the Kawai ES3 directly the latency is 22 ms.

My PTQ-Setup is:

Kawai ES3 -->
MIDI-to-USB Interface "Worlde MidiPort" -->
EEE-PC 901 -->
Debian GNU/Linux, customized for Realtime-Use -->
PTQ 3.0.5, 44,1 kHz 64 samples, C3 Solo Recording
USB-to-AUDIO Behringer UCA222 -->
PA

I did the "measurement" with another eee-pc using its both built-in two micros and the audio-editor kwave.

One personal statement: Good latency is VERY essential to me and cannot be fast enough, it is very important to get "connected" with your instrument.

- groovy

P.S. Forgot to mention the distance of the microphones: 2 m towards the keyboard and 1 m in the opposite direction towards the loudspeakers.  So there is effectivly a latency of  3 ms caused by the distance keyboard to micro. This means I can correct the latency of my PTQ-chain to 29 ms.

Last edited by groovy (08-01-2010 23:39)

Re: ?Zero latency?

I've decided that I can definitely notice the difference between the MIDI on my Fast Track Ultra (over USB to the PC), and using the MPU401-compatible interface on my desktop computer. The MPU is appreciably better.
Sending audio through the FTU works fine, despite this interesting "intial activity" latency penalty which I seem to have stumbled on.

I'm going to get something else for MIDI for my laptop - something which is as directly connected as possible - either a serial port adaptor, ExpressCard, PC Card etc.

I'm kind of wondering whether Pianoshrek's main problem could be related to MIDI over USB. (if I'm correct, I think he's ALWAYS had USB involved for MIDI, even when he had a MIDI connection between his controller and the Edirol)

I think the problem might be the 125Hz (8ms) polling rate of USB, on Windows XP. (I did find a hack that is supposed to change this, but I didn't notice any difference in latency tests at all, so I'm not pursuing this idea)

Greg.

Re: ?Zero latency?

Groovy,
Do you know the USB polling rate on your Linux system?

Thanks,
Greg.
p.s Just an aside - my nick name is related to Skippy the kangaroo - I think it's a poor choice, because it's a real name in the U.S.

Last edited by skip (08-01-2010 23:57)

Re: ?Zero latency?

skip wrote:

Groovy,
Do you know the USB polling rate on your Linux system?

Thanks,
Greg.
p.s Just an aside - my nick name is related to Skippy the kangaroo - I think it's a poor choice, because it's a real name in the U.S.

Hello Greg,

I don't know what a "USB polling rate" is, but it seems to be related to the parameter, I described in the thread " Pianoteq on Linux netbook". I quote myself:

"I have very low latency with usb-audio now! The kernel-module("driver") snd-usb-audio has an option to process USB in shorter chunks. The default number of packs is 8 which I now set to 1:
options snd-usb-audio nrpacks=1
(in /etc/modprobe.d/alsa-base.conf to make it bootfix)

The smaller this number is, the better the latency."

Sorry for my english, it's probably worse than that of skippy the kangaroo (a hero of my youth on german television!) :-)

- groovy

Last edited by groovy (09-01-2010 00:29)

Re: ?Zero latency?

Groovy,
This "USB Poll Rate" that I refer to may in fact be ONLY related to the mouse poll rate. If the hack that I did only affected the mouse, then that would explain why I didn't notice any change in my latency tests.  It seems that gamers often increase the poll rate, to improve the response of USB mice.

Also, looking at some results from other USB MIDI interfaces here: http://earthvegaconnection.com/evc/prod...sults.html , some of them are actually pretty good.

You appear to have a nicely working system - congrats.

Greg.
p.s tch tch tch tch....

Re: ?Zero latency?

I've changed my mind about the FTU's MIDI - it's ok on my newer/faster laptop. It's only a problem on my slower desktop machine.  The latency test results are definitely not as good (on paper) as the MPU401 on the slow desktop, however playability is fine.  I was starting to look at exotic hardware from MOTU and RME - I'm slightly relieved that I can live with my FTU.

Greg.

Re: ?Zero latency?

Using the Delta 66 PCI card, I set the buffer size way up, so that my latency roughly matches Pianoshrek's.  I  used the PCI card because it does not suffer from the startup delay that my FTU has. I verified the latency with a test strike.

It is TERRIBLE!  If Pianoshrek's measurement really is representative of his latency, there is just NO DOUBT that this is his problem! 

The reason I hadn't done this a lot earlier is of course because I thought my latency was already the same as Pianoshrek's, but of course we now know that it is only the very first note, from idle, that has that latency - most other notes, once there is activity, have a much smaller latency, and that's why I never noticed a problem when playing!  I'm curious to know what the idle timeout is, actually.

Greg.

Last edited by skip (09-01-2010 08:25)

Re: ?Zero latency?

Hi Greg,

thank you for your measurement again. So what is the best final settings ? I've tested with my notebook again and tune it a lot and the latency is much better but still is there. What is quite bad, is the sound. Sound quality depends on the sound card a lot? I'm open to buy the external sound card, but not sure if the right solution is to buy a desktop computer with PCI sound card only because of Pianoteq. If there no way it looks this is my last chance. Thanks a lot.

Re: ?Zero latency?

Pianoshrek,
It is clear to me now that USB audio interfaces are fine in terms of latency, so I think you should try a USB device for your audio. It is possible that both your latency and sound quality will increase. (have you tried that Edirol USB interface on your laptop, after the tuning?)  Regarding sound quality, I think the main risk with the internal audio interface of your laptop would be a lack of bass. (I'm not saying that it will definitely have a lack of bass, but it's possible)
Can you describe your sound quality problem? Does music sound ok? How about solo piano recordings?
Are you using headphones directly connected to the laptop, or an external amp/speakers?

In case you didn't ready every post carefully - I have a serious problem when I use ASIO4ALL on my laptop - I experience arpeggiation.  I'm not necessarily blaming ASIO4ALL itself - it could just be a compatibility problem.

Note that I assume you have disabled CPU throttling on your laptop - is that right? Verify with the command line utility: POWERCFG /Q   The Processor Throttle lines should read "NONE". (this is on Windows XP, anyway)

For audio, don't forget that you could get a PC Card interface, which is (I think) equivalent to a PCI card - e.g that Indigo interface that was mentioned earlier. (assuming you have a PC Card slot) The other option is Firewire, which it appears will give you very slightly better latency than USB, in general.

What did you tune in order to decrease the latency?

Greg.

Last edited by skip (11-01-2010 03:40)

Re: ?Zero latency?

skip wrote:

I think the problem might be the 125Hz (8ms) polling rate of USB, on Windows XP. (I did find a hack that is supposed to change this, but I didn't notice any difference in latency tests at all, so I'm not pursuing this idea)

Hello,
one bottleneck is the system timer. It determines, how fast IRQs are performed. I set this manually to a constant rate of 1000 Hz, which means 1 ms. The default on a standard Debian GNU/Linux at the moment is "tickless",  a mode, where the time ticks are managed dynamically. When I boot my system-kernel with "nohz=off", the tickless mode is switched off and the system runs with the constant high-resolution timer of 1000 Hz.

The resolution is shown by:
cat /proc/asound/timers
G0: system timer : 1000.000us (10000000 ticks)
[...]

Maybe there is a similar setting somewhere inside Windows.

- groovy

Re: ?Zero latency?

skip: I also experienced problems wit ASIO4ALL since I "introduced" it in my system. With an old version of Logic (5.5) for PC, it even "crashes" my MIDI inputs! Looks like there is something here...

Re: ?Zero latency?

Greg: I haven't tried the system with the Edirol after tuning. It takes some time to visit the studio again :-( Quality of sound with internal sound system is quite poor, espesially in ff or fff passages. Note sure how to discribe it, but it sounds like "broken" or "over-excited" (I've tried to change a lot of things in the PT). I'm using headphones directly connected to the laptop. Didn't encounter arpeggiation. Processor throttle is set to maximum, which is done by the utility (and it shows maximum), but with powercfg /q shows adaptive. Anyway, I've disabled all unnecessary services via services.msc and processes via processexplorer and also set realtime priority for PT. Then the latency was closer to the reality. I'm trying to find equivalent to this card - equivalent. Is the INDIGO fine also ? It looks the PCMCIA audio cards are not so produced.

Re: ?Zero latency?

I've not used the Indigo, but it looks like it would be fine, and we have a report here from someone who is very happy with it.  You're right though - these types of cards don't seem to be nearly as popular as USB and Firewire.
PCI interfaces still seem to be popular. (but that won't help you on your laptop)

If you have an "Always On" profile, that will probably be better - it will probably COMPLETELY disable processor throttling. That's what I use.

Maybe you could make another recording, to see how much your latency has improved?

Regarding the sound quality, that sounds like it could be clipping.  Have you reduced the volume in Pianoteq itself? The default volume in Pianoteq is often too high, and does produce clipping.  If that doesn't work, try reducing the volume of your soundcard (the main "Master" output volume). If the harshness disappears, that means that the soundcard cannot drive your headphones loud enough for you.

Greg.

Re: ?Zero latency?

skip wrote:

I've not used the Indigo, but it looks like it would be fine, and we have a report here from someone who is very happy with it.  You're right though - these types of cards don't seem to be nearly as popular as USB and Firewire.
PCI interfaces still seem to be popular. (but that won't help you on your laptop)

If you have an "Always On" profile, that will probably be better - it will probably COMPLETELY disable processor throttling. That's what I use.

Maybe you could make another recording, to see how much your latency has improved?

Regarding the sound quality, that sounds like it could be clipping.  Have you reduced the volume in Pianoteq itself? The default volume in Pianoteq is often too high, and does produce clipping.  If that doesn't work, try reducing the volume of your soundcard (the main "Master" output volume). If the harshness disappears, that means that the soundcard cannot drive your headphones loud enough for you.

Greg.

May I warn you about Indigo: I have one and it was fine until this small headphone type stereo connector (I don't remember what it's called) was starting to have problems. I contacted Echo Audio and they said very clearly that nothing can be done to fix it. I wouldn't buy any audio card which has only this connector - in my opinion it is too weak. Otherwise Indigo was fine: it handled very low latency and sound quality was good.

Last edited by Ecaroh (11-01-2010 22:22)

Re: ?Zero latency?

OK, will try to find some studio with Indigo and will try the Edirol with USB again...
I'm not able to do the latency test again in the following 3 weeks with my friend's system, he will travel abroad and me too.
Volume was reduced (without blue and red lights - this is not explained in the manual, what exactly the colors means - maybe limiter and too high volume). Will see about the another sound card and the quality.

Re: ?Zero latency?

pianoshrek2 wrote:

OK, will try to find some studio with Indigo and will try the Edirol with USB again...
I'm not able to do the latency test again in the following 3 weeks with my friend's system, he will travel abroad and me too.
Volume was reduced (without blue and red lights - this is not explained in the manual, what exactly the colors means - maybe limiter and too high volume). Will see about the another sound card and the quality.

One more comment when I saw that you're using some Edirol:
I have Edirol UA-25EX USB card and it works perfectly in my macbook pro 2,53GHz. In fact I can't hear any difference in latency with my Motu Ultralite Firewire interface.

But in my desktop PC (Vista, dual core 2,6Ghz) latency is much much more with Edirol. So I have to conclude that my latency problems are with windows, not with USB card itself. I'm a mac fan...

Last edited by Ecaroh (11-01-2010 22:36)

Re: ?Zero latency?

Pianoshrek,
If your output meter is going into the red, that's too high and it's probably clipping. Reduce the output down to about -6 and try again.  You could try turning OFF the limiter, to make any clipping more obvious, in fact.  (the limiter will hide the clipping to some extent)

Also, you should have your Wave volume on 100%, in your soundcard's volume control settings.

EDIT: Oops, I see that I have mis-read your post, Pianoshrek - you have already reduced your volume in Pianoteq.   Try reducing the main volume in your soundcard mixer, as I said, just in case you are overloading your soundcard.   It is still possible that Pianoteq is clipping, though - sometimes I hear a bit of clipping, even though I can't see any blue or red. If you haven't tried it on -6 yet, give it a go. However, if your limiter is on, it is probably unlikely that a small amount of clipping would be audible, because the limiter does greatly reduce the effect of clipping.

Greg.

Last edited by skip (12-01-2010 09:47)

Re: ?Zero latency?

Ecaroh: many musicians/sound engineers (including me) still use XP instead of Vista just because of that... Win7 seems more promising but I, for one, would wait for the  Win7 "SP1" update though ;-)

Re: ?Zero latency?

Groovy,
Thanks for the info on the system timer. I have no idea whether something like this is available on Windows. 
If it is available, though, I would hope (perhaps naively!) that the manufacturers of audio/MIDI interfaces would know about it, and if it helped, would either configure the system optimally during install, or advise the user on how to do this.   

Greg.

Re: ?Zero latency?

Latency versus VSTi / native Pianoteq.

At this moment I have a temporary situation (in absence of my definitive soundcard which is a RME by the way) in which I'm running against the onboard soundcard (intel) via DirectSound.

I've got a weird situation at hand at this moment. When I run Pianoteq as standalone I get a max samplerate of 44k and 13ms latency but .... if I run Pianoteq as a VSTi-plugin within Cantabile I can get up to 96k and 10ms latency or more precisely: Cantabile runs at 192K and the plugin itself at 96k.
So in fact (and this sounds contradictionary) introducing overhead results in better performance!? And moreover, why can't Pianoteq get a samplerate as high (and latency as low) as Cantabile in this specific situation?

It seems that (depending on the reason of this big difference in latency) choosing the right tools is very important in achieving the best performance.

Last edited by hvaartsen (13-01-2010 08:51)

Re: ?Zero latency?

Hvaatsen,
Keeping the sample rate constant (44.1kHz), I get very different results than you do!   In standalone mode, my audio is glitch free down to 704 samples (16ms) In Cantabile Lite, I'm up to about three THOUSAND so far, and it's still producing a bit of glitching.

Note however that I am using my M-Audio Fast Track Ultra for MIDI input, which MAY actually be defective. (M-Audio have suggested this). So I can't make any conclusions about anything at the moment, when this component is used.

I get arpeggiation with DirectSound too - the delay due to the large buffer sizes does not only cause a pure delay - it causes arpeggiation.  I have a theory that this could be due to the fact that the audio interface does not actually have a physical buffer, so perhaps the driver writes the buffer to the hardware in a high priority process, during which processing of MIDI is blocked. We could contact the authors of ASIO4ALL - they would have a deep understanding of all this.

Greg.

Last edited by skip (13-01-2010 20:52)

Re: ?Zero latency?

For anyone interested, we've found the problem with my Fast Track Ultra - the firmware was out of date. Problem fixed!!   Was on V1.4, now on V1.51.

Greg.

Re: ?Zero latency?

My recent tale of latency problems and the resolution:

I have a Roland PCR-800 midi-controller hooked up to a Creative X-Fi Platinum (the one with the 5 1/4 front panel with midi connections, etc) sitting in a quad-core (Q9300) PC running XP SP3.

Using ASIO4All 2.9, Pianoteq 3.5.2 allows me to use 128 samples at 48khz with 256-note polyphony with no crackles and with the cpu hardly breaking a sweat. Performance index is around 30+. Note: Using the Creative ASIO driver introduces crackles unless sample count is bumped up to 256.

So far so good.

Yet I was still experiencing latency. Not half a second, but just enough to be clearly noticable. I had not used the system for a while (I have a Roland RD700SX which I often use with a notebook instead) but I knew that this had worked with far less latency in the past.

I tried moving the midi-controller from the USB PCI card to one of the USB ports on the motherboard. No change.

I then tried switching to the 5-pin DIN midi connector on the controller, connecting it to the mini-DIN of the sound card. No change.

It finally struck me that a while ago, I had performed a complete reinstall of this system.

Turns out that the Creative X-Fi card upon reinstallation had defaulted to its "Entertainment Mode". Once I brought up the Creative control panel and switched it to "Audio Creation Mode", all was well again.

Checking with ASIO Latency Test Utility 3.7, the latency reported for the Creative ASIO drivers (this utility would not work with the ASIO4All driver) went from 70ms down to around 15ms. Feels great now/again.

Re: ?Zero latency?

So I've tried the system again with the external sound card (MOTU) and the quality of sound was very nice...I was really happy with that. To be honest, I didn't find any better product (except V-Piano which is comparable in some parts). And the latency ? As usual, the latency was there ;-(
My last chance is to try it with Indigo PCMCIA card which is pretty old and there is no studio to test it......

Last edited by pianoshrek2 (15-01-2010 23:48)

Re: ?Zero latency?

Philippe Guillaume wrote:

It is interesting to see in this lecture
http://www.speech.kth.se/music/5_lectur...asure.html
that an acoustic piano has a latency in the range of 20 to 30 ms (staccato forte case), measuring time from the moment when the finger touches the key to when the strings start moving. So this is more or less what one would expect from a digital installation when summing all latencies: keyboard + software + soundcard.

I know it was a while ago when this link was posted, but I seem to have missed it.

Although the results are interesting I don't like the micro switches and metal foil approach, it probably changes what it is designed to measure.
I think fiber optics and high speed video cameras could provide better accuracy while disturbing the mechanism a lot less.

JMAO, etc.

Re: ?Zero latency?

QRS PNOscan uses lasers to scan the motion from underneath acoustic piano keys.

- David

Re: ?Zero latency?

dklein wrote:

QRS PNOscan uses lasers to scan the motion from underneath acoustic piano keys.

Given that PNOscan has been installed on some fairly "upper tier" pianos I might research measurements that have been made.

On faith alone - - I believe SOMEONE must have used their PNOScan installation to figure such things as hammer flight time and delays in the escapement.

Re: ?Zero latency?

Not me, man, but they are certainly non-zero events.  Also, you can cue the PNOScan to trigger at different points.  For example, of the four "programs", for one I matched my PNOscan to trigger at the same point as my acoustic, so I can play simultaneous acoustic and Pianoteq without two hammer strikes per key depression, and for another I have it trigger at the beginning of key depression to simulate an organ, which is great for doing slides with Native Instruments Hammond simulating VSTs. 

- David

Re: ?Zero latency?

With PNOscan II, you get MIDI High Resolution Velocity Prefix control change number eighty-eight (88)?  While I was looking at the website, I was unable to find it mentioned.

Pianoteq 8 Studio Bundle, Pearl malletSTATION EM1, Roland (DRUM SOUND MODULE TD-30, HandSonic 10, AX-1), Akai EWI USB, Yamaha DIGITAL PIANO P-95, M-Audio STUDIOPHILE BX5, Focusrite Saffire PRO 24 DSP.

Re: ?Zero latency?

I don't believe so, but I am not sure.  QRS purchased their control software from another developer years ago, and it's not very well documented.  There is also control software called WinNessie.  Here are some links that may interest you below, including a thread that I wrote years ago:

https://www.forum-pianoteq.com/viewtopic.php?id=4600
https://www.qrsmusic.com/TechCorner.asp#tab-2
https://www.youtube.com/watch?v=5bMq5JRoDzM

- David