Welcome to the Piano World Piano Forums
Over 2.5 million posts about pianos, digital pianos, and all types of keyboard instruments
Join the World's Largest Community of Piano Lovers (it's free)
It's Fun to Play the Piano ... Please Pass It On!

SEARCH
Piano Forums & Piano World
What's Hot!!
Happy Thanksgiving!

Happy Thanksgiving from our family to our Forums Family!

Posting Pictures on the Forums
-------------------
Forums RULES & HELP
-------------------
ADVERTISE on Piano World
(125ad)
Piano Life Saver - Dampp Chaser
Dampp Chaser Piano Life Saver
(ad)
Piano Buyer Guide
Piano Buyer Fall 2017
Who's Online Now
59 registered members (ando, AprilE, Andrew_G, al reds, 14 invisible), 1,761 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
(ad)
Estonia Pianos
Estonia Pianos
Quick Links to Useful Piano & Music Resources
Our Classified Ads
Find Piano Professionals-

*Piano Dealers - Piano Stores
*Piano Tuners
*Piano Teachers
*Piano Movers
*Piano Restorations
*Piano Manufacturers

Quick Links:
*Advertise On Piano World
*Free Piano Newsletter
*Online Piano Recitals
*Piano Recitals Index
*Piano & Music Accessories
*Live Piano Venues
*Music School Listings
* Buying a Piano
*Buying A Acoustic Piano
*Buying a Digital Piano
*Pianos for Sale
*Sell Your Piano
*How Old is My Piano?
*Directory/Site Map
*Virtual Piano
*Music Word Search
*Piano Videos
*Virtual Piano Chords & Scales
Previous Thread
Next Thread
Print Thread
#1205910 - 05/26/09 02:29 AM Question "USB to HOST" feature  
Joined: May 2009
Posts: 12
andy79_ro Offline
Junior Member
andy79_ro  Offline
Junior Member

Joined: May 2009
Posts: 12
Hello to you all,

Most Yamaha CLP DPs have the "USB to HOST" connectivity. Can this be used as a substitute for the MIDI out? Can one play virtual instrumetns on the PC through the USB to HOST or it is used only for midi file transfer after recording them on the DPs memory ?

Thank you.

(ad) ROLAND

Click Here

#1205926 - 05/26/09 03:50 AM Re: Question "USB to HOST" feature [Re: andy79_ro]  
Joined: Jan 2009
Posts: 37
tbaroghel Offline
Full Member
tbaroghel  Offline
Full Member

Joined: Jan 2009
Posts: 37
France
Hi Andy,

USB (to host) is indeed a substitute for (or addition to) the MIDI IN & MIDI OUT, aloowing you to use virtual instruments without having to buy a dedicated MIDI adapter for your PC. Other things you can do thru it is depending on the piano brand/model and the implementation of MIDI in the instrument (some will use 'USB to device' for any other task).

Regards,

Thierry


Adult Beginner on a Roland FP-7
#1205929 - 05/26/09 04:03 AM Re: Question "USB to HOST" feature [Re: tbaroghel]  
Joined: May 2009
Posts: 12
andy79_ro Offline
Junior Member
andy79_ro  Offline
Junior Member

Joined: May 2009
Posts: 12
Thank you Thierry. Did you use this feature, are there latency problems with the USB?

#1206028 - 05/26/09 09:28 AM Re: Question "USB to HOST" feature [Re: andy79_ro]  
Joined: Jan 2009
Posts: 37
tbaroghel Offline
Full Member
tbaroghel  Offline
Full Member

Joined: Jan 2009
Posts: 37
France
Andy,

I did use the USB link and did not notice any latency issue over similar 'pure MIDI' link. (To be honest, you would probably struggle to find any new PC hardware with a MIDI interface which is not based on USB ... ) You can get a good idea for the lack of latency using the 'USB to Host' link TO AND FROM the PC with programs like 'One Man Band' where MIDI flow is captured, modified and injected back into your DP all in real time. (You can get a demo version for free of this program which creates a Yamaha-style auto-accompaniment)


In any case, USB is a much faster technology than 'old' MIDI so I imagine latency issues, if any, will come with the AUDIO part, using the virtual instruments.

