Topic: Is it possible to use Pianoteq zero-latency/in a live capacity?

I have owned pianoteq for many many years. I have never used it in a live capacity because I never got the latency dialed in. I've used desktop PCs with dedicated beefy sound cards, and many different computer's onboard sound card. I've never been able to get the latency down to a minimum. For me, the ultimate test is if I push my keyboards key (it has a hammer action) and the thunk of the hammer and the sound from pianoteq are noticably apart/delayed, then I cannot use it for live playing.

A lot of you posting on the forums here are using Mac computers. Does anybody here own a Windows PC and have achieved unnoticeable latency? What is your setup?

Also, as a laptop user, are there any external sound cards I can use to get zero latency? I have some high end rog strix laptop.

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

garrettb12 wrote:

Does anybody here own a Windows PC and have achieved unnoticeable latency? What is your setup?

Also, as a laptop user, are there any external sound cards I can use to get zero latency? I have some high end rog strix laptop.

I don’t see a latency problem on Windows 10.

For low latency on Windows you absolutely need to use ASIO audio interface drivers. Though you can try ASIO4All, it’s best to use an audio interface made for musicians, which will have its own ASIO drivers. Builtin audio and most sound cards are optimized for gamers, audiophiles, cinemaphiles and/or general use; musicians’ audio needs are different. Except for some very high-end stuff, nearly all current musicians’ audio interfaces are USB.

The audio interface I use is discontinued; Focusrite’s Scarlett line is common and commonly recommended for musicians, but I have no experience with them. If your keyboard has only a MIDI out, be sure your audio interface has a MIDI in; otherwise, if your keyboard has a USB out to send MIDI to the computer you can still use that along with an audio interface.

Zero-latency is not possible, but latency low enough to feel no different from an acoustic piano is absolutely possible.

Last edited by Coises (01-09-2024 19:08)

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

There are 2 issues here: live use and low latency. Live use requires reliability so the trick there is to test and confirm repeatedly under performance conditions. Low latency in Windows usually involves ASIO processing/piping. Many consumer sound cards support ASIO by design. Pianoteq is very good at working with ASIO4ALL so I wouldn't hesitate to try that, especially if using a consumer card or built in audio. Low end sound cards are better for the budget, but then the audio quality may suffer in various ways. Still, increased compressor/limiter use can partly compensate and may be good enough or better for most audiences.

Last edited by bani223 (01-09-2024 22:45)
MOTU M2 using native ASIO driver, Windows 11, weird tweaks needed to make it work, but seems fine now.
I have posted several times about tweaking Pianoteq

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

I would also recommend an audio interface that has its own ASIO driver, which will let you set its parameters, notably the buffer size, which should be set relatively low in order to minimize latency (64 or 128 samples for example). I use a Steinberg UR22mkII.

Last edited by Marc Boulé (02-09-2024 13:12)

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

garrettb12 wrote:

I have owned pianoteq for many many years. I have never used it in a live capacity because I never got the latency dialed in. I've used desktop PCs with dedicated beefy sound cards, and many different computer's onboard sound card. I've never been able to get the latency down to a minimum. For me, the ultimate test is if I push my keyboards key (it has a hammer action) and the thunk of the hammer and the sound from pianoteq are noticably apart/delayed, then I cannot use it for live playing.

A lot of you posting on the forums here are using Mac computers. Does anybody here own a Windows PC and have achieved unnoticeable latency? What is your setup?

Also, as a laptop user, are there any external sound cards I can use to get zero latency? I have some high end rog strix laptop.

RME if you use windows. Their cheapest is the Babyface pro FS. It goes up from there.

You’ll be able to get to really low latencies - lowest of all USB interfaces by quite a margin.

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

If you are primarily looking for low latency, I'm not sure that the cost of the Babyface Pro FS will be worth it. With a 2nd Gen Scarlett interface (18i8), I get 1.5ms latency at 44100hz with the buffer size at 64 samples. CPU and RAM play also play a part in how stable your performance is. In Windows, tuning setting accordingly will also help.

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

PatrickAlbernaz wrote:

