Topic: length USB cable to pc

Hi all,

I want to step into the world of Pianoteq.
The PC I want to use for this, stands max 5 meters cable length from the Piano.

What I have in mind is this:

Piano     --> 5 meter USB Cable --> PC with Pianoteq
Focusrite --> 5 meter USB Cable --> PC with Pianoteq
Focusrite --> to Monitors and/or Headset

PunBB bbcode test

So when sitting at the Piano, I can adjust the focuswrite.(2i4)
Also I want to use an older laptop, to remote control Pianoteq, running on my PC that is 5 meters away.


The Question:

Can I bridge this distance without introducing to much latency ??

Re: length USB cable to pc

It should work,

I suggest you to use a midi cable between your piano and the focusrite instead of a usb cable between tha piano and the pc to send the midi messages.

Re: length USB cable to pc

I did this research a while ago so I'll try to clarify this. The specs of the USB interface imply that the maximum cable length should be 5 meters. That means one single cable or two, say, 2 and 3 meters common USB cables connected to each other. If the length is more than 5 meters there 'may' be some errors in the data. Also you are able to avoid this 5 meters limitation by using so called 'active' USB cables, you should look for them in a dedicated computer supermarkets. There are quite many ways for doing such task, from USB cables that, again, may or not require even an additional power supply or the ones that use the LAN technology to deliver the USB connection through tens or even hundreds of meters. The price is somewhat higher than a conventional USB cable though not so extremely unrealistically high.

Your setup will perform perfectly right. There is nothing about the delay of the signal in all cases, there will be just zero loss in timing realistically speaking. My advice is just to go for more expensive 5 meter conventional USB cables, the more thicker ones, you know. I have quite experience with them and the cheaper ones may lead to disconnects from time to time or even introduce some buggy behaviour.

Or, as stamkorg says, you may consider using the actual MIDI cable from your DP to the audio interface if you have the MIDI sockets on your keyboard. I know nothing about the MIDI cable length limitations. Also I can't predict what will be more superior in terms of latency, direct MIDI connection or the MIDI over USB to your computer.

Also, sorry to say that and hope being wrong, the Focusrite USB audio interfaces have quite bad reputation around in terms of latency. Though no complains about other parameters reported about them.

Last edited by AKM (01-09-2015 16:32)

Re: length USB cable to pc

AKM wrote:

Also, sorry to say that and hope being wrong, the Focusrite USB audio interfaces have quite bad reputation around in terms of latency. Though no complains about other parameters reported about them.

Not sure at all.
I use a Focusrite Scarlett 6i6 and it works fine at 64 samples. No latency problem

Re: length USB cable to pc

MIDI max length is 15 meters in theory. Much more than USB. In fact it is even much more. So yes, using a MIDI cable from the kb to the interface is a good solution. This being said, I'm using a 8 m USB cable here without any problem... Latency will not change with cable length: it works fine or not.

Re: length USB cable to pc

THX for the reply's !!

So If I understand correctly:

1)  It should not be a problem, but it's pushing the limit of the USB cables.
The reason is the length of the usb cables. Errors can occur in the data.
(So I'll have to try this and see how it goes)

2)  It is a better solution, to connect with a midi cable to the USB audio interface.
And from the Interface with a shorter USB cable to the computer.

The problem with this is, that I will have to use a longer audio cable to my monitors/headphones.
And I can't make adjustments on the volume of the audio interface.


Is this correct ?? Or am I missing something


Another question:
What is a better USB audio Interface ?? ( Maybe with an interface on the computer. )

Re: length USB cable to pc

Plurkis wrote:

THX for the reply's !!

So If I understand correctly:

1)  It should not be a problem, but it's pushing the limit of the USB cables.
The reason is the length of the usb cables. Errors can occur in the data.
(So I'll have to try this and see how it goes)

2)  It is a better solution, to connect with a midi cable to the USB audio interface.
And from the Interface with a shorter USB cable to the computer.

The problem with this is, that I will have to use a longer audio cable to my monitors/headphones.
And I can't make adjustments on the volume of the audio interface.


Is this correct ?? Or am I missing something


Another question:
What is a better USB audio Interface ?? ( Maybe with an interface on the computer. )

