Re: ?Zero latency?

Glenn NK wrote:

I was hoping someone else would come up with some evidence to same me from going through all this, and it seems that Joe Felice has come to my rescue (actually I'm not surprised at this at all).  Well done Joe.

I thought your test was a bit different to Joe's - your test is more of a "MIDI torture test", whereas Joe is playing live, normally. (well, sort of) 

Another comment - I'm waiting for the OP to return and add any useful comments he may have

Indeed. I hope he is not overwhelmed by all this banter.

Greg.

Re: ?Zero latency?

Glenn,
I've tested with your torture-test file, and I can easily hear a difference when it is played across the cable. Will upload the recordings later - gotta run.

When it's rendered directly, from the file, it is extremely crisp. Over the cable, it doesn't sound as crisp, due to the ever so slight arpeggiation caused by transmission delay. This is what I was interested in hearing. Thanks for preparing this test.

It is conceivable that some instruments/software might try to hide this arpeggiation, by slightly delaying processing of the notes, if it sees that there are MIDI events pouring through. (complete surmisal on my part)
This would cause other timing problems, though, of course.

Greg.

Re: ?Zero latency?

I've uploaded the recording of Glenn's chord test here:
http://www.forum-pianoteq.com/uploads.p...leaved.mp3

The recording was post edited, with the chord strikes from the direct MIDI file rendering interleaved with the recordings of the same strikes played in real time across a traditional physical MIDI connection.
I used C3 Solo in Monophonic mode for this test, to avoid microphone placement and delay issues. (and the MP3 is monophonic)

The first strike is the direct, non realtime rendering, with the second strike being the real time MIDI recording.   So, strikes 1 and 3 are non realtime, and strikes 2 and 4 real time.

It would be interesting to also do a further test, using a virtual MIDI cable software loopback driver.

For a human performance, the slight "smearing" is probably neglible, given that a human can't play all notes at exactly the same time anyway.

Greg.

Last edited by skip (03-01-2010 02:54)

Re: ?Zero latency?

pianoshrek2 wrote:

At this time I cannot imagine I'm able to create a professional recording with this issue ;-(

Ahem... http://www.youtube.com/watch?v=cVtiTyMlqAU http://www.hemberg.nu/img/smileys/smiley_blush.gif

Not to mention the myriad pro recordings.

(BTW, the "latency" you witness in that video has nothing to do with actual latency. It's just Youtube's cockamamie misalignment of the audio and video.)

I got issues with pretty much every digital piano and software piano out there. There's nothing quite like the real thing. My old teacher and I agree that digital pianos are instruments all their own. I've had ideas on making it more realistic, but no one's bitten yet.

But this doesn't mean you can't perform in real time. I don't notice any latency when simply playing/monitoring. I do notice a bit of latency when recording in Pro Tools, but that's not Pianoteq's problem.

Re: ?Zero latency?

skip wrote:

I've uploaded the recording of Glenn's chord test here:

The recording was post edited, with the chord strikes from the direct MIDI file rendering interleaved with the recordings of the same strikes played in real time across a traditional physical MIDI connection.
I used C3 Solo in Monophonic mode for this test, to avoid microphone placement and delay issues. (and the MP3 is monophonic)

The first strike is the direct, non realtime rendering, with the second strike being the real time MIDI recording.   So, strikes 1 and 3 are non realtime, and strikes 2 and 4 real time.

It would be interesting to also do a further test, using a virtual MIDI cable software loopback driver.

For a human performance, the slight "smearing" is probably neglible, given that a human can't play all notes at exactly the same time anyway.

Greg.

Not a lot of difference is there?  Particularly considering that there isn't a pianist in the world (even trio pianists) that could strike this chord covering almost the entire keyboard, and with such accuracy.

I'm satisfied that the OP's problems are not likely with Pianoteq, but with the other components of his system - be they the soundcard, USB, slow processor, etc., or a combination of these (as well described by Joe F.).

I do wish he would come back and join in the forum on this topic; I'd like to learn more about these situations.

Glenn

__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

Glenn NK wrote:

Not a lot of difference is there?  Particularly considering that there isn't a pianist in the world (even trio pianists) that could strike this chord covering almost the entire keyboard, and with such accuracy.

Agreed.  If one were playing a layered sound (multiple channels simultaneously) the MIDI timing might be a bit more obvious I guess, but that's quite remote from the issue at hand.

Note that this test I did may not be fully representative of the capabilities of the MIDI protocol, due to possible timing delays on my system. (drivers, OS scheduling, Pianoteq itself, etc)

Greg.

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

Re: ?Zero latency?

joshuasethcomposer wrote:

I got issues with pretty much every digital piano and software piano out there. There's nothing quite like the real thing. My old teacher and I agree that digital pianos are instruments all their own.

I've had ideas on making it more realistic, but no one's bitten yet.

Joe:

Have you played/recorded on a Yamaha Disklavier?  (Bosendorfer has also teamed up with a university in Vienna to develop a similar system).  And if you have, what's your "take" on them?  Of course the piano is a real piano, so the action and all that goes with it responds "correctly".

The Minnesota e-Piano Competitions use Disklaviers extensively.

http://www.piano-e-competition.com/

Glenn

__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

Glenn NK wrote:

Joe:

Glenn NK wrote:

Have you played/recorded on a Yamaha Disklavier?  (Bosendorfer has also teamed up with a university in Vienna to develop a similar system).  And if you have, what's your "take" on them?  Of course the piano is a real piano, so the action and all that goes with it responds "correctly".

The Minnesota e-Piano Competitions use Disklaviers extensively.

http://www.piano-e-competition.com/

Glenn

Correct me if I'm wrong, they're glorified player pianos. They remember your playing and then reproduce it, using the actual strings to make sound. But if there's a sound module, I'll bet you a ham sandwich it's triggered by plain vanilla MIDI velocity. And I'm not sure exactly what the thing "remembers" of your playing. Is it 100% translated, or is it transformed into simple velocity?

So for direct recording and patching to a mixer, it's about as expressive as most cheap digital pianos. I'd imagine the new CPs are more expressive, given their modeling technology.

Re: ?Zero latency?

joshuasethcomposer wrote:

Correct me if I'm wrong, they're glorified player pianos. They remember your playing and then reproduce it, using the actual strings to make sound. But if there's a sound module, I'll bet you a ham sandwich it's triggered by plain vanilla MIDI velocity. And I'm not sure exactly what the thing "remembers" of your playing. Is it 100% translated, or is it transformed into simple velocity?

So for direct recording and patching to a mixer, it's about as expressive as most cheap digital pianos. I'd imagine the new CPs are more expressive, given their modeling technology.

The Diskclaviers go well beyond being player pianos.  The preliminary rounds are played by contestants at several sites around the world (NY, LA, Beijing, Paris, Moscow).  The contestants play on a Yamaha CFIIIS fitted with the system, and their performances are not only recorded by the piano and video cameras, it is sent live to judges located elsewhere.  The judges listen to another CFIIIS in front of them that reproduces the selection as it was played.

This tends to imply (strongly I believe) that it records all the nuances required for world level competition.

http://www.piano-e-competition.com/ecom...yamaha.asp

http://www.piano-e-competition.com/ecom...artist.asp

http://www.piano-e-competition.com/ecom...s_2009.asp

Glenn

PS - have a listen to any one of a number of recordings and be the judge.  These are from the 2009 competition (and can be downloaded and played in Pianoteq):

http://www.piano-e-competition.com/ecom...i_2009.asp

__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

Glenn NK wrote:

Have you played/recorded on a Yamaha Disklavier?  (Bosendorfer has also teamed up with a university in Vienna to develop a similar system).  And if you have, what's your "take" on them?  Of course the piano is a real piano, so the action and all that goes with it responds "correctly".

* * * * * *

Correct me if I'm wrong, they're glorified player pianos. They remember your playing and then reproduce it, using the actual strings to make sound. But if there's a sound module, I'll bet you a ham sandwich it's triggered by plain vanilla MIDI velocity. And I'm not sure exactly what the thing "remembers" of your playing. Is it 100% translated, or is it transformed into simple velocity?

So for direct recording and patching to a mixer, it's about as expressive as most cheap digital pianos. I'd imagine the new CPs are more expressive, given their modeling technology.

Hello Glenn,

I do have first hand experience with Yamaha Disklaviers, and a good friend of mine shared with me how they work:

First off, the correct spelling is Disklavier (no c's and only one k).  Yamaha Disklaviers are in their fourth generation, although as of this writing, I do not know whether Yamaha is going to introduce anything new to Disklaviers at the 2010 NAMM show later this month.  The first generation was basically your run of the mill player piano of the late 1980's / early 1990's, using electronic relays and solenoids instead of air pressure to record and move the keys as in Ampicos and DuoArts of yesteryear.

I am not sure what was different about the second generation, but the third generation had a sound module attached to it, along with stereo amplifiers and speakers.

The fourth generation Disklavier (the latest as of early January 2010) has a dedicated computer strapped to its underbelly, which contains an XX gigabyte hard drive, sampled sounds running into the hundreds, and the ability to attach a microphone and the instrument's microprocessor will harmonize your voice in real time as you sing (assuming, of course, that you press the correct chords on the keyboard)! 

One can access information about the status of the Disklavier via a handheld device or an optional 10" touch screen (which is standard in Disklavers over 6' --- I believe those are the DC3's and larger, all the way up to a 9' long Disklavier CFIII).

From what I understand, it is the Disklavier's Mark IV incarnation that allows one to use SMPTE timing code off a video camera to synchronize the video with your playing.  Apparently, if you hook up the Mark IV's video output to a television, and hit "Play" on the video camera you have just recorded, the Mark IV will synchronize your piano performance with the video you have just recorded.  Of course, the Disklavier and the video camera have to be connected via the camera's Audio Out (which also outputs the SMPTE sound striping code).

The above is why the Disklavier Mark IV is used for the eCompetition in Minnesota -- contestants from all over the world are able to video record themselves in synchrony to the Disklavier, and send those "auditions" in the form of midi files and videotapes to Minnesota for the preliminary rounds of the contest.  The judges simply gather in front of a television, video reproducing equipment and an attached Disklavier, and "watch" the contestants perform.  I also believe the final rounds may be "experienced live" at selected Yamaha dealerships around the world via satellite transmission as the contestants play through their Finals performances.

Now as to how MIDI is captured while playing, I can tell you from firsthand experience that you would never be able to tell from the piano's action that you were playing a player type piano.  You see, the Disklavier uses fiber optics to watch a small sheet of clear plastic (approximately 1/4" x 3/4" if my memory serves me right) whose "gray scale" varies from completely clear (representing zero note-on velocity) to pure opaque black (representing a value of 127 note-on velocity).  These feather-light slips of plastic are attached to the hammer shanks at a place just prior to (and after) impact with the piano's string.  In other words, the recording system is not hampered by any extra mechanical linkages that would hinder the action's touch.

Interestingly enough, if one were to begin recording -- and then hold a cluster of notes "half-way down" but not enough to strike a string, the Disklavier would reproduce that very same half-way down note position upon playback.  I saw that with my own eyes!

Did I mention that the current generation of Disklaviers can be hooked up to WIFI, and worldwide satellite communications can beam something like 20 different subscription channels to the Disklavier.  For a monthly fee, one's Disklavier Mark IV will play, wirelessly, any type of musical genre you desire -- and not be stuck with listening to the same old files over and over again,

As usual, my threads seem to be overly long.  If you have any more specific questions, please ask and I shall try to find an answer for you from a Certified Yamaha-Trained Disklavier technician.

Before signing off, I would like to state that the Yamaha Disklavier system is NOT a retrofit of a system into an existing production piano, from Yamaha or otherwise.  When a Disklavier is going to be made, the piano that is being built ... is constructed in mind with extra heavy structural components, especially in the vicinity of the keybed, so as to accommodate the solenoid system that pushes "up" on the back sides of the keys (opposite to the front of the key where one's fingers usually press downward).  In addition, the whole piano is beefed up to allow for some sustained loud piano playing afforded by reproducing very high velocity levels.

Cheers,

Joe

Last edited by jcfelice88keys (04-01-2010 02:43)

Re: ?Zero latency?

Joe:

Thanks for the clarification and update Joe.  As I noted previously, Bosendorfer has been working on something similar for a while too. 

Interestingly, Yamaha recently bought Bosenforfer (perhaps to have access to their system?).

http://www.boesendorfer.com/index.php?m=70&lang=en

Glenn

__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

Hi Glenn,

The Boesendorfer recording and playback system is their proprietary system that has far more than 128 individual velocity levels.  That's all I know about the latter system.

Perhaps Yamaha purchased Boesendorfer because Samick has purchased Bechstein and are looking at a joint venture in China.

http://en.wikipedia.org/wiki/Samick

Joe

Last edited by jcfelice88keys (04-01-2010 02:51)

Re: ?Zero latency?

I've recorded a real grand piano's latency - middle C, forte, with my mobile phone. The recording was in voice quality lossy format (AMR), and it has been converted to WAV and then MP3.  I'm pleasantly surprised at the quality of the recording, though.

http://www.forum-pianoteq.com/uploads.p...atency.mp3

Looks like roughly 22 to 25ms to me, which is a pretty good match to the numbers given by Guillaume & Joe!

I didn't take the details of the piano - it was a Yamaha grand, but probably nothing special.  (model number started with a "G" I think)

EDIT: Oops, I realise that the initial sound could just be the key bottoming out. Further analysis required.......

Greg.

Last edited by skip (04-01-2010 03:50)

Re: ?Zero latency?

skip wrote:

Looks like roughly 22 to 25ms to me, which is a pretty good match to the numbers given by Guillaume & Joe!

I didn't take the details of the piano - it was a Yamaha grand, but probably nothing special.  (model number started with a "G" I think)

Greg.


A Yamaha grand whose model number starts with a G is a 4'11" GB1.

But then, ... who asked me?

Joe

Re: ?Zero latency?

Joe (smarty pants), how do you know it's none of the other models that start with a "G"?
http://www.yamaha.com/yamahavgn/CDA/Lis...YP=PRODUCT

Greg.

Re: ?Zero latency?

skip wrote:

Joe (smarty pants), how do you know it's none of the other models that start with a "G"?
http://www.yamaha.com/yamahavgn/CDA/Lis...YP=PRODUCT

Greg.

Oops, I forgot and spoke out of turn by recalling from memory instead of consulting a good reference.

GB1 = 4'11", GC1" = 5'3, but with the action of lower price than the C1, 5'3" Conservatory model.

I stand corrected; sorry.

Joe

Re: ?Zero latency?

The Yamaha grand I had for twenty-five years was a G2E.

It was a 5'-8" length model.

http://www.robertspianos.com/yamaha-gra...ianos.html

Being produced for the north american market, it was satin black; the ones to Europe were shiny black.

I'd still have it if I hadn't retired into a multi-unit residence - space and sound were problematic.

Glenn

PS - what was really interesting was that any part that was removable (lid, action, legs, lyre, etc) had the serial number stamped on it.  Even the blocks at each end of the keys.

Last edited by Glenn NK (04-01-2010 04:47)
__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

The MP3 of the acoustic grand was dreadful - I didn't realise that it had lost so much quality. I've re-encoded it at a higher bitrate:

http://www.forum-pianoteq.com/uploads.p...atency.mp3

Greg.

Re: ?Zero latency?

Glenn NK wrote:

The Diskclaviers go well beyond being player pianos.  The preliminary rounds are played by contestants at several sites around the world (NY, LA, Beijing, Paris, Moscow).  The contestants play on a Yamaha CFIIIS fitted with the system, and their performances are not only recorded by the piano and video cameras, it is sent live to judges located elsewhere.  The judges listen to another CFIIIS in front of them that reproduces the selection as it was played.

This tends to imply (strongly I believe) that it records all the nuances required for world level competition.

http://www.piano-e-competition.com/ecom...yamaha.asp

http://www.piano-e-competition.com/ecom...artist.asp

http://www.piano-e-competition.com/ecom...s_2009.asp

Glenn

PS - have a listen to any one of a number of recordings and be the judge.  These are from the 2009 competition (and can be downloaded and played in Pianoteq):

http://www.piano-e-competition.com/ecom...i_2009.asp

That's a little too much free advertising for Yamaha.

Hopefully, whatever technology they and Bosendorfer are using to capture every nuance of a performance is eventually incorporated into digital pianos and modeling technology.

Re: ?Zero latency?

joshuasethcomposer wrote:

That's a little too much free advertising for Yamaha.

Hopefully, whatever technology they and Bosendorfer are using to capture every nuance of a performance is eventually incorporated into digital pianos and modeling technology.

What is too much advertising for Yamaha?  They sponsor the Minnesota e-Piano Competition, and provide all the pianos.  "He who pays the piper, calls the tune" as they say.

What I find interesting and unusual is that the performances are recorded, but they are in XP SMFs (standard midi files), so if I'm reading it correctly, the Yamaha doesn't seem to record to a proprietary file type.

http://www.piano-e-competition.com/ecom...ctions.asp

If you're interested in classical piano, you might be interested in checking them out; I have several dozen on my HDD.

Glenn

__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

Ok, I went BACK to the store, and the piano was in fact a GC1, however, it could have very easily been the GB1, because it was right next to one. 

Greg.

Re: ?Zero latency?

Glenn NK wrote:

What I find interesting and unusual is that the performances are recorded, but they are in XP SMFs (standard midi files), so if I'm reading it correctly, the Yamaha doesn't seem to record to a proprietary file type.

Which tells me that it doesn't record every nuance of a performance. Besides, unless you play the MIDI file back on a Disklavier, you won't get the performance as originally conceived. (Yes, I played one of those files in Pianoteq, and you could tell that you'd need to futz around with the instrument settings to get a fair rendition.)

I'm sure it's fine for a Yamaha-sponsored competition. In the meantime, modeling technology will get cheaper and be a far more reasonable solution for non-conservatory artists.

Re: ?Zero latency?

Found some info on XP SMF:
http://www.piano-e-competition.com/midiinstructions.asp

Looks like the XP SMF does indeed record with very high resolution.  However, it does not record continuous data for the keys, apparently. (just pedals)

EDIT: This link from Yamaha gives a bit more info, although it is dated:
http://www.yamaha.com/yamahavgn/CDA/Con...DN,00.html

Looks like the MIDI files store key depth information as well!

Greg.

Last edited by skip (04-01-2010 10:39)

Re: ?Zero latency?

It's impossible to achieve zero latency. Even pianos have latency. Electric guitars as well. Mechanical organs even more so. That's all I'll say about this topic.

Hard work and guts!

Re: ?Zero latency?

Hello Everyone with Latency Problems!

I worked with different audio interfaces during my career as an audio engineer and i don't trust any information sheets or specs. or given informations about milliseconds via the driversoftware. Most of the available audiohardware-developers can't write good working driver software! I'v been selling all that stuff for years and had trouble in various ways with the most of it and in almost every case it was the audio driver witch caused the trouble.

Latency is also a big problem while recording audio and it's well known
in the recording world so that's why protools is a standard from the beginning of computer recording.

So there are two names left that !I KNOW! from working with them and having very good results

"Soundscape" and to come to a real good and affordable audio hardware: RME audio which from the beginning had the best ASIO drivers on PC.

I would always prefer an PCIexpress card but also their Firewire-stuff is good enough (esp. for Laptops) But always remember that firewire differs from Computer to Computer (depending on chipset and versions and other things).

So this is all I can say. The result of working and selling that stuff from the very beginning of Digital Recording and the beginning of computer recording-the audio driver is Molto  IMPORTANTE! (spoken in italian)

And there are obviously not many good ASIO-drivers out there...

Everyone with positive longterm exp. with other hardware feel free to complete the list.



P.S.

I had some candidates who showed 3 ms in their ASIO control software and my recording Software showed 14,345 ms in and 26,36 out latency and that was almost that  what you could feel while playing a softsynth.

Now with my new REM HDSPe (PCI express card) I can play with 1,5 ms (IN and out=3ms) with more than 200 voices and pedal etc and its feeling like playing on a good old hardware-keyboard  an old wurlizer or fender and I wouldn't say there is much difference in latency to a real Piano.
The MIDI spec. is a different story, but as long as you are not playing to much channels with too many sysex data it should (depending on your Keyboard-hardware)  work to express yourself. For me one of the biggest problems is: real fast rep. on the hardware-keyboard-side.

thanks for your time

Heinke

Re: ?Zero latency?

joshuasethcomposer wrote:

Which tells me that it doesn't record every nuance of a performance.

I played one of the MIDI files back in my Garritan Steinway and can assure you that it does record continuous damper pedal data (half-pedaling).  But what WOULD record EVERY nuance?  Even a microphone is unable to record things that are masked out by other louder sounds.

joshuasethcomposer wrote:

Besides, unless you play the MIDI file back on a Disklavier, you won't get the performance as originally conceived.

Take a listen to this.  It's the MIDI file for Lindsay Garritson's performance of Chopin's Nocturne in B Major played thru my Garritan Steinway preset.  Pretty darned identical to the original performance (watch the video of her perfomance!).

joshuasethcomposer wrote:

(Yes, I played one of those files in Pianoteq, and you could tell that you'd need to futz around with the instrument settings to get a fair rendition.)

Well, isn't "futzing around" the name of the game with ANY virtual piano?   

My point with this post is that the technology is amazing - all of it.  From Pianoteq to the sample-based libraries to the Disklavier.  We here tend to focus on the limitations of certain things and use them against what is quite simply revolutionary methods of making music.  I embrace all of it and look forward to what the next few years will produce - both from the artists that create these tools to the artists that use them.

Curt

Re: ?Zero latency?

to azrael4: I couldn't agree more about Soundscape, now owned by SSL - and you may say that this is also a quality label! The only thing I would like to add is that Soundscape-SSL (like ProTools, by the way), can run two kind of plug-in's:
1) their own, running on dedicated DSP's, without any latency at all (oh, sorry, no: SSL claims 4 SAMPLES for their new MX4... this is about 0,1 ms latency @ 44.1 KHz; not a lot, you'll agree!)
2) VST, where latency depends only of the PC...
Obviously, Pianoteq is in the VST category, so it is still dependent of the PC power... This being said, I'm running Pianoteq on a Soundscape-SSL system from day one (and in fact I'm beta-tester for both!), and with a 128 samples buffer size (= less than 3 ms latency) , I have absolutely no problem at all. (my PC is a correct 2.4 GHz quad core, 2 GB RAM)

Re: ?Zero latency?

curt wrote:

I played one of the MIDI files back in my Garritan Steinway and can assure you that it does record continuous damper pedal data (half-pedaling).  But what WOULD record EVERY nuance?

Aren't they working on technology to capture every nuance? Again that tells me Disklaviers up to this point have not captured every nuance, and Yamaha (and Bosendorfer) are endeavoring to capture more.

curt wrote:

We here tend to focus on the limitations of certain things and use them against what is quite simply revolutionary methods of making music.

It's a forum on technology development. It's not about using limitations "against" anything. It's about pushing the technology forward.

Last edited by moshuajusic (04-01-2010 16:57)

Re: ?Zero latency?

I have done the "skip" test on a macbook (internal soundcard) and a vista pc (echo audiofire soundcard), sample rate 44kHz, buffer size set to 128. It gave 31ms for the mac , and 22ms for the PC. Both were using a midi keyboard connected via USB to the computer.

On the vista pc, if I connect the keyboard to the midi input of the soundcard, the latency is raised to 38ms.

Re: ?Zero latency?

Hi again,
In the case of the acoustic grand, it is very difficult for me to say what the latency is, because when I listen very carefully, the sound I hear right at the beginning of what LOOKS like the real sound, sounds more like something in the action, more than the string. (it doesn't even sound like the hammer hitting the string, IMHO)  This could be the key bottoming out, or some other sound from the action.  My gut feel is that the real latency is probably more like 30 to 40ms, which would then be dead on the numbers given by Guillaume & Joe.

Greg.

Re: ?Zero latency?

When Yamaha/Bosendorfer get the air sound in the Disklavier/CEUS, then I'll be happy. 
     

Sorry - the devil made me do it.

__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

Glenn NK wrote:

When Yamaha/Bosendorfer get the air sound in the Disklavier/CEUS, then I'll be happy. 
     

Sorry - the devil made me do it.

http://icanhascheezburger.files.wordpress.com/2008/08/funny-pictures-cat-fixes-your-lols-for-you.jpg

It's a real piano.

Re: ?Zero latency?

Happy New Year !!!  I'm late I'm sorry :-))) but was on a trip.....

