1

I am wondering if anyone out there knows how I might go about getting audio data with a programming language from an M-Audio USB guitar interface? I would prefer to use python. I would like to get into live audio processing programming and am just curious where to start.

If anyone knows or has experience in getting data like this, even if it's not python, I would really appreciate a push in the right direction.

Thanks in advance for any links to python live music processing or audio libraries that might help.

Austen Cameron
  • 342
  • 4
  • 14
  • The platform is also important. – Ignacio Vazquez-Abrams Aug 11 '11 at 22:19
  • @arunkumar, why in the world would you want to talk to USB directly? That link you posted is completely inappropriate for this need. – Brad Aug 11 '11 at 23:28
  • Electric guitar with USB interface to plug in to my computer. I would like to do audio processing in real time for music that I am playing. I have access to Mac Linux and windows so whichever platform works easiest is what I prefer. – Austen Cameron Aug 13 '11 at 04:11

2 Answers2

3

If you can record from the device by using common audio recorder, such as Audacity, then you can use pyaudio.

pyaudio is a python library binds for PortAudio. If you use C, you can use PortAudio directly.

HYRY
  • 94,853
  • 25
  • 187
  • 187
1

For Python, I might recommend SndObj. I haven't used it myself, but it seems to allow you to use ASIO, which is extremely important if you want low-latency audio IO.

Brad
  • 159,648
  • 54
  • 349
  • 530
  • Brad this looks very promising. I am still unsure of how to go about working with live audio input but I will give this a try tomorrow. Thanks. – Austen Cameron Aug 13 '11 at 04:23
  • Please post feedback here if you make progress! – heltonbiker Aug 18 '11 at 17:49
  • Not a date to be found anywhere on the site... except the SourceForge download page, which says the latest release is from 2009. Is this actively developed? Is it good? – Craig McQueen Aug 25 '11 at 11:12