1) No, you are not pushing any limits, you are absolutely in the safe area, just better try not to buy the cheapest one 5-m USB cable in the store.

2) By the picture from your first post I assume that you may use a very short (or any length) MIDI cable to connect the piano to the audio interface and then to connect the audio interface to the computer with a 5-m USB cable with no problems. That will keep all your stuff perfectly organized as far as I can see it.

Speaking about the audio interfaces the RME stuff are very popular and considered pretty Hi-End class if you can afford it, the Prism Audio interfaces seems to be even more top level though (Lynx Audio or Apogee devices sure can be called 'good' also). I honestly don't think that you 'need' to go that far, try your setup connected and working, it should do the job right for you (and for most people), just if you desperately want to upgrade there are sure options to choose from.

Last edited by AKM (02-09-2015 20:20)

Re: length USB cable to pc

AKM wrote:

2) By the picture from your first post I assume that you may use a very short (or any length) MIDI cable to connect the piano to the audio interface and then to connect the audio interface to the computer with a 5-m USB cable with no problems.

Hi Andrei,
In my picture I haven't got a midi cable between the piano and the USB audio interface.

The picture was:
Piano -> USB Cable -> PC -> USB Cable -> Audio interface -> Monitor/Headset.

Is it better to do it like this ??
Piano -> midi Cable -> Audio interface -> USB Cable -> PC
(And from the audio interface to the monitor/Headset)

Re: length USB cable to pc

Plurkis wrote:
AKM wrote:

2) By the picture from your first post I assume that you may use a very short (or any length) MIDI cable to connect the piano to the audio interface and then to connect the audio interface to the computer with a 5-m USB cable with no problems.

Hi Andrei,
In my picture I haven't got a midi cable between the piano and the USB audio interface.

The picture was:
Piano -> USB Cable -> PC -> USB Cable -> Audio interface -> Monitor/Headset.

Is it better to do it like this ??
Piano -> midi Cable -> Audio interface -> USB Cable -> PC
(And from the audio interface to the monitor/Headset)

I cant say that super confidently that MIDI cabling is that much 'better' than USB - it is not such kind of a scalable project to grade it you know :) It will flawlessly work in both cases, just go and connect it and start playing :) Both ways of connection will do the same. ...Ok, go for MIDI cable, you will have the one more free USB port on your computer then :)

Last edited by AKM (02-09-2015 22:18)

Re: length USB cable to pc

AKM wrote:

Also, sorry to say that and hope being wrong, the Focusrite USB audio interfaces have quite bad reputation around in terms of latency.

From my personal experience I would say that's wrong (source?). I compared my Focusrite Scarlett 2i2 with the onboard ALC283 on my linux-netbook, no difference for me in latency under the same conditions (48000 Hz, 64 samples (1.3 ms), Direct hardware device without any conversions, Pianoteq 5.3.0).

Re: length USB cable to pc

groovy wrote:
AKM wrote:

Also, sorry to say that and hope being wrong, the Focusrite USB audio interfaces have quite bad reputation around in terms of latency.

From my personal experience I would say that's wrong (source?). I compared my Focusrite Scarlett 2i2 with the onboard ALC283 on my linux-netbook, no difference for me in latency under the same conditions (48000 Hz, 64 samples (1.3 ms), Direct hardware device without any conversions, Pianoteq 5.3.0).

I can't tell the source, just some time ago I was looking for a new audio interface to buy and was thinking about entry level Focusrite USB interfaces, but from some research I could see quite many reports about issues with latency. Glad to hear that it is not a problem in your case. I tried to google the  same topic now but almost could not find anything. Are you interested to check your Scarlett 2i2 RTL (Round Trip Latency) with a test utility? If you don't mind here is a link: http://www.oblique-audio.com/free/rtlutility Note that you need to connect the output of the interface directly to its input with a cable to perform this test. The reason to use this method is because the interface latency shown in, say, a DAW audio preferences is a so called "reported by a driver" and sometimes manufactures fake this data.

I'm using antique M-Audio Audiophile 2496 internal card with Windows 8.1 with quite impressively low latency timings. Here are my results for some most useable settings:

