How to sample audio from a keyboard in real-time using mbed...

I am trying to bring audio into the mbed by running a USB B to USB A cable from a Yamaha keyboard to aSparkfun USBA Female breakout board that is hooked up to the mbed so that I can run a FFT on the incoming frequencies. I don’t know how to get mbed to process an incoming WAV file from the keyboard in real-time though, so any help would be greatly appreciated!

I’ve done something vaguely similar - processing audio in real time. But first of all, is the keyboard definitely generating audio, and not MIDI signals?

I am trying to bring audio into the mbed by running a USB B to USB A cable from a Yamaha keyboard to aSparkfun USBA Female breakout board that is hooked up to the Tweakboxmbed so that I can run a FFT on the incoming frequencies. I don’t know how to get mbed to process an incoming WAV file from the keyboard in real-time though, so any help would be greatly appreciated!

issue got solved