If you are primarily looking for low latency, I'm not sure that the cost of the Babyface Pro FS will be worth it. With a 2nd Gen Scarlett interface (18i8), I get 1.5ms latency at 44100hz with the buffer size at 64 samples. CPU and RAM play also play a part in how stable your performance is. In Windows, tuning setting accordingly will also help.

You may find what’s reported by the driver isn’t quite real.

This tool helps measure the true latency.

https://oblique-audio.com/rtl-utility.php

I have both Scarlett and RME.

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

Tha

dikrek wrote:
PatrickAlbernaz wrote:

If you are primarily looking for low latency, I'm not sure that the cost of the Babyface Pro FS will be worth it. With a 2nd Gen Scarlett interface (18i8), I get 1.5ms latency at 44100hz with the buffer size at 64 samples. CPU and RAM play also play a part in how stable your performance is. In Windows, tuning setting accordingly will also help.

You may find what’s reported by the driver isn’t quite real.

This tool helps measure the true latency.

https://oblique-audio.com/rtl-utility.php

I have both Scarlett and RME.

Thank you for the information. I'll check it out.

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

Use pianoteq on iPad or iPhone. They are not only really handy for live performances for obvious reasons, but I also get 1.5 ms latency when it is connected to my digital piano with only 1 chord and no interface or anything.

Im not doing any life performace myself so I might be wrong and you might need the windows machine for other reasons during that live performace, but most of what you need is available in one for or another on iOS.

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

PatrickAlbernaz wrote:

Tha

dikrek wrote:
PatrickAlbernaz wrote:

If you are primarily looking for low latency, I'm not sure that the cost of the Babyface Pro FS will be worth it. With a 2nd Gen Scarlett interface (18i8), I get 1.5ms latency at 44100hz with the buffer size at 64 samples. CPU and RAM play also play a part in how stable your performance is. In Windows, tuning setting accordingly will also help.

You may find what’s reported by the driver isn’t quite real.

This tool helps measure the true latency.

https://oblique-audio.com/rtl-utility.php

I have both Scarlett and RME.

Thank you for the information. I'll check it out.

you are so right ! Many users believe they are working at near zero latency which is not the case . They could be shocked when they effectively measure  real latency with RTL utility as opposed to believe the values reported by the DAWs or VST’s . For a long time using a focusrite interface the reported latency at 64 samples and 48 KHz was in the 1.5 ms region , when I measured the round trip latency with RTL I was in the 20 ms region which means 10 ms from keyboard to speakers which as such is acceptable for a pianist , less so for percussionists .also for windows user , I read that asioforall driver used to report latency as the delta between asioforall and asio as it’s basically  a wrapper on top of Asia , so the reported latency was overly optimistic . Don’t know if they fix it , but in all case you should only trusts tools like RTL or equivalent .

Last edited by Pianistically (03-09-2024 18:34)

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

Pianistically wrote:
PatrickAlbernaz wrote:

Tha

dikrek wrote:

You may find what’s reported by the driver isn’t quite real.

This tool helps measure the true latency.

https://oblique-audio.com/rtl-utility.php

I have both Scarlett and RME.

Thank you for the information. I'll check it out.

you are so right ! Many users believe they are working at near zero latency which is not the case . They could be shocked when they effectively measure  real latency with RTL utility as opposed to believe the values reported by the DAWs or VST’s . For a long time using a focusrite interface the reported latency at 64 samples and 48 KHz was in the 1.5 ms region , when I measured the round trip latency with RTL I was in the 20 ms region which means 10 ms from keyboard to speakers which as such is acceptable for a pianist , less so for percussionists .also for windows user , I read that asioforall driver used to report latency as the delta between asioforall and asio as it’s basically  a wrapper on top of Asia , so the reported latency was overly optimistic . Don’t know if they fix it , but in all case you should only trusts tools like RTL or equivalent .


I'm also at 1.5ms, but while at 44.1khz. Nonetheless, after using RTL Utility, my DAW reports nearly identical RTL when compared with the RTL Utility program. In fact, RTL Utility reports just under 8ms RTL while my DAW reports 8.2ms.

At the end of the day, there is no discernable latency for me so that is what's important.

Last edited by PatrickAlbernaz (03-09-2024 19:25)

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

PatrickAlbernaz wrote:
Pianistically wrote:
PatrickAlbernaz wrote:

Tha

