Arduino Forum

Using Arduino => Audio => Topic started by: WilliamK Govinda on Apr 13, 2011, 01:14 am

Title: USB to MIDI VST (Source included) But needs better timing ...
Post by: WilliamK Govinda on Apr 13, 2011, 01:14 am
Here we go, a very simple code thanks to the contribution of another user.  8)

The code here talks to the Beat707 Software so it knows if it should enter USB mode or not. But this can be removed for anybody needs. ;-)

But there's a problem to which I don't know how to fix: timing. If you use a small buffer (low latency) there's no problem, but if you try 1 second buffer the problem is very easy to spot, and even at low latencies you can notice the drifts. If anyone has a solution, we would love to hear.  :smiley-fat:

http://www.beat707.com/downloads/Beat707_USB2MIDI_Source.zip
(requires the JUCE framework from http://www.rawmaterialsoftware.com)

http://www.beat707.com/downloads/Beat707_USB2MIDI_VST.zip
(Windows 32 bits only)
Title: Re: USB to MIDI VST (Source included) But needs better timing ...
Post by: WilliamK Govinda on Apr 13, 2011, 01:45 am
I did another quick test with a proper sound-card with ASIO drivers and 128 samples for the buffer. (lower latency) and Timming is perfect. And I remember reading that at higher latencies timming is indeed bad. So I guess there's no real solution for this, right?

Now I need to figure out how to make a Stand Alone application for Windows that will let you chose a Midi Input and Output and apply things to that...

Wk
Title: Re: USB to MIDI VST (Source included) But needs better timing ...
Post by: popgoblin on Apr 30, 2011, 05:10 pm
any chance of a Mac version?

br
Morten
Title: Re: USB to MIDI VST (Source included) But needs better timing ...
Post by: WilliamK Govinda on Apr 30, 2011, 06:16 pm
The source-code is MAC compatible, just needs to be compiled with XCode. Sadly I ain't got time to handle that right now, sorry.  :smiley-sad-blue:

Wk
Title: Re: USB to MIDI VST (Source included) But needs better timing ...
Post by: popgoblin on Apr 30, 2011, 06:25 pm
thank you for answering...

..i've got my Beat707 set up via a 1x1 midi-usb wire, so i'm good for now!

Looks promising :)

/m