Regards from Paris,

Thierry


Adult Beginner on a Roland FP-7
(ad)
Piano & Music Accessories
piano accessories music gifts tuning and moving equipment
#1280284 - 10/03/09 11:08 PM Re: Question "USB to HOST" feature [Re: tbaroghel]  
Joined: Sep 2009
Posts: 53
Nikola Tulimirovic Offline
Full Member
Nikola Tulimirovic  Offline
Full Member

Joined: Sep 2009
Posts: 53
Belgrade, Serbia
You need a good sound card (ASIO 2, 192 kHz sample rate, stereo) to overcome latency issues. But there’s more. To get the best of your instrument, you need high quality sound. Based on many reviews I’ve been reading, I intend to buy ASUS Xonar Essence STX.

#1280297 - 10/04/09 12:12 AM Re: Question "USB to HOST" feature [Re: Nikola Tulimirovic]  
Joined: Dec 2008
Posts: 3,842
ChrisA Offline
3000 Post Club Member
ChrisA  Offline
3000 Post Club Member

Joined: Dec 2008
Posts: 3,842
Redondo Beach, California
Originally Posted by Nikola Tulimirovic
You need a good sound card (ASIO 2, 192 kHz sample rate, stereo) to overcome latency issues. But there’s more. To get the best of your instrument, you need high quality sound. Based on many reviews I’ve been reading, I intend to buy ASUS Xonar Essence STX.


A high sample rate will not help latency. If anything it makes to worse. You do want a good audio interface, but You can do better than that card for half the price

You have to define you needs before you buy and audio interface. For example will you ever be recording audio from a mic or instrument? How many trans at once. What about monitoring? Speakers" headphones" how many of each?

One thing I don;r lke about cards that plug into a PC is that they can't have dials and controls or very many larger connectors.

#1280301 - 10/04/09 12:35 AM Re: Question "USB to HOST" feature [Re: ChrisA]  
Joined: Sep 2009
Posts: 53
Nikola Tulimirovic Offline
Full Member
Nikola Tulimirovic  Offline
Full Member

Joined: Sep 2009
Posts: 53
Belgrade, Serbia
Chris, what makes you think increasing sample rate also increases latency?

#1280349 - 10/04/09 04:35 AM Re: Question "USB to HOST" feature [Re: Nikola Tulimirovic]  
Joined: Dec 2006
Posts: 2,462
DragonPianoPlayer Offline
2000 Post Club Member
DragonPianoPlayer  Offline
2000 Post Club Member

Joined: Dec 2006
Posts: 2,462
Denver, CO
Nikola,

Increasing sample rate increases the number of data points that the waveform needs to be generated for.


[Linked Image] [Linked Image]
#1280376 - 10/04/09 06:03 AM Re: Question "USB to HOST" feature [Re: DragonPianoPlayer]  
Joined: Sep 2009
Posts: 53
Nikola Tulimirovic Offline
Full Member
Nikola Tulimirovic  Offline
Full Member

Joined: Sep 2009
Posts: 53
Belgrade, Serbia
I am tired. Maybe I’m missing something...

Widespread approximation for playing:
Code
latency = number of samples / sample rate


So, if the number of samples doesn’t change, increasing sample rate decreases latency. Buffer is of the same size, but it receives and sends data faster.

If we aren’t considering CPU load, I must be missing something.

#1280600 - 10/04/09 02:23 PM Re: Question "USB to HOST" feature [Re: Nikola Tulimirovic]  
Joined: Nov 2007
Posts: 180
daro Offline
Full Member
daro  Offline
Full Member

Joined: Nov 2007
Posts: 180
Los Angeles, CA
Originally Posted by DragonPianoPlayer
Nikola,

Increasing sample rate increases the number of data points that the waveform needs to be generated for.


Increasing sample rate only increases the frequency that can be represented. The waveform for an A440 sampled at 1K is absolutely identical to an A440 sampled at 192K.

Originally Posted by Nikola Tulimirovic
I am tired. Maybe I’m missing something...

Widespread approximation for playing:
Code
latency = number of samples / sample rate


