I know this is an old question, but before I go nuts trying to figure things all at once, I just want to know if I’m doing things right. I’m using the Plugin example. It compiles a VST DLL and it runs on Orion. Now, I want to load the Wusik Station VST (.dll file) inside it, and play it, without doing anything extra. I’m using the following to load the VST and connect to a graph object, which seems to be working fine.
Now I need to figure out how to play graphPlayer, I guess. In any event, I’m sure that once I rest a bit I can figure it out, but just in case I’m doing something totally stupid and wrong, here’s my current code.
Surly you don’t want to play the graph through the audio system, you want to expose it as your VST’s effect? A graph is an AudioProcessor, so you’d need to connect that directly to your own AudioPluginInstance, so that any calls are passed straight through.
Now I need to handle the plugin state and also some other small things… them I will have a new Wusik Station with the nice TreeView on the Right. Maybe even a global ARP on the side, after I finish this up. With time, I can also replace my current VST loading code for the effects, and use Juce instead. I could keep wrapping the main Wusik Station VST inside it, until I can re-do the whole code with Juce, which may take 2 or 4 months to complete… Eeek… but that would get me MAC and Linux support, not to mention the other plugin formats. :shock:
Just one small problem I’m facing now… I want to load a file and send as a Chunk to the VST, but I can’t make it work. The setChunk from Wusik Station is not even called with the code below.
I still can’t get that to work, do you mind pointing me to the right direction? As I want to add multiple VSTs, and the Graph really helps me out with that task.
I really haven’t time to go through it in detail, but you’re basically writing an AudioPluginInstance that contains an AudioProcessorGraph and which just passes all of its method calls straight through.