A very noobie question here…
I went over the examples and tutorials and still have a basic issue which I can’t understand.
Maybe I can get it by an example, with some of your help, please …
I want to build a very simple VST audio plugin.
It should simply multiply the incoming Left channel audio by 0.25 and output it to LeftOutput, as well as, multiply the incoming Right channel audio by 0.5 and output it to RightOutput.
Two channels in, two channels out. No need for sliders or controls.
So, in the Projucer I start an ‘audio plugin’ project and via the IDE (Visual Studio 2017 on Windows) I finally get this on the PluginProcessor.cpp file:
// This is the place where you’d normally do the guts of your plugin’s
** // audio processing…**
** // Make sure to reset the state if your inner loop is processing**
** // the samples and the outer loop is handling the channels.**
** // Alternatively, you can process the samples with the channels**
** // interleaved by keeping the same state.**
** //for (int channel = 0; channel < totalNumInputChannels; ++channel)**
** auto* channelData = buffer.getWritePointer (0);**
** // …do something to the data…**
My question is how to change this code to get the requested output ?
How do I treat Left and Right, in and out in this code?