Welcome to the Piano World Piano Forums
Over 2 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
the Forums & Piano World

This custom search works much better than the built in one and allows searching older posts.
(ad 125) Sweetwater - Digital Keyboards & Other Gear
Digital Pianos at Sweetwater
(ad) Pearl River
Pearl River Pianos
(ad) Pianoteq
Latest Pianoteq add-on instrument: U4 upright piano
(ad) P B Guide
Acoustic & Digital Piano Guide
PianoSupplies.com (150)
Piano Accessories Music Related Gifts Piano Tuning Equipment Piano Moving Equipment
We now offer Gift Certificates in our online store!
(ad) Estonia Piano
Estonia Piano
Quick Links to Useful Stuff
Our Classified Ads
Find Piano Professionals-

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

Quick Links:
*Advertise On Piano World
*Free Piano Newsletter
*Online Piano Recitals
*Piano Recitals Index
*Piano Accessories
* Buying a Piano
*Buying A Acoustic Piano
*Buying a Digital Piano
*Pianos for Sale
*Sell Your Piano
*How Old is My Piano?
*Piano Books
*Piano Art, Pictures, & Posters
*Directory/Site Map
*Contest
*Links
*Virtual Piano
*Music Word Search
*Piano Screen Saver
*Piano Videos
*Virtual Piano Chords
Topic Options
#1205910 - 05/26/09 03:29 AM Question "USB to HOST" feature
andy79_ro Offline
Junior Member

Registered: 05/18/09
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.

Top
(ads) Sweetwater / PR /Roland
Yamaha Keyboards for Performance and Composition

Pearl River World's Best Selling Piano

Click Here


#1205926 - 05/26/09 04:50 AM Re: Question "USB to HOST" feature [Re: andy79_ro]
tbaroghel Offline
Full Member

Registered: 01/12/09
Posts: 37
Loc: 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

Top
#1205929 - 05/26/09 05:03 AM Re: Question "USB to HOST" feature [Re: tbaroghel]
andy79_ro Offline
Junior Member

Registered: 05/18/09
Posts: 12
Thank you Thierry. Did you use this feature, are there latency problems with the USB?

Top
#1206028 - 05/26/09 10:28 AM Re: Question "USB to HOST" feature [Re: andy79_ro]
tbaroghel Offline
Full Member

Registered: 01/12/09
Posts: 37
Loc: 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

Top
#1280284 - 10/04/09 12:08 AM Re: Question "USB to HOST" feature [Re: tbaroghel]
Nikola Tulimirovic Offline
Full Member

Registered: 09/24/09
Posts: 53
Loc: 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.
_________________________
Nikola Tulimirovic

Top
#1280297 - 10/04/09 01:12 AM Re: Question "USB to HOST" feature [Re: Nikola Tulimirovic]
ChrisA Offline
3000 Post Club Member

Registered: 12/28/08
Posts: 3841
Loc: 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.

Top
#1280301 - 10/04/09 01:35 AM Re: Question "USB to HOST" feature [Re: ChrisA]
Nikola Tulimirovic Offline
Full Member

Registered: 09/24/09
Posts: 53
Loc: Belgrade, Serbia
Chris, what makes you think increasing sample rate also increases latency?
_________________________
Nikola Tulimirovic

Top
#1280349 - 10/04/09 05:35 AM Re: Question "USB to HOST" feature [Re: Nikola Tulimirovic]
DragonPianoPlayer Offline
2000 Post Club Member

Registered: 12/12/06
Posts: 2368
Loc: Denver, CO
Nikola,

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

Top
#1280376 - 10/04/09 07:03 AM Re: Question "USB to HOST" feature [Re: DragonPianoPlayer]
Nikola Tulimirovic Offline
Full Member

Registered: 09/24/09
Posts: 53
Loc: 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.
_________________________
Nikola Tulimirovic

Top
#1280600 - 10/04/09 03:23 PM Re: Question "USB to HOST" feature [Re: Nikola Tulimirovic]
daro Offline
Full Member

Registered: 11/09/07
Posts: 166
Loc: 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.

Top
#1280676 - 10/04/09 05:37 PM Re: Question "USB to HOST" feature [Re: daro]
DragonPianoPlayer Offline
2000 Post Club Member

Registered: 12/12/06
Posts: 2368
Loc: 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
_________________________

Top
#1280743 - 10/04/09 07:36 PM Re: Question "USB to HOST" feature [Re: DragonPianoPlayer]
daro Offline
Full Member

Registered: 11/09/07
Posts: 166
Loc: 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.

Top
#1280766 - 10/04/09 08:14 PM Re: Question "USB to HOST" feature [Re: DragonPianoPlayer]
Nikola Tulimirovic Offline
Full Member

Registered: 09/24/09
Posts: 53
Loc: 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.
_________________________
Nikola Tulimirovic

Top
#1281236 - 10/05/09 01:54 PM Re: Question "USB to HOST" feature [Re: Nikola Tulimirovic]
daro Offline
Full Member

Registered: 11/09/07
Posts: 166
Loc: 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.

Top
#1281384 - 10/05/09 06:14 PM Re: Question "USB to HOST" feature [Re: daro]
Nikola Tulimirovic Offline
Full Member

Registered: 09/24/09
Posts: 53
Loc: 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.
_________________________
Nikola Tulimirovic

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

Registered: 11/26/12
Posts: 6
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

Top

Moderator:  Piano World 
What's Hot!!
Our latest Issue is available now...
Piano News - Interesting & Fun Piano Related Newsletter! (free)
-------------------
HOW TO POST PICTURES on the Piano Forums
-------------------
Sharing is Caring!
About the Buttons
-------------------
Forums Rules & Help
-------------------
ADVERTISE
on Piano World

The world's most popular piano web site.
(ad) HAILUN Pianos
Hailun Pianos - Click for More
Ad (Seiler/Knabe)
Knabe Pianos
Sheet Music
(PW is an affiliate)
Sheet Music Plus Featured Sale
(125ad) Dampp Chaser
Dampp Chaser Piano Life Saver
(ad) Lindeblad Piano
Lindeblad Piano Restoration
Who's Online
169 registered (accordeur, Alex1, ajames, AmateurBob, 39 invisible), 1914 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
75516 Members
42 Forums
156163 Topics
2293326 Posts

Max Online: 15252 @ 03/21/10 11:39 PM
New Topics - Multiple Forums
Bored kid at Cosco..
by Norbert
10 minutes 32 seconds ago
Need help and advice please!
by Pover
12 minutes 5 seconds ago
Kawai K200
by Vidsin
Today at 02:46 PM
Medelssohn on meaning in music
by phantomFive
Today at 01:52 PM
Correcting Heavy Piano Touchweight in Grand Pianos
by Paul678
Today at 01:39 PM
(ads by Google)

Visit our online store for gifts for music lovers

 
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 | Donate | Link to Us | Classifieds |
| |Contact | Privacy | Legal | About Us | Site Map | Free Newsletter | Press Room |


copyright 1997 - 2014 Piano World ® all rights reserved
No part of this site may be reproduced without prior written permission