I'm very surprised what happened here. It took me a loooong time to go through (and didn't read all the post carefully), cause I'm not a native speaker and some words are very difficult to understand (pitch bands, rompler etc). At first, thank all of you!!!
I have to say again that I'm not a technical guy (for some of you) and I don't declare that I'm able to recognize couple of ms. What I've reported is, that the drivers shows me 1.3ms as a minimum in PianoTeq but I still hear the huge latency.
That's why I asked, is this a real latency ??? No it isn't but where to find the problem? What I've read in Greg/skip posts he has longer latency comparing the real grand and it looks only he believe me I can hear the latency :-))).
BTW could anybody explain me why I can hear the difference when I change the sample rates with different latencies which are only about couple of ms?
Maybe I should write the testing configuration (it is not mine, cause I'm trying to make a decision about the DP for night practising and some specific recording). Maybe I will have a time during tomorrow to test it again at my friend's flat . What I remember, there is 3.0 Ghz quad core proc, 4GM RAM, USB connection from Clavinova CP-370, Asio4ALL. I've tried that also with V-Piano, EDIROL UA-101, with USB or MIDI cable, ASIO (driver reported 7.1ms as a minimum), Dell notebook, Core2Duo 2.2 Ghz, 4GB RAM. Multicore rendering and cpu overload detection checked for both configurations.
Don't want to make a flame here, but I'm at a crossroad what to take. Pianoteq with some MIDI keyboard or the V-Piano. BTW V-Piano has the best keyboard what I've tested (and there is no disturbing latency), also the surface is very close to real ivory keys, which I have on my second old grand piano. What was a surprise for me that the technical guy who was also there, didn't hear the latency with Painoteq. At this time, I prefer Pianoteq, because of warmhearted (not sure if this word exists :-) sound. But anyway, there is no way to play/practice or record with Pianoteq with the latency I can hear. Let's imagine, I would also practice with the orchestra without soloist. I still be late :-) very very little..... but late.
What should I do to fix this issue?
What I can do, is to record the sound with my mobile phone and send it to Greg to analyze the latency, OK ? Not sure about the quality of the sound..........

Thanks a lot!

PianoShrek.

Last edited by pianoshrek2 (05-01-2010 00:28)

Re: ?Zero latency?

Hooray - you're back. ;^)

In all your testing, have you at any stage tested using a native ASIO driver, WITHOUT using the ASIO4ALL driver?
If you're not sure, get assistance from your technical friend.   ASIO4ALL should only be used when you do not have a proper ASIO driver for your audio interface.

EDIT: Sorry, I see that you have tested with ASIO.

HOWEVER - I think I see a potential problem. You have not yet tested with a NON USB soundcard, with a native ASIO driver!  As I reported, my USB interface DOES appear to incur an extra 20ms of latency, when I compare it with my PCI soundcard. I was using native ASIO for both.

I think we are making progress. Please try to test in a configuration that uses a good quality audio interface, that is NOT USB, and that also supports ASIO natively. 

Yes, if you can record your latency using your mobile phone, that would be really helpful. Place the phone right near the key, and play with your fingernail, forte. Move the speakers as close to the phone as you can, but you don't have to go crazy - just report the approximate distance from the phone to the speakers, and we can calculate the delay caused by sound travel through the air.
Turn the volume right up so it's nice and loud.

Greg.

Last edited by skip (05-01-2010 00:49)

Re: ?Zero latency?

You have:

1. controller latency - the time you need to take to press a key, plus the time for the controller to convert it to MIDI data, plus the time to transfer that data to the computer (which is longer when using straight MIDI ports, USB is faster)
2. input audio latency - input sound buffers, not sure if Pianoteq is using those
3. output audio latency - the time to send the processed buffers to outside world.
4. speaker cable latency - the time for the electric signal to travel to your speakers
5. listener latency - the time for the soundwave to reach your ears from the speakers

When it all adds up, yeah, it's not 1.3 ms definitely

Hard work and guts!

Re: ?Zero latency?

On the other music forum I frequent (past seven years), it's always been said that to minimize latency, native ASIO is necessary.

Native ASIO (not many sound cards seem to have this) is a software driver written specifically for the sound card - by someone that knows what they are doing.  See post number 11 by asreal4/Heinke.

This does not refute what the Dragon says, but native ASIO is an important element that's overlooked - or is something most of us cannot control because our sound cards don't have it.

Glenn

Last edited by Glenn NK (05-01-2010 01:53)
__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

curt wrote:

Take a listen to this.
Curt

Wow.  That mp3 file sounds very "papery"... not at all like the source WAV file.

This one should sound better... if anyone even wants to listen to it!  I know this thread is about latency so I apologize for the hijacking!

Curt

Re: ?Zero latency?

Pianoshrek2 has kindly uploaded a recording:
http://www.forum-pianoteq.com/uploads.php?file=PT.mp3

(rename it to AMR and convert it if you have to - perhaps someone can convert it and re-upload it - I can do that later)

Very quickly inspecting the recording, I saw one at 52ms, and another at 56ms. Not terrible, but, JUST PERHAPS, enough for him to notice!!

I say even more strongly now - try to test without any USB devices at all. Perhaps at a shop that has a good PC setup...............

Once we have established that Pianoteq is CAPABLE of working to your satisfaction on ANY equipment, then we can find a configuration that will hopefully work on your existing computer, without having to resort to buying another computer.

Gotta run........

Greg.

Re: ?Zero latency?

I've sent Pianoshrek2 the converted file which he can upload himself.

In the meantime, I think Firewire may be a solution. In fact, from my testing, just using Firewire for the audio, and leaving the MIDI on USB, may be good enough.
(I haven't done any testing with Firewire, but I have read that it is better for realtime audio than USB. I was able to improve my latency just by moving the audio off the USB, leaving the MIDI on USB)

Greg.

Re: ?Zero latency?

Glenn NK wrote:

On the other music forum I frequent (past seven years), it's always been said that to minimize latency, native ASIO is necessary.

Native ASIO (not many sound cards seem to have this) is a software driver written specifically for the sound card - by someone that knows what they are doing.  See post number 11 by asreal4/Heinke.

This does not refute what the Dragon says, but native ASIO is an important element that's overlooked - or is something most of us cannot control because our sound cards don't have it.

Glenn


Glenn,

I think you're right about not many (if any) onboard soundcards having native Asio drivers, but there are, as you probably know, several options for pcmcia cards and express slot cards that have Asio drivers for laptops, as well as PCI slot solutions, such as the M-Audio Audiophile 2496, for desktops. 

I've been using an Echo Indigo DJ card for 3-4 years now on various Dell laptops, and it's great. It not only has Asio drivers, but GSIF (Gigastudio) drivers as well, and it's 24 bit 96Khz. I don't push the system on my single core Pentium, but I get 2.3ms latency and the sound quality is excellent.

Michael

Re: ?Zero latency?

Here is an ASIO latency test utility:
http://www.centrance.com/downloads/ltu

I did some testing. Unfortunately, it's not working on my Fast Track Ultra for buffer sizes less than 1024, so I had to test at this size. The overall round-trip latency is 73ms at this size.  The PCI card (Delta 66) produced 48ms for this buffer size.  Varying the buffer size, in general, the PCI card's round-trip latency appears to closely match twice the ASIO latency.  I haven't figured out a formula that works for the FTU yet.

Greg.

Re: ?Zero latency?

And here's a MIDI latency tester:
http://earthvegaconnection.com/evc/prod...l#download

Using only note-on/off events:

FTU (USB)
Message Latency: 7.63ms
Jitter: 7.19ms
Max. Deviation: 11.24ms

MPU401 (integrated on desktop's motherboard)
Latency: 0.38ms
Jitter: 0.01ms
Max. Deviation: 0.48ms

Greg.

Re: ?Zero latency?

Greg:

Here's another latency checker that is recommended on the EMU forum:

http://www.thesycon.de/deu/latency_check.shtml

It's so simple to use.

Note that it measures latency in micro seconds (us) not milliseconds. (forget how to do Greek symbols).

It reported that my system is running at a maximum latency of 36 micro seconds.

If that's correct, it seems to be working just fine.  I suspect that it's closer to the truth than not because whenever someone mentions latency problems at the keyboard, I will be honest and say it raises my eyebrows in disbelief as I've never experienced anything noticeable at all.

Glenn

Last edited by Glenn NK (06-01-2010 04:06)
__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

Michael H wrote:

Glenn,

I think you're right about not many (if any) onboard soundcards having native Asio drivers, but there are, as you probably know, several options for pcmcia cards and express slot cards that have Asio drivers for laptops, as well as PCI slot solutions, such as the M-Audio Audiophile 2496, for desktops. 

I've been using an Echo Indigo DJ card for 3-4 years now on various Dell laptops, and it's great. It not only has Asio drivers, but GSIF (Gigastudio) drivers as well, and it's 24 bit 96Khz. I don't push the system on my single core Pentium, but I get 2.3ms latency and the sound quality is excellent.

Michael

Micheal:

On that forum (that has quite a few computer geeks compared to here, and some of them are actually computer guys with a side interest in music), the guys with the M-Audio cards have no problems at all.  They are superb.

Glenn

__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

Glenn,
Thanks for that pointer to the DPC latency checker. That utility is not measuring the actual overall latency to send audio out, onto the cable, and back in again, so I do not think it is as useful as the one I posted. (in fact, it's not talking to any audio or MIDI interfaces at all, I don't think)  You might want to try the other utility, to see what your total audio latency really is - it will be a very, very, different number to the number you reported.

The most meaningful test for the issue at hand is, I believe, to play a note and measure the total latency, from contact with the key, to audio out. From Pianoshrek's results, the latency he is experiencing COULD be enough to cause a problem.  If this is the problem, I think it's just a matter of getting a better audio and/or MIDI interface, assuming there are no other settings that will help.

Have you measured your total latency yet, by making a recording? 

Also, remember that you said earlier that you were able to detect just a 3ms increase in latency, when you adjusted your ASIO buffer size.

Greg.

Last edited by skip (06-01-2010 04:45)

Re: ?Zero latency?

Greg:

No, I haven't measured total latency because with my ASIO card set to 7.1 ms, I have no issues whatsoever.

The latency thing for me is academic - I'm quite interested in it, but it isn't an issue when I play.  I'm not a great pianist (I'm not even a piano player, my uploads demonstrated that), but I started taking lessons in 1946, and have a pretty good feel for how a piano should react, and mine causes no problems.

If people can sense differences in latency of a few ms, then they will have to learn to adjust - pianists on real grands do - Modartt and Joe Felice demonstrated that quite well.  Twenty to thirty seconds depending on strike force and it varies across the keyboard?  Maybe having played a Yamaha grand for twenty-odd years I just adjusted to it and don't notice it .  I've had DPs since 1990, and adjusted to them to.

Bottom line:  Once one has a decent ASIO card, and has an adequate system, there is going to be latency - if it's a problem, then the user just simply has to learn to adjust to it.  Period.

Yes, that's going to please some, but there is no other solution at present.

Glenn

__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

Glenn,
Pianoshrek2's total latency is, roughly up to 20ms greater than a piano, for this particular test. (which I realise is very very limited indeed). That's more than a few ms.

We have seen that it is possible for a PC to have a total latency that closely matches a real piano. (Guillaume said this, right at the beginning)  My desktop PC, which is very old now, achieves this, with it's PCI soundcard (M-Audio Delta 66) and the integral MPU401 MIDI interface. Julien's results are in the same ballkpark (sometimes better)

I don't see why he should not try to obtain a system that is as good as it can reasonably be. In fact, it appears that he hasn't even chosen his configuration yet, so he is in a very good position indeed. (not sure whether he has actually got the computer yet or not - he's testing on someone elses though)

I agree that he probably could adapt, if he had to. But I don't think he'll have to! (yes, I have read Joe's detailed post on the difference in behaviour between a real piano and a digital piano, I know it will never be 100%)

EDIT: I realise I'm partly re-stating some of what you said, Glenn. However, I get the feeling that you think Pianoshrek2 is already testing on a good enough system, and is being too fussy. (sorry if I'm wrong - this is just the impression I get). I'm not convinced of this at all.

Greg.

Last edited by skip (06-01-2010 05:21)

Re: ?Zero latency?

Greg:

No, in fact I concluded right at the start that Pianoshrek2's system is probably quite inadequate.  My dual core Athlone was purchased five years ago - at the time it's benchmark performance was right at the very top (for whatever that's worth).  It's nowhere near the top today.

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.

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.

I get the sense that since so many companies are selling USB and/or Firewire cards (they are so simple to install and are cheap - and are all over the market), that people believe they must be up to the task.  My personal opinion is that this is self-delusion (at least to some extent).  However, if one is not playing live, they may be just fine.

I have a USB external card - anyone want to buy it?

Restating:  those using PCI or PCIe gear don't seem to be having problems.

Glenn

Last edited by Glenn NK (06-01-2010 05:52)
__________________________
Procrastination Week has been postponed.  Again.

Re: ?Zero latency?

Pianoshrek2: please also test with different sounds in Pianoteq, just to make sure it's not something in the sound that is disturbing you.  Try a harpsichord, for example.

Test with other software instruments too, if possible.
(always checking the ASIO buffer size, of course)

Greg.

Re: ?Zero latency?

Yes, perhaps I contradicted myself, making the stupid mistake of not asking for all the details of his system - this is essential in trying to diagnose "what went wrong".

The good techs on the other forum won't say anything until they have all the information:  computer type, processor type/speed, soundcard brand and type, number of HDDs, speed etc. and how the system is interconnected and how the user is using it with what software.

Time after time I've seen people start making stabs in the dark without knowing nearly enough - and getting nowhere or guessing wrong - so I should have known better.

One guy kept having interruptions in his audio stream - then we discovered his laptop had one drive and it was a 5200 rpm drive.  The mantra is "programs on one HDD, stream audio to another", and they both should be at least 7,200 rpm.  Oh and don't forget about memory and memory allocation.  There are so many links in the chain.

Glenn

__________________________
Procrastination Week has been postponed.  Again.