Thank you for the information. I'll check it out.

you are so right ! Many users believe they are working at near zero latency which is not the case . They could be shocked when they effectively measure  real latency with RTL utility as opposed to believe the values reported by the DAWs or VST’s . For a long time using a focusrite interface the reported latency at 64 samples and 48 KHz was in the 1.5 ms region , when I measured the round trip latency with RTL I was in the 20 ms region which means 10 ms from keyboard to speakers which as such is acceptable for a pianist , less so for percussionists .also for windows user , I read that asioforall driver used to report latency as the delta between asioforall and asio as it’s basically  a wrapper on top of Asia , so the reported latency was overly optimistic . Don’t know if they fix it , but in all case you should only trusts tools like RTL or equivalent .


I'm also at 1.5ms, but while at 44.1khz. Nonetheless, after using RTL Utility, my DAW reports nearly identical RTL when compared with the RTL Utility program. In fact, RTL Utility reports just under 8ms RTL while my DAW reports 8.2ms.

At the end of the day, there is no discernable latency for me so that is what's important.

Hear hear. "Zero" latency doesn't exist, ultra low latency is sometimes over valued. Even a real piano has latency, and moving further away or closer to your speakers also changes latency. That said, with any regular fairly modern computer and a half way decent "pro" sound card (with its own ASIO drivers, in the case of Windows), you should be able to reach a situation where you feel it's "playable" and in most cases you can get to "not noticeable".

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