So, if the number of samples doesn’t change, increasing sample rate decreases latency. Buffer is of the same size, but it receives and sends data faster.

If we aren’t considering CPU load, I must be missing something.


Except, for practical purposes, I think you have to consider CPU load as well as any number of other factors, including the interface, driver quality etc. that may require you to increase your buffer size when using a high sample rate to avoid artifacts.

In any case, for simply recording audio, 192K is way overkill, unless it's for a trio of porpoise, field mouse and fruit bat. Also, the engineering of such converters requires a compromise between speed and accuracy, so unless the 192K converter is extremely expensive, it may very well be introducing some distortion just by itself that simply wouldn't occur at a lower rate.

#1280676 - 10/04/09 04:37 PM Re: Question "USB to HOST" feature [Re: daro]  
Joined: Dec 2006
Posts: 2,462
DragonPianoPlayer Offline
2000 Post Club Member
DragonPianoPlayer  Offline
2000 Post Club Member

Joined: Dec 2006
Posts: 2,462
Denver, CO
OK, let's be sure we are talking about the same thing. This thread concerns MIDI signals via a USB to Host connection. MIDI by itself has little to no latency. Latency appears in this scenario when you have to deal with (for example) a VSTi, audio driver, and the appropriate output buffers.

I'm thinking that the VSTi and audio drivers are the biggest sources of latency in this scenario. I would agree that the latency due to the buffers scales inversely with the sample frequency. You can also minimize the latency of the audio driver by using an ASIO driver (on Windows, because this works directly with the hardware and does not need to program through multiple interface layers, if I understand the importance of ASIO drivers). Doesn't the DAW need to move or create twice the amount of data at 44k as at 22k? Aren't the sample sizes on the disks or in RAM twice as big? Or am I missing something here? I'm lookin at this from the viewpoint of someone with a degree in physics.

Rich


[Linked Image] [Linked Image]
#1280743 - 10/04/09 06:36 PM Re: Question "USB to HOST" feature [Re: DragonPianoPlayer]  
Joined: Nov 2007
Posts: 180
daro Offline
Full Member
daro  Offline
Full Member

Joined: Nov 2007
Posts: 180
Los Angeles, CA
Originally Posted by DragonPianoPlayer
OK, let's be sure we are talking about the same thing. This thread concerns MIDI signals via a USB to Host connection. MIDI by itself has little to no latency. Latency appears in this scenario when you have to deal with (for example) a VSTi, audio driver, and the appropriate output buffers.

I'm thinking that the VSTi and audio drivers are the biggest sources of latency in this scenario. I would agree that the latency due to the buffers scales inversely with the sample frequency. You can also minimize the latency of the audio driver by using an ASIO driver (on Windows, because this works directly with the hardware and does not need to program through multiple interface layers, if I understand the importance of ASIO drivers). Doesn't the DAW need to move or create twice the amount of data at 44k as at 22k? Aren't the sample sizes on the disks or in RAM twice as big? Or am I missing something here? I'm lookin at this from the viewpoint of someone with a degree in physics.

Rich


I agree with what you're saying here; the nit I was picking was due to your perhaps inelegant phrasing regarding the generation of a wave. In my example, an A440 using a 192K sampling rate does create 4 times as much data as sampling it at 48K, but the output wave is going to be identical since it only needed to be sampled at over twice the frequency to recreate it. Therefore, using 192K would be an unnecessary waste of resources that might be better used to help compensate for latency issues that could arise due to other components.

#1280766 - 10/04/09 07:14 PM Re: Question "USB to HOST" feature [Re: DragonPianoPlayer]  
Joined: Sep 2009
Posts: 53
Nikola Tulimirovic Offline
Full Member
Nikola Tulimirovic  Offline
Full Member

Joined: Sep 2009
Posts: 53
Belgrade, Serbia
Originally Posted by daro
Increasing sample rate only increases the frequency that can be represented. The waveform for an A440 sampled at 1K is absolutely identical to an A440 sampled at 192K.


Having a higher frequency leaves you with more time slots to put sound to, therefore allowing you to push sound through your computer a little bit faster. Not only that, but that’s the point here.

