andrewm@0
|
1 /*
|
andrewm@0
|
2 ==============================================================================
|
andrewm@0
|
3
|
andrewm@0
|
4 This is an automatically generated GUI class created by the Introjucer!
|
andrewm@0
|
5
|
andrewm@0
|
6 Be careful when adding custom code to these files, as only the code within
|
andrewm@0
|
7 the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
|
andrewm@0
|
8 and re-saved.
|
andrewm@0
|
9
|
andrewm@0
|
10 Created with Introjucer version: 3.1.0
|
andrewm@0
|
11
|
andrewm@0
|
12 ------------------------------------------------------------------------------
|
andrewm@0
|
13
|
andrewm@0
|
14 The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions"
|
andrewm@0
|
15 Copyright 2004-13 by Raw Material Software Ltd.
|
andrewm@0
|
16
|
andrewm@0
|
17 ==============================================================================
|
andrewm@0
|
18 */
|
andrewm@0
|
19
|
andrewm@0
|
20 //[Headers] You can add your own extra header files here...
|
andrewm@0
|
21 #include "PluginProcessor.h"
|
andrewm@0
|
22 //[/Headers]
|
andrewm@0
|
23
|
andrewm@0
|
24 #include "PluginEditor.h"
|
andrewm@0
|
25
|
andrewm@0
|
26
|
andrewm@0
|
27 //[MiscUserDefs] You can add your own user definitions and misc code here...
|
andrewm@0
|
28
|
andrewm@0
|
29 //LookAndFeelCustom* AutoWahAudioProcessorEditor::customLookAndFeel = NULL;
|
andrewm@0
|
30
|
andrewm@0
|
31 //[/MiscUserDefs]
|
andrewm@0
|
32
|
andrewm@0
|
33 //==============================================================================
|
andrewm@0
|
34 AutoWahAudioProcessorEditor::AutoWahAudioProcessorEditor (AutoWahAudioProcessor* ownerFilter)
|
andrewm@0
|
35 : AudioProcessorEditor (ownerFilter)
|
andrewm@0
|
36 {
|
andrewm@0
|
37 addAndMakeVisible (baseFrequencySlider_ = new Slider ("new slider"));
|
andrewm@0
|
38 baseFrequencySlider_->setRange (200, 1000, 0.1);
|
andrewm@0
|
39 baseFrequencySlider_->setSliderStyle (Slider::RotaryHorizontalVerticalDrag);
|
andrewm@0
|
40 baseFrequencySlider_->setTextBoxStyle (Slider::TextBoxBelow, false, 60, 20);
|
andrewm@0
|
41 baseFrequencySlider_->setColour (Slider::rotarySliderFillColourId, Colour (0x7fffffff));
|
andrewm@0
|
42 baseFrequencySlider_->setColour (Slider::textBoxTextColourId, Colours::white);
|
andrewm@0
|
43 baseFrequencySlider_->setColour (Slider::textBoxBackgroundColourId, Colour (0x00000000));
|
andrewm@0
|
44 baseFrequencySlider_->setColour (Slider::textBoxOutlineColourId, Colour (0x00808080));
|
andrewm@0
|
45 baseFrequencySlider_->addListener (this);
|
andrewm@0
|
46
|
andrewm@0
|
47 addAndMakeVisible (qSlider_ = new Slider ("new slider"));
|
andrewm@0
|
48 qSlider_->setRange (2, 20, 0.1);
|
andrewm@0
|
49 qSlider_->setSliderStyle (Slider::RotaryHorizontalVerticalDrag);
|
andrewm@0
|
50 qSlider_->setTextBoxStyle (Slider::TextBoxBelow, false, 60, 20);
|
andrewm@0
|
51 qSlider_->setColour (Slider::rotarySliderFillColourId, Colour (0x7fffffff));
|
andrewm@0
|
52 qSlider_->setColour (Slider::textBoxTextColourId, Colours::white);
|
andrewm@0
|
53 qSlider_->setColour (Slider::textBoxBackgroundColourId, Colour (0x00000000));
|
andrewm@0
|
54 qSlider_->setColour (Slider::textBoxOutlineColourId, Colour (0x00808080));
|
andrewm@0
|
55 qSlider_->addListener (this);
|
andrewm@0
|
56
|
andrewm@0
|
57 addAndMakeVisible (lfoFrequencySlider_ = new Slider ("new slider"));
|
andrewm@0
|
58 lfoFrequencySlider_->setRange (0.2, 20, 0.1);
|
andrewm@0
|
59 lfoFrequencySlider_->setSliderStyle (Slider::RotaryHorizontalVerticalDrag);
|
andrewm@0
|
60 lfoFrequencySlider_->setTextBoxStyle (Slider::TextBoxBelow, false, 60, 20);
|
andrewm@0
|
61 lfoFrequencySlider_->setColour (Slider::rotarySliderFillColourId, Colour (0x7fffffff));
|
andrewm@0
|
62 lfoFrequencySlider_->setColour (Slider::textBoxTextColourId, Colours::white);
|
andrewm@0
|
63 lfoFrequencySlider_->setColour (Slider::textBoxBackgroundColourId, Colour (0x00000000));
|
andrewm@0
|
64 lfoFrequencySlider_->setColour (Slider::textBoxOutlineColourId, Colour (0x00808080));
|
andrewm@0
|
65 lfoFrequencySlider_->addListener (this);
|
andrewm@0
|
66
|
andrewm@0
|
67 addAndMakeVisible (lfoWidthSlider_ = new Slider ("new slider"));
|
andrewm@0
|
68 lfoWidthSlider_->setRange (0, 2000, 0.1);
|
andrewm@0
|
69 lfoWidthSlider_->setSliderStyle (Slider::RotaryHorizontalVerticalDrag);
|
andrewm@0
|
70 lfoWidthSlider_->setTextBoxStyle (Slider::TextBoxBelow, false, 60, 20);
|
andrewm@0
|
71 lfoWidthSlider_->setColour (Slider::rotarySliderFillColourId, Colour (0x7fffffff));
|
andrewm@0
|
72 lfoWidthSlider_->setColour (Slider::textBoxTextColourId, Colours::white);
|
andrewm@0
|
73 lfoWidthSlider_->setColour (Slider::textBoxBackgroundColourId, Colour (0x00000000));
|
andrewm@0
|
74 lfoWidthSlider_->setColour (Slider::textBoxOutlineColourId, Colour (0x00808080));
|
andrewm@0
|
75 lfoWidthSlider_->addListener (this);
|
andrewm@0
|
76
|
andrewm@0
|
77 addAndMakeVisible (envelopeWidthSlider_ = new Slider ("new slider"));
|
andrewm@0
|
78 envelopeWidthSlider_->setRange (0, 4000, 0.1);
|
andrewm@0
|
79 envelopeWidthSlider_->setSliderStyle (Slider::RotaryHorizontalVerticalDrag);
|
andrewm@0
|
80 envelopeWidthSlider_->setTextBoxStyle (Slider::TextBoxBelow, false, 60, 20);
|
andrewm@0
|
81 envelopeWidthSlider_->setColour (Slider::rotarySliderFillColourId, Colour (0x7fffffff));
|
andrewm@0
|
82 envelopeWidthSlider_->setColour (Slider::textBoxTextColourId, Colours::white);
|
andrewm@0
|
83 envelopeWidthSlider_->setColour (Slider::textBoxBackgroundColourId, Colour (0x00000000));
|
andrewm@0
|
84 envelopeWidthSlider_->setColour (Slider::textBoxOutlineColourId, Colour (0x00808080));
|
andrewm@0
|
85 envelopeWidthSlider_->addListener (this);
|
andrewm@0
|
86
|
andrewm@0
|
87 addAndMakeVisible (envelopeAttackSlider_ = new Slider ("new slider"));
|
andrewm@0
|
88 envelopeAttackSlider_->setRange (0, 0.1, 0.0001);
|
andrewm@0
|
89 envelopeAttackSlider_->setSliderStyle (Slider::RotaryHorizontalVerticalDrag);
|
andrewm@0
|
90 envelopeAttackSlider_->setTextBoxStyle (Slider::TextBoxBelow, false, 60, 20);
|
andrewm@0
|
91 envelopeAttackSlider_->setColour (Slider::rotarySliderFillColourId, Colour (0x7fffffff));
|
andrewm@0
|
92 envelopeAttackSlider_->setColour (Slider::textBoxTextColourId, Colours::white);
|
andrewm@0
|
93 envelopeAttackSlider_->setColour (Slider::textBoxBackgroundColourId, Colour (0x00000000));
|
andrewm@0
|
94 envelopeAttackSlider_->setColour (Slider::textBoxOutlineColourId, Colour (0x00808080));
|
andrewm@0
|
95 envelopeAttackSlider_->addListener (this);
|
andrewm@0
|
96 envelopeAttackSlider_->setSkewFactor (0.02);
|
andrewm@0
|
97
|
andrewm@0
|
98 addAndMakeVisible (envelopeDecaySlider_ = new Slider ("new slider"));
|
andrewm@0
|
99 envelopeDecaySlider_->setRange (0, 2, 0.001);
|
andrewm@0
|
100 envelopeDecaySlider_->setSliderStyle (Slider::RotaryHorizontalVerticalDrag);
|
andrewm@0
|
101 envelopeDecaySlider_->setTextBoxStyle (Slider::TextBoxBelow, false, 60, 20);
|
andrewm@0
|
102 envelopeDecaySlider_->setColour (Slider::rotarySliderFillColourId, Colour (0x7fffffff));
|
andrewm@0
|
103 envelopeDecaySlider_->setColour (Slider::textBoxTextColourId, Colours::white);
|
andrewm@0
|
104 envelopeDecaySlider_->setColour (Slider::textBoxBackgroundColourId, Colour (0x00000000));
|
andrewm@0
|
105 envelopeDecaySlider_->setColour (Slider::textBoxOutlineColourId, Colour (0x00808080));
|
andrewm@0
|
106 envelopeDecaySlider_->addListener (this);
|
andrewm@0
|
107 envelopeDecaySlider_->setSkewFactor (0.4);
|
andrewm@0
|
108
|
andrewm@0
|
109
|
andrewm@0
|
110 //[UserPreSize]
|
andrewm@0
|
111 addAndMakeVisible(resizer_ = new ResizableCornerComponent (this, &resizeLimits_));
|
andrewm@0
|
112 resizeLimits_.setSizeLimits(550, 200, 550, 200);
|
andrewm@0
|
113 //[/UserPreSize]
|
andrewm@0
|
114
|
andrewm@0
|
115 setSize (354, 380);
|
andrewm@0
|
116
|
andrewm@0
|
117
|
andrewm@0
|
118 //[Constructor] You can add your own custom stuff here..
|
andrewm@0
|
119 //AutoWahAudioProcessor* ourProcessor = getProcessor(); // UNUSED (include when necessary)
|
andrewm@0
|
120
|
andrewm@0
|
121 UpdateInterfaceValues();
|
andrewm@0
|
122
|
andrewm@0
|
123 // set our component's initial size to be the last one that was stored in the filter's settings
|
andrewm@0
|
124 setSize(ownerFilter->lastUIWidth_,
|
andrewm@0
|
125 ownerFilter->lastUIHeight_);
|
andrewm@0
|
126
|
andrewm@0
|
127 //************************************ SET LOOKANDFEEL **********************************
|
andrewm@0
|
128 // if( customLookAndFeel == NULL )
|
andrewm@0
|
129 // {
|
andrewm@0
|
130 // customLookAndFeel = new LookAndFeelCustom();
|
andrewm@0
|
131 // LookAndFeel::setDefaultLookAndFeel (/*&*/customLookAndFeel);
|
andrewm@0
|
132 // }
|
andrewm@0
|
133
|
andrewm@0
|
134 //***************************************************************************************
|
andrewm@0
|
135
|
andrewm@0
|
136
|
andrewm@0
|
137 startTimer(50);
|
andrewm@0
|
138
|
andrewm@0
|
139 //[/Constructor]
|
andrewm@0
|
140 }
|
andrewm@0
|
141
|
andrewm@0
|
142 AutoWahAudioProcessorEditor::~AutoWahAudioProcessorEditor()
|
andrewm@0
|
143 {
|
andrewm@0
|
144 //[Destructor_pre]. You can add your own custom destruction code here..
|
andrewm@0
|
145 //[/Destructor_pre]
|
andrewm@0
|
146
|
andrewm@0
|
147 baseFrequencySlider_ = nullptr;
|
andrewm@0
|
148 qSlider_ = nullptr;
|
andrewm@0
|
149 lfoFrequencySlider_ = nullptr;
|
andrewm@0
|
150 lfoWidthSlider_ = nullptr;
|
andrewm@0
|
151 envelopeWidthSlider_ = nullptr;
|
andrewm@0
|
152 envelopeAttackSlider_ = nullptr;
|
andrewm@0
|
153 envelopeDecaySlider_ = nullptr;
|
andrewm@0
|
154
|
andrewm@0
|
155
|
andrewm@0
|
156 //[Destructor]. You can add your own custom destruction code here..
|
andrewm@0
|
157 //[/Destructor]
|
andrewm@0
|
158 }
|
andrewm@0
|
159
|
andrewm@0
|
160 //==============================================================================
|
andrewm@0
|
161 void AutoWahAudioProcessorEditor::paint (Graphics& g)
|
andrewm@0
|
162 {
|
andrewm@0
|
163 //[UserPrePaint] Add your own custom painting code here..
|
andrewm@0
|
164 //[/UserPrePaint]
|
andrewm@0
|
165
|
andrewm@0
|
166 g.fillAll (Colour (0xffa7998c));
|
andrewm@0
|
167
|
andrewm@0
|
168 g.setColour (Colour (0xff9e8365));
|
andrewm@0
|
169 g.fillRoundedRectangle (11.0f, 12.0f, 333.0f, 94.0f, 10.000f);
|
andrewm@0
|
170
|
andrewm@0
|
171 g.setColour (Colour (0xff9e8365));
|
andrewm@0
|
172 g.fillRoundedRectangle (11.0f, 115.0f, 333.0f, 94.0f, 10.000f);
|
andrewm@0
|
173
|
andrewm@0
|
174 g.setColour (Colour (0xff9e8365));
|
andrewm@0
|
175 g.fillRoundedRectangle (11.0f, 217.0f, 333.0f, 152.0f, 10.000f);
|
andrewm@0
|
176
|
andrewm@0
|
177 g.setColour (Colour (0xff992b13));
|
andrewm@0
|
178 g.setFont (Font (15.00f, Font::plain));
|
andrewm@0
|
179 g.drawText (TRANS("Q"),
|
andrewm@0
|
180 190, 32, 72, 30,
|
andrewm@0
|
181 Justification::centred, true);
|
andrewm@0
|
182
|
andrewm@0
|
183 g.setColour (Colour (0xff992b13));
|
andrewm@0
|
184 g.setFont (Font (15.00f, Font::plain));
|
andrewm@0
|
185 g.drawText (TRANS("Depth"),
|
andrewm@0
|
186 190, 138, 72, 30,
|
andrewm@0
|
187 Justification::centred, true);
|
andrewm@0
|
188
|
andrewm@0
|
189 g.setColour (Colour (0xff992b13));
|
andrewm@0
|
190 g.setFont (Font (15.00f, Font::plain));
|
andrewm@0
|
191 g.drawText (TRANS("Attack"),
|
andrewm@0
|
192 190, 233, 72, 30,
|
andrewm@0
|
193 Justification::centred, true);
|
andrewm@0
|
194
|
andrewm@0
|
195 g.setColour (Colour (0xff992b13));
|
andrewm@0
|
196 g.setFont (Font (15.00f, Font::plain));
|
andrewm@0
|
197 g.drawText (TRANS("Release"),
|
andrewm@0
|
198 192, 304, 72, 30,
|
andrewm@0
|
199 Justification::centred, true);
|
andrewm@0
|
200
|
andrewm@0
|
201 g.setColour (Colour (0xff992b13));
|
andrewm@0
|
202 g.setFont (Font (15.00f, Font::plain));
|
andrewm@0
|
203 g.drawText (TRANS("Frequency"),
|
andrewm@0
|
204 12, 32, 72, 30,
|
andrewm@0
|
205 Justification::centred, true);
|
andrewm@0
|
206
|
andrewm@0
|
207 g.setColour (Colour (0xff992b13));
|
andrewm@0
|
208 g.setFont (Font (15.00f, Font::plain));
|
andrewm@0
|
209 g.drawText (TRANS("Frequency"),
|
andrewm@0
|
210 3, 138, 89, 30,
|
andrewm@0
|
211 Justification::centred, true);
|
andrewm@0
|
212
|
andrewm@0
|
213 g.setColour (Colour (0xff992b13));
|
andrewm@0
|
214 g.setFont (Font (15.00f, Font::plain));
|
andrewm@0
|
215 g.drawText (TRANS("Depth"),
|
andrewm@0
|
216 0, 233, 95, 30,
|
andrewm@0
|
217 Justification::centred, true);
|
andrewm@0
|
218
|
andrewm@0
|
219 g.setColour (Colour (0xff992b13));
|
andrewm@0
|
220 g.setFont (Font (28.00f, Font::bold));
|
andrewm@0
|
221 g.drawText (TRANS("AutoWah"),
|
andrewm@0
|
222 2, -2, 111, 28,
|
andrewm@0
|
223 Justification::centred, true);
|
andrewm@0
|
224
|
andrewm@0
|
225 g.setColour (Colour (0xff992b13));
|
andrewm@0
|
226 g.setFont (Font (24.00f, Font::plain));
|
andrewm@0
|
227 g.drawText (TRANS("LFO"),
|
andrewm@0
|
228 1, 176, 69, 34,
|
andrewm@0
|
229 Justification::centred, true);
|
andrewm@0
|
230
|
andrewm@0
|
231 g.setColour (Colour (0xff992b13));
|
andrewm@0
|
232 g.setFont (Font (24.00f, Font::plain));
|
andrewm@0
|
233 g.drawText (TRANS("ENVELOPE"),
|
andrewm@0
|
234 10, 334, 112, 34,
|
andrewm@0
|
235 Justification::centred, true);
|
andrewm@0
|
236
|
andrewm@0
|
237 //[UserPaint] Add your own custom painting code here..
|
andrewm@0
|
238 //[/UserPaint]
|
andrewm@0
|
239 }
|
andrewm@0
|
240
|
andrewm@0
|
241 void AutoWahAudioProcessorEditor::resized()
|
andrewm@0
|
242 {
|
andrewm@0
|
243 baseFrequencySlider_->setBounds (86, 20, 80, 80);
|
andrewm@0
|
244 qSlider_->setBounds (261, 20, 80, 80);
|
andrewm@0
|
245 lfoFrequencySlider_->setBounds (86, 126, 80, 80);
|
andrewm@0
|
246 lfoWidthSlider_->setBounds (261, 126, 80, 80);
|
andrewm@0
|
247 envelopeWidthSlider_->setBounds (86, 223, 80, 80);
|
andrewm@0
|
248 envelopeAttackSlider_->setBounds (269, 223, 66, 66);
|
andrewm@0
|
249 envelopeDecaySlider_->setBounds (270, 299, 66, 66);
|
andrewm@0
|
250 //[UserResized] Add your own custom resize handling here..
|
andrewm@0
|
251 getProcessor()->lastUIWidth_ = getWidth();
|
andrewm@0
|
252 getProcessor()->lastUIHeight_ = getHeight();
|
andrewm@0
|
253 //[/UserResized]
|
andrewm@0
|
254 }
|
andrewm@0
|
255
|
andrewm@0
|
256 void AutoWahAudioProcessorEditor::sliderValueChanged (Slider* sliderThatWasMoved)
|
andrewm@0
|
257 {
|
andrewm@0
|
258 //[UsersliderValueChanged_Pre]
|
andrewm@0
|
259 AutoWahAudioProcessor* ourProcessor = getProcessor();
|
andrewm@0
|
260 //[/UsersliderValueChanged_Pre]
|
andrewm@0
|
261
|
andrewm@0
|
262 if (sliderThatWasMoved == baseFrequencySlider_)
|
andrewm@0
|
263 {
|
andrewm@0
|
264 //[UserSliderCode_baseFrequencySlider_] -- add your slider handling code here..
|
andrewm@0
|
265 ourProcessor->setParameterNotifyingHost (AutoWahAudioProcessor::kBaseFrequencyParam,
|
andrewm@0
|
266 (float)baseFrequencySlider_->getValue());
|
andrewm@0
|
267 //[/UserSliderCode_baseFrequencySlider_]
|
andrewm@0
|
268 }
|
andrewm@0
|
269 else if (sliderThatWasMoved == qSlider_)
|
andrewm@0
|
270 {
|
andrewm@0
|
271 //[UserSliderCode_qSlider_] -- add your slider handling code here..
|
andrewm@0
|
272 ourProcessor->setParameterNotifyingHost (AutoWahAudioProcessor::kQParam,
|
andrewm@0
|
273 (float)qSlider_->getValue());
|
andrewm@0
|
274 //[/UserSliderCode_qSlider_]
|
andrewm@0
|
275 }
|
andrewm@0
|
276 else if (sliderThatWasMoved == lfoFrequencySlider_)
|
andrewm@0
|
277 {
|
andrewm@0
|
278 //[UserSliderCode_lfoFrequencySlider_] -- add your slider handling code here..
|
andrewm@0
|
279 ourProcessor->setParameterNotifyingHost (AutoWahAudioProcessor::kLFOFrequencyParam,
|
andrewm@0
|
280 (float)lfoFrequencySlider_->getValue());
|
andrewm@0
|
281 //[/UserSliderCode_lfoFrequencySlider_]
|
andrewm@0
|
282 }
|
andrewm@0
|
283 else if (sliderThatWasMoved == lfoWidthSlider_)
|
andrewm@0
|
284 {
|
andrewm@0
|
285 //[UserSliderCode_lfoWidthSlider_] -- add your slider handling code here..
|
andrewm@0
|
286 ourProcessor->setParameterNotifyingHost (AutoWahAudioProcessor::kLFOWidthParam,
|
andrewm@0
|
287 (float)lfoWidthSlider_->getValue());
|
andrewm@0
|
288 //[/UserSliderCode_lfoWidthSlider_]
|
andrewm@0
|
289 }
|
andrewm@0
|
290 else if (sliderThatWasMoved == envelopeWidthSlider_)
|
andrewm@0
|
291 {
|
andrewm@0
|
292 //[UserSliderCode_envelopeWidthSlider_] -- add your slider handling code here..
|
andrewm@0
|
293 ourProcessor->setParameterNotifyingHost (AutoWahAudioProcessor::kEnvelopeWidthParam,
|
andrewm@0
|
294 (float)envelopeWidthSlider_->getValue());
|
andrewm@0
|
295 //[/UserSliderCode_envelopeWidthSlider_]
|
andrewm@0
|
296 }
|
andrewm@0
|
297 else if (sliderThatWasMoved == envelopeAttackSlider_)
|
andrewm@0
|
298 {
|
andrewm@0
|
299 //[UserSliderCode_envelopeAttackSlider_] -- add your slider handling code here..
|
andrewm@0
|
300 ourProcessor->setParameterNotifyingHost (AutoWahAudioProcessor::kEnvelopeAttackParam,
|
andrewm@0
|
301 (float)envelopeAttackSlider_->getValue());
|
andrewm@0
|
302 //[/UserSliderCode_envelopeAttackSlider_]
|
andrewm@0
|
303 }
|
andrewm@0
|
304 else if (sliderThatWasMoved == envelopeDecaySlider_)
|
andrewm@0
|
305 {
|
andrewm@0
|
306 //[UserSliderCode_envelopeDecaySlider_] -- add your slider handling code here..
|
andrewm@0
|
307 ourProcessor->setParameterNotifyingHost (AutoWahAudioProcessor::kEnvelopeDecayParam,
|
andrewm@0
|
308 (float)envelopeDecaySlider_->getValue());
|
andrewm@0
|
309 //[/UserSliderCode_envelopeDecaySlider_]
|
andrewm@0
|
310 }
|
andrewm@0
|
311
|
andrewm@0
|
312 //[UsersliderValueChanged_Post]
|
andrewm@0
|
313 //[/UsersliderValueChanged_Post]
|
andrewm@0
|
314 }
|
andrewm@0
|
315
|
andrewm@0
|
316
|
andrewm@0
|
317
|
andrewm@0
|
318 //[MiscUserCode] You can add your own definitions of your custom methods or any other code here...
|
andrewm@0
|
319 void AutoWahAudioProcessorEditor::UpdateInterfaceValues()
|
andrewm@0
|
320 {
|
andrewm@0
|
321 AutoWahAudioProcessor* ourProcessor = getProcessor();
|
andrewm@0
|
322
|
andrewm@0
|
323 // Update Sliders
|
andrewm@0
|
324 baseFrequencySlider_ ->setValue(ourProcessor->baseFrequency_, dontSendNotification);
|
andrewm@0
|
325 qSlider_ ->setValue(ourProcessor->q_, dontSendNotification);
|
andrewm@0
|
326 lfoFrequencySlider_ ->setValue(ourProcessor->lfoFrequency_);
|
andrewm@0
|
327 lfoWidthSlider_ ->setValue(ourProcessor->lfoWidth_);
|
andrewm@0
|
328 envelopeWidthSlider_ ->setValue(ourProcessor->envelopeWidth_);
|
andrewm@0
|
329 envelopeAttackSlider_ ->setValue(ourProcessor->envelopeAttack_);
|
andrewm@0
|
330 envelopeDecaySlider_ ->setValue(ourProcessor->envelopeDecay_);
|
andrewm@0
|
331
|
andrewm@0
|
332 }
|
andrewm@0
|
333
|
andrewm@0
|
334 // This timer periodically checks whether any of the filter's parameters have changed...
|
andrewm@0
|
335 void AutoWahAudioProcessorEditor::timerCallback()
|
andrewm@0
|
336 {
|
andrewm@0
|
337 // AutoWahAudioProcessor* ourProcessor = getProcessor();
|
andrewm@0
|
338 }
|
andrewm@0
|
339
|
andrewm@0
|
340 //[/MiscUserCode]
|
andrewm@0
|
341
|
andrewm@0
|
342
|
andrewm@0
|
343 //==============================================================================
|
andrewm@0
|
344 #if 0
|
andrewm@0
|
345 /* -- Introjucer information section --
|
andrewm@0
|
346
|
andrewm@0
|
347 This is where the Introjucer stores the metadata that describe this GUI layout, so
|
andrewm@0
|
348 make changes in here at your peril!
|
andrewm@0
|
349
|
andrewm@0
|
350 BEGIN_JUCER_METADATA
|
andrewm@0
|
351
|
andrewm@0
|
352 <JUCER_COMPONENT documentType="Component" className="AutoWahAudioProcessorEditor"
|
andrewm@0
|
353 componentName="" parentClasses="public AudioProcessorEditor, public Timer"
|
andrewm@0
|
354 constructorParams="AutoWahAudioProcessor* ownerFilter" variableInitialisers="AudioProcessorEditor (ownerFilter)"
|
andrewm@0
|
355 snapPixels="8" snapActive="0" snapShown="1" overlayOpacity="0.330"
|
andrewm@0
|
356 fixedSize="1" initialWidth="354" initialHeight="380">
|
andrewm@0
|
357 <BACKGROUND backgroundColour="ffa7998c">
|
andrewm@0
|
358 <ROUNDRECT pos="11 12 333 94" cornerSize="10" fill="solid: ff9e8365" hasStroke="0"/>
|
andrewm@0
|
359 <ROUNDRECT pos="11 115 333 94" cornerSize="10" fill="solid: ff9e8365" hasStroke="0"/>
|
andrewm@0
|
360 <ROUNDRECT pos="11 217 333 152" cornerSize="10" fill="solid: ff9e8365" hasStroke="0"/>
|
andrewm@0
|
361 <TEXT pos="190 32 72 30" fill="solid: ff992b13" hasStroke="0" text="Q"
|
andrewm@0
|
362 fontname="Default font" fontsize="15" bold="0" italic="0" justification="36"/>
|
andrewm@0
|
363 <TEXT pos="190 138 72 30" fill="solid: ff992b13" hasStroke="0" text="Depth"
|
andrewm@0
|
364 fontname="Default font" fontsize="15" bold="0" italic="0" justification="36"/>
|
andrewm@0
|
365 <TEXT pos="190 233 72 30" fill="solid: ff992b13" hasStroke="0" text="Attack"
|
andrewm@0
|
366 fontname="Default font" fontsize="15" bold="0" italic="0" justification="36"/>
|
andrewm@0
|
367 <TEXT pos="192 304 72 30" fill="solid: ff992b13" hasStroke="0" text="Release"
|
andrewm@0
|
368 fontname="Default font" fontsize="15" bold="0" italic="0" justification="36"/>
|
andrewm@0
|
369 <TEXT pos="12 32 72 30" fill="solid: ff992b13" hasStroke="0" text="Frequency"
|
andrewm@0
|
370 fontname="Default font" fontsize="15" bold="0" italic="0" justification="36"/>
|
andrewm@0
|
371 <TEXT pos="3 138 89 30" fill="solid: ff992b13" hasStroke="0" text="Frequency"
|
andrewm@0
|
372 fontname="Default font" fontsize="15" bold="0" italic="0" justification="36"/>
|
andrewm@0
|
373 <TEXT pos="0 233 95 30" fill="solid: ff992b13" hasStroke="0" text="Depth"
|
andrewm@0
|
374 fontname="Default font" fontsize="15" bold="0" italic="0" justification="36"/>
|
andrewm@0
|
375 <TEXT pos="2 -2 111 28" fill="solid: ff992b13" hasStroke="0" text="AutoWah"
|
andrewm@0
|
376 fontname="Default font" fontsize="28" bold="1" italic="0" justification="36"/>
|
andrewm@0
|
377 <TEXT pos="1 176 69 34" fill="solid: ff992b13" hasStroke="0" text="LFO"
|
andrewm@0
|
378 fontname="Default font" fontsize="24" bold="0" italic="0" justification="36"/>
|
andrewm@0
|
379 <TEXT pos="10 334 112 34" fill="solid: ff992b13" hasStroke="0" text="ENVELOPE"
|
andrewm@0
|
380 fontname="Default font" fontsize="24" bold="0" italic="0" justification="36"/>
|
andrewm@0
|
381 </BACKGROUND>
|
andrewm@0
|
382 <SLIDER name="new slider" id="b7cd5ae6d0a3bfc6" memberName="baseFrequencySlider_"
|
andrewm@0
|
383 virtualName="" explicitFocusOrder="0" pos="86 20 80 80" rotarysliderfill="7fffffff"
|
andrewm@0
|
384 textboxtext="ffffffff" textboxbkgd="0" textboxoutline="808080"
|
andrewm@0
|
385 min="200" max="1000" int="0.10000000000000000555" style="RotaryHorizontalVerticalDrag"
|
andrewm@0
|
386 textBoxPos="TextBoxBelow" textBoxEditable="1" textBoxWidth="60"
|
andrewm@0
|
387 textBoxHeight="20" skewFactor="1"/>
|
andrewm@0
|
388 <SLIDER name="new slider" id="d914eb36766034b1" memberName="qSlider_"
|
andrewm@0
|
389 virtualName="" explicitFocusOrder="0" pos="261 20 80 80" rotarysliderfill="7fffffff"
|
andrewm@0
|
390 textboxtext="ffffffff" textboxbkgd="0" textboxoutline="808080"
|
andrewm@0
|
391 min="2" max="20" int="0.10000000000000000555" style="RotaryHorizontalVerticalDrag"
|
andrewm@0
|
392 textBoxPos="TextBoxBelow" textBoxEditable="1" textBoxWidth="60"
|
andrewm@0
|
393 textBoxHeight="20" skewFactor="1"/>
|
andrewm@0
|
394 <SLIDER name="new slider" id="d914eb36766034b2" memberName="lfoFrequencySlider_"
|
andrewm@0
|
395 virtualName="" explicitFocusOrder="0" pos="86 126 80 80" rotarysliderfill="7fffffff"
|
andrewm@0
|
396 textboxtext="ffffffff" textboxbkgd="0" textboxoutline="808080"
|
andrewm@0
|
397 min="0.2000000000000000111" max="20" int="0.10000000000000000555"
|
andrewm@0
|
398 style="RotaryHorizontalVerticalDrag" textBoxPos="TextBoxBelow"
|
andrewm@0
|
399 textBoxEditable="1" textBoxWidth="60" textBoxHeight="20" skewFactor="1"/>
|
andrewm@0
|
400 <SLIDER name="new slider" id="d914eb36766034b3" memberName="lfoWidthSlider_"
|
andrewm@0
|
401 virtualName="" explicitFocusOrder="0" pos="261 126 80 80" rotarysliderfill="7fffffff"
|
andrewm@0
|
402 textboxtext="ffffffff" textboxbkgd="0" textboxoutline="808080"
|
andrewm@0
|
403 min="0" max="2000" int="0.10000000000000000555" style="RotaryHorizontalVerticalDrag"
|
andrewm@0
|
404 textBoxPos="TextBoxBelow" textBoxEditable="1" textBoxWidth="60"
|
andrewm@0
|
405 textBoxHeight="20" skewFactor="1"/>
|
andrewm@0
|
406 <SLIDER name="new slider" id="d914eb36766034b4" memberName="envelopeWidthSlider_"
|
andrewm@0
|
407 virtualName="" explicitFocusOrder="0" pos="86 223 80 80" rotarysliderfill="7fffffff"
|
andrewm@0
|
408 textboxtext="ffffffff" textboxbkgd="0" textboxoutline="808080"
|
andrewm@0
|
409 min="0" max="4000" int="0.10000000000000000555" style="RotaryHorizontalVerticalDrag"
|
andrewm@0
|
410 textBoxPos="TextBoxBelow" textBoxEditable="1" textBoxWidth="60"
|
andrewm@0
|
411 textBoxHeight="20" skewFactor="1"/>
|
andrewm@0
|
412 <SLIDER name="new slider" id="d914eb36766034b5" memberName="envelopeAttackSlider_"
|
andrewm@0
|
413 virtualName="" explicitFocusOrder="0" pos="269 223 66 66" rotarysliderfill="7fffffff"
|
andrewm@0
|
414 textboxtext="ffffffff" textboxbkgd="0" textboxoutline="808080"
|
andrewm@0
|
415 min="0" max="0.10000000000000000555" int="0.00010000000000000000479"
|
andrewm@0
|
416 style="RotaryHorizontalVerticalDrag" textBoxPos="TextBoxBelow"
|
andrewm@0
|
417 textBoxEditable="1" textBoxWidth="60" textBoxHeight="20" skewFactor="0.020000000000000000416"/>
|
andrewm@0
|
418 <SLIDER name="new slider" id="d914eb36766034b6" memberName="envelopeDecaySlider_"
|
andrewm@0
|
419 virtualName="" explicitFocusOrder="0" pos="270 299 66 66" rotarysliderfill="7fffffff"
|
andrewm@0
|
420 textboxtext="ffffffff" textboxbkgd="0" textboxoutline="808080"
|
andrewm@0
|
421 min="0" max="2" int="0.0010000000000000000208" style="RotaryHorizontalVerticalDrag"
|
andrewm@0
|
422 textBoxPos="TextBoxBelow" textBoxEditable="1" textBoxWidth="60"
|
andrewm@0
|
423 textBoxHeight="20" skewFactor="0.4000000000000000222"/>
|
andrewm@0
|
424 </JUCER_COMPONENT>
|
andrewm@0
|
425
|
andrewm@0
|
426 END_JUCER_METADATA
|
andrewm@0
|
427 */
|
andrewm@0
|
428 #endif
|
andrewm@0
|
429
|
andrewm@0
|
430
|
andrewm@0
|
431 //[EndFile] You can add extra defines here...
|
andrewm@0
|
432 //[/EndFile]
|