Guess I’m just saying hi to the community, I look forward to using Juce. Currently use Iplug - which is A LOT simpler than this, So Juce looks confusing as heck to me. After looking at the source last night, I have a couple of questions.
addAndMakeVisible (robSlider = new Slider (T("gain 2")));
robSlider->addListener (this);
robSlider->setRange(0.0,1.0,0.01);
robSlider->setTooltip (T("woohoo! juce baby"));
robSlider->setValue (ownerFilter->getParameter (1), false);
“getParameter (1)” - that “1”, Do you change this for each control that you add, say your first control is going to be 0, your second control is 1. In Iplug we had:
[code]enum EParams
{
finputgain = 0,
fhipass =1,
kNumParams
};
[/code]
Also:
[code]float DemoJuceFilter::getParameter (int index)
{
return (index == 0) ? gain
: 0.0f;
code]
If I wanted to add another control would I do:
[code]
int DemoJuceFilter::getNumParameters()
{
return 2;
}
float DemoJuceFilter::getParameter (int index)
{
return (index == 0) ? gain
: 0.0f;
return (index == 1) ? gain
: 0.0f;
}[/code]
I’m trying to add another control, but since there’s only one control in the example, its hard to tell what needs to be changed to add another control. Can I suggest adding another gain control slider to the example plugin?
I did manage to get another slider on the form, but its acting weird with the first slider, interacting. And I can’t get the plug to load because I tried taking out the keyboard, and I obviously messed something up lol.
I guess I’m just wondering what are the steps to add another control to the example plugin, as I think I’ve missed some, or completely done it wrong. Again, this is just my first couple of Q’s while looking at the code, I am off to search the heck out of the forum and read everything I can. Does that juce tutorial apply to vst plugins as well?
I know i’m gonna get hell, but is it possible to update the example plugin with like a pan control, a vu meter and bypass switch? I hate beeing a noob :twisted:
~Rob.