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.
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...