Originally Posted by daro
Except, for practical purposes, I think you have to consider CPU load as well as any number of other factors, including the interface, driver quality etc. that may require you to increase your buffer size when using a high sample rate to avoid artifacts.


I know. At this point, let’s say we are to use supercomputers for the purpose. DragonPianoPlayer explained the driver part. I’ll give an example for CPU, RAM and the rest at the end of this post.

Originally Posted by daro
In any case, for simply recording audio, 192K is way overkill, unless it's for a trio of porpoise, field mouse and fruit bat.


I somewhat agree. Depends on what you do and I wouldn’t use 192kHz for recording. I am not considering latency jitter here, just the average keystroke-pleasure time, but it can reduce problems with latency jitter, too. It’s important for playing because we don’t want to wait for responses after hitting keys. I like to hear sound response immediately (<5ms).

Originally Posted by daro
Also, the engineering of such converters requires a compromise between speed and accuracy, so unless the 192K converter is extremely expensive, it may very well be introducing some distortion just by itself that simply wouldn't occur at a lower rate.


I believe ASUS Xonar Essence STX can help a lot. Also, you may go with 96kHz, if you hear distortion while playing at 192kHz.

Originally Posted by DragonPianoPlayer
OK, let's be sure we are talking about the same thing. This thread concerns MIDI signals via a USB to Host connection. MIDI by itself has little to no latency. Latency appears in this scenario when you have to deal with (for example) a VSTi, audio driver, and the appropriate output buffers.


Yes. MIDI is limited by the rest of the system, and that’s USB in this case. No creature on Earth can percept these latencies. smile

Originally Posted by DragonPianoPlayer
I'm thinking that the VSTi and audio drivers are the biggest sources of latency in this scenario. I would agree that the latency due to the buffers scales inversely with the sample frequency. You can also minimize the latency of the audio driver by using an ASIO driver (on Windows, because this works directly with the hardware and does not need to program through multiple interface layers, if I understand the importance of ASIO drivers).


Yes, in case we’re dealing with an old PC, but I guess whoever wants to do stuff we’re discussing here will buy a good enough computer in a year or two. By good enough I mean capable of making latency produced by VST host and VSTi close to zero. And aving ASIO, we’re basically left only with buffer latency.

Originally Posted by DragonPianoPlayer
Doesn't the DAW need to move or create twice the amount of data at 44k as at 22k? Aren't the sample sizes on the disks or in RAM twice as big? Or am I missing something here? I'm lookin at this from the viewpoint of someone with a degree in physics.


Right. You’re not missing anything. I slept well, so neither am I. smile

A friend of mine has a studio not far from my apartment. For this sort of games, he uses Phenom II 550, 4 GB DDR3 1333MHz. I’m not sure about HDD. Interface is M-Audio, both controller and audio processing unit. Again, not sure about models. I tried it and it works.

#1281236 - 10/05/09 12:54 PM Re: Question "USB to HOST" feature [Re: Nikola Tulimirovic]  
Joined: Nov 2007
Posts: 180
daro Offline
Full Member
daro  Offline
Full Member

Joined: Nov 2007
Posts: 180
Los Angeles, CA
Originally Posted by Nikola Tulimirovic
Originally Posted by daro
Increasing sample rate only increases the frequency that can be represented. The waveform for an A440 sampled at 1K is absolutely identical to an A440 sampled at 192K.


Having a higher frequency leaves you with more time slots to put sound to, therefore allowing you to push sound through your computer a little bit faster. Not only that, but that’s the point here.


I'm sorry but this is completely wrong. "Sound" is not pushed through the system, mathematical representations are, and the sampling rate only has meaning with the respect to the particular wave being sampled. Again, an A440 is represented in its entirety by sampling at 1K. There is absolutely no additional information in an A440 sampled at 192K that isn't there at 1K, so all the extra data beyond that is simply a zero, not a place that other sounds can be stuffed into.

Originally Posted by Nikola Tulimirovic
Originally Posted by daro
Also, the engineering of such converters requires a compromise between speed and accuracy, so unless the 192K converter is extremely expensive, it may very well be introducing some distortion just by itself that simply wouldn't occur at a lower rate.