buffer size (samples), sample rate, measured RTL
64 44100 4.467
64 48000 4.124
64 88200 2.248
64 96000 2.045

Last edited by AKM (05-09-2015 11:02)

Re: length USB cable to pc

AKM wrote:

Are you interested to check your Scarlett 2i2 RTL (Round Trip Latency) with a test utility?

Yes, but it is "Windows only". And I would be more interested in unidirectional output latency than a roundtrip-time (=playing and recording in a loop).

So I tried something with bord-tools:

I started two instances of Pianoteq on the netbook, each with a different audio-hardware for output. Both instances are triggered by the same MIDI-keyboard at the same time. The idea is: should one audio-hardware have a bigger latency than the other, its sound arrives later and the time-difference can be measured in a dual-channel recording.

The upper track is the PCI onboard-codec ALC283 and the lower the USB Scarlett 2i2 (note c, two octaves above "middle-c"):

http://fs1.directupload.net/images/150905/jh7f45rp.png

To see:
On my system the USB path has ~5 ms more latency than the PCI path.

But is the reason the Focusrite hardware or the USB-Bus in general? Or both?

So I compared the USB Focusrite with another USB audiocard, the popular Behringer UCA222. Both USB-cards show exactly the same latency, as you can see in the next picture (Behringer upper, Focusrite lower track):

http://fs1.directupload.net/images/150905/lcuwv8pi.png

This exact synchronicity could be an indication, that the ~5 ms latency are a general lag of USB- vs. PCI-hardware. Anyway the Focusrite is not worse than a Behringer latency-wise in that experiment.

Btw, as the picture shows, the output-signal of the UCA222 is inverted compared to the Focusrite and the ALC283 codec.

It would be interesting, whether the ~5 ms USB-latency could be tuned by some USB-parameters. In old kernel-generations (2.6x?) I remember the option "nrpacks", but today this  does not exist anymore.

cheers

PS: Your PCI M-Audio seems to be a very good buy!

Last edited by groovy (05-09-2015 16:37)

Re: length USB cable to pc

groovy wrote:
AKM wrote:

Are you interested to check your Scarlett 2i2 RTL (Round Trip Latency) with a test utility?

Yes, but it is "Windows only". And I would be more interested in unidirectional output latency than a roundtrip-time (=playing and recording in a loop).

Interesting. From your tests one could see that Scarlett and Behringer is 5 ms. behind the internal audio. But what is the delay for the internal soundcard?

If you are still interested you may still test RTL manually. You should have some sound sample, some kind of a click sound. Then put it to some audio channel for the playback, interconnect the output with the input on yours Scarlett directly with a cables (or one for mono) then set another audio channel for the recording from the hardware input. Hit rec/play. Check how far behind this new recorded audio is. This is Round Trip Latency time for your card.

Last edited by AKM (05-09-2015 20:10)

Re: length USB cable to pc

Yes, I did that "overdubbing" in the meantime already :-). I generated a click-track in 24bit/48kHz, played it back on one channel of the Scarlett 2i2 and looped it back with a cable for recording at the same time.

With the smallest Audio Buffering, that I could set in audacity (1 ms) I got latencies between playback-track and recording of ~9 ms:

http://fs1.directupload.net/images/150905/e83nes8g.png

In other words  ~9 ms are a  roundtrip-time. Around 2x the time for output alone (input costs time too).

With a double sample-rate of 96 kHz the latency is shorter, I can show it later.

Re: length USB cable to pc

Thank you very much, I was very interested to check it. 9 ms. roundtrip is absolutely within the usable limits for live monitoring/playing. Lets not forget that the "play" latency will be in this case 5 ms. or lower.

Re: length USB cable to pc

AKM wrote:

But what is the delay for the internal soundcard?

A vague estimation could be the roundtrip-time of 7 ms between the internal speaker and the internal mic of my netbook:

http://fs1.directupload.net/images/150906/zhxovfjo.png

The minimum "Audio-to-buffer" setting, that I could choose in audacity, was 3 ms (with 2 ms or 1 ms I got no output, took me some time to debug). This option has a help text "higher = more latency".

cheers

Re: length USB cable to pc

Oke THX for the reply's

(sorry for my late reaction)