I'm a bit late to this party, but will nonetheless throw in my 2 cents worth.  I was continuing to be annoyed with my PC's interface.  Despite a Soundblaster card claiming to have <2ms of latency, my ears clearly heard differently.  The almost perfect solution was an M-Audio Air 192/4 interface (currently $119 at musician's friend)  (Note that the other external interfaces noted above are also good solutions).

It's kinda non-intuitive, but it works.  For the longest time, I had guessed that introducing yet another piece of hardware couldn't possibly help the situation, but it does:  From the keyboard, MIDI out goes to a USB-A port on my computer.  Output from the Air box goes to my speakers (it also supports headphones).  The Air box is connected to the computer via USB-C and then I have to let both Windows (10) and Pianoteq in on the secret:

> On the computer:  route audio output to M-Audio Air
> On Pianoteq:  accept inputs from the midi connection; route output to ASIO/M-Audio Air.

Do that, plus lower the buffering size as low as you can, and you'll get what you want:  a delay small enough that you'll stop thinking about it.

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

I think it's always useful to convert latency numbers into the distance that sound travels in that time to get a handle on how much it will affect you, and then compare that number to being that far away from a sound source.

The speed of sound is 340 meters per second, or 34 cm per millisecond.

So 10ms = 3.4m, and if you were a guitarist and you were that far from your amp, you probably wouldn't be complaining about it.

But 100ms = 34m, and that is quite far away.

As someone else mentioned, zero latency doesn't exist in the real world, sound always takes time to get to your ears.

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

sam wrote:

sound always takes time to get to your ears.

Yes!

And in fact the brain uses that time to infer spatial information, which I think is exploited by the binaural "tricks" which are not simply "stereo" but add these subtle timing differences to fool your brain and "materialize" an instrument "in front of you"

Where do I find a list of all posts I upvoted? :(

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

garrettb12 wrote:

I have owned pianoteq for many many years. I have never used it in a live capacity because I never got the latency dialed in. I've used desktop PCs with dedicated beefy sound cards, and many different computer's onboard sound card. I've never been able to get the latency down to a minimum. For me, the ultimate test is if I push my keyboards key (it has a hammer action) and the thunk of the hammer and the sound from pianoteq are noticably apart/delayed, then I cannot use it for live playing.

A lot of you posting on the forums here are using Mac computers. Does anybody here own a Windows PC and have achieved unnoticeable latency? What is your setup?

Also, as a laptop user, are there any external sound cards I can use to get zero latency? I have some high end rog strix laptop.

I used to try and get as low latency as possible until I realised that I personally am much happier, and achieve a more realistic playing experience, with a latency that works in harmony with the hammer action. On an acoustic, as I'm sure you can appreciate, there is a delay as the hammer is thrown against the string. I also find that a certain amount of latency makes a difference to the sound with regards to the attack. May I suggest you experiment by varying the amount of latency and listening to (and feeling) the difference, especially over speakers. In my albeit limited experience, less latency isn't always better/desirable.

Warmest regards,

Chris

P.s. What keyboard are you using?

Last edited by sigasa (28-09-2024 23:01)

Re: Is it possible to use Pianoteq zero-latency/in a live capacity?

sigasa wrote:
garrettb12 wrote:

I have owned pianoteq for many many years. I have never used it in a live capacity because I never got the latency dialed in. I've used desktop PCs with dedicated beefy sound cards, and many different computer's onboard sound card. I've never been able to get the latency down to a minimum. For me, the ultimate test is if I push my keyboards key (it has a hammer action) and the thunk of the hammer and the sound from pianoteq are noticably apart/delayed, then I cannot use it for live playing.

A lot of you posting on the forums here are using Mac computers. Does anybody here own a Windows PC and have achieved unnoticeable latency? What is your setup?

Also, as a laptop user, are there any external sound cards I can use to get zero latency? I have some high end rog strix laptop.

I used to try and get as low latency as possible until I realised that I personally am much happier, and achieve a more realistic playing experience, with a latency that works in harmony with the hammer action. On an acoustic, as I'm sure you can appreciate, there is a delay as the hammer is thrown against the string. I also find that a certain amount of latency makes a difference to the sound with regards to the attack. May I suggest you experiment by varying the amount of latency and listening to (and feeling) the difference, especially over speakers. In my albeit limited experience, less latency isn't always better/desirable.

Warmest regards,

Chris

P.s. What keyboard are you using?

Totally agree on this point:

The search for low latency is useless below a minimum duration. It does not necessarily require the use of an audio interface dedicated to musical instruments. For my part, under Windows 10, I use an external USB DAC that is not specialized for the use of a keyboard: Dac Topping 70 Velvet equipped with the excellent AK4499EX chip providing very low distortion and a good signal-to-noise ratio. With this DAC, under Pianoteq 8.3.2 Pro, I generally use without apparent inertia (in 256 polyphony) the Windows audio output, the sampling frequency 96 khz and an audio buffer size indicating 3.3 ms. In Asio mode, still in 96 Khz, this DAC works very well on my PC with a buffer size indicating 1.3 ms (but with sometimes some crackles if I go down to 0.7 ms). The keyboard: Casio GP-500 is connected directly by USB to the PC (I have not been able to find any figures on the value of the latency induced by this keyboard with its USB driver under Windows 10 (I think that the Casio GP-500 keyboard uses USB 2, not 3, but that should not have an impact on the overall latency).
It seems important to me to put these latency values into perspective with the following elements: The duration of a quadruple eighth note at a tempo of 140 bpm at the quarter note is approximately 27 ms. From a physiological and neurological point of view, it is typically necessary to count between 100 and 200 ms between the intention of movement at the level of the brain and the effective start of mechanical muscular pressure by a finger on a keyboard key: (20 to 30 ms of neuronal transmission between the brain and the muscles + 50 to 100 ms of reaction time of the muscles to the neuronal signal + 30 to 70 ms of coordination time between the muscles of the fingers and wrist ...). At the speed of sound in air, it takes about 1.5 ms to propagate the sound vibration from a loudspeaker to the ear 50 cm away (which is faster than the 300 ms needed to propagate this same vibration from the pipes of the great balcony organ of Notre-Dame Cathedral in Paris to a listener at altar level ...). We must add to the sum of these latency delays about 10 to 20 ms additional for the sound vibrations to pass from the eardrum to the areas of the brain responsible for interpreting the messages transmitted by the auditory nerve.

In conclusion, to achieve zero latency, we will have to ask the Modartt team for an evolution of Pianoteq to integrate a "brain-to-brain" interface, ranging from the mental intention of virtually hitting a key to the interpretation of the virtual restitution signal by the brain centers responsible for interpreting the pseudo-sound signal. It is appropriate to add to this evolution request, a neurosurgery service for the implementation of intracranial electrodes, because the external neural headsets of BCI interfaces are currently unable to transmit or recover a sufficiently powerful and localized signal!

Warmest regards,

Bruno.