问题
I'm trying to get a read on the effort level involved in building a barebones virtual instrument host in C++ or C# but I haven't been able to get any hard information. Does anybody know any good starter apps, tutorials, helper libraries for this sort of thing?
If it matters, the goal would be to a) accept incoming MIDI events and b) dispatch them to the virtual instrument. In C++ or C#, if possible.
Thanks!
回答1:
To capture incoming Midi events use the C# Midi Toolkit (on codeproject.com) by Leslie Sanford or my MIDI.NET library.
VST.NET allows you to load and communicate with managed and unmanaged VST (2.4) plugins. You can also create managed VST plugins with VST.NET that can run in unmanaged Hosts.
There is also a simple C++ open source VST host available at http://www.hermannseib.com/english/vsthost.htm (down at the bottom of the page)
Hope it helps.
Marc Jacobi (Author of VST.NET)
回答2:
The VST.NET library appears to be the way to go.
回答3:
PianoRollComposer.cpp at http://jdmcox.com has a simple routine (VSTthread) that sends MIDI data to a VST plug-in and then sends the received WAVE data to an ASIO driver.
来源:https://stackoverflow.com/questions/2380520/hosting-a-vst-dx-instrument-in-c-c