I believe ASUS Xonar Essence STX can help a lot. Also, you may go with 96kHz, if you hear distortion while playing at 192kHz.


I would respectfully suggest that you check out Dan Lavry's website. He's the designer of some of the highest-end converters in the world, and he's written several white papers that address this issue far more cogently than I can, as well as including all the relevant math if you're so inclined.

#1281384 - 10/05/09 05:14 PM Re: Question "USB to HOST" feature [Re: daro]  
Joined: Sep 2009
Posts: 53
Nikola Tulimirovic Offline
Full Member
Nikola Tulimirovic  Offline
Full Member

Joined: Sep 2009
Posts: 53
Belgrade, Serbia
You’re probably right... Sound doesn’t go through the system. Mathematical representations do...

Now, let’s get back to the point. Again, it’s not recording. It’s playing. When I hit the key, I want my mathematical representation to travel as fast as possible (<5ms), so that I do not notice any delay. Dan says 44kHz is more than enough and 192 kHz makes distortion? OK. Let's see what happens... In order to get buffer latency under 5ms, we have to decrease buffer size under 220 samples. Doing that, we often end up with clicks and pops, which are a lot worse than beforementioned distortion. So, what do we do? We increase sample rate to 96kHz and buffer size to 512 samples, possibly removing all the clicks, because CPU peaks don’t double. If that doesn’t work, we double to 192/1024. CPU peaks, again, don’t double. If that doesn’t work, we better go shopping.

#1991171 - 11/26/12 04:24 PM Re: Question "USB to HOST" feature [Re: DragonPianoPlayer]  
Joined: Nov 2012
Posts: 9
megabyzus Offline
Junior Member
megabyzus  Offline
Junior Member

Joined: Nov 2012
Posts: 9
Hi, can someone help me with this question about the USB to HOST OUT on my future keyboard before I purchase it?:

If I connect the keyboard to an iPad(or computer) with GarageBand(or similar software) and select a type of loop/sound on GarageBand, say a drum, once I play a note on the kbd, will I hear the drum on my kbd speakers or only on the iPad (or computer)? Note the kbd has an USB to Host output.


Thanks, in advance!

Mo


Moderated by  Piano World 

Piano Acc. & Gift Items in
Piano World's Online Store
In PianoSupplies.com ,(a division of Piano World)
our online store for piano and music gifts and accessories, Digital Piano Dolly, party goods, tuning equipment, piano moving equipment, benches, lamps Caster Cups and more.


Free Shipping* on Jansen Artist Piano Benches, Cocoweb Piano Lamps, Hidrau Hydraulic Piano Benches
(*free shipping within contiguous U.S. only)
(ad)
Pearl River & Ritmuller
Ritmuller Pianos
(ad)
Pianoteq
PianoTeq 6 Out now
ad
Pierce Piano Atlas


New Topics - Multiple Forums
One minute survey
by Nikolas. 11/24/17 02:10 AM
Kawai es110 /kawai es100
by Jitin. 11/23/17 07:22 PM
Midway crisis
by Martin3451. 11/23/17 07:10 PM
Forum Statistics
Forums44
Topics182,910
Posts2,673,864
Members89,177
Most Online15,252
Mar 21st, 2010
(ad)
Accu-Tuner
Sanderson Accu-Tuner
Check It Out!
There's a lot more to Piano World than just the forums.
Click Here to
Explore The Rest of Piano World!!
Visit our online store for gifts for music lovers


 
Help keep the forums up and running with a donation, any amount is appreciated!
Or by becoming a Subscribing member! Thank-you.
Donate   Subscribe
 
Our Piano Related Classified Ads
| Dealers | Tuners | Lessons | Movers | Restorations | Pianos For Sale | Sell Your Piano |

Advertise on Piano World
| Subscribe | Piano World | PianoSupplies.com | Advertise on Piano World |
| |Contact | Privacy | Legal | About Us | Site Map | Free Newsletter |


copyright 1997 - 2017 Piano World ® all rights reserved
No part of this site may be reproduced without prior written permission
Powered by UBB.threads™ PHP Forum Software 7.6.0