andrewm@0: /* andrewm@0: This code accompanies the textbook: andrewm@0: andrewm@0: Digital Audio Effects: Theory, Implementation and Application andrewm@0: Joshua D. Reiss and Andrew P. McPherson andrewm@0: andrewm@0: --- andrewm@0: andrewm@0: Parametric EQ: parametric equaliser adjusting frequency, Q and gain andrewm@0: See textbook Chapter 4: Filter Effects andrewm@0: andrewm@0: Code by Andrew McPherson, Brecht De Man and Joshua Reiss andrewm@0: andrewm@0: --- andrewm@0: andrewm@0: This program is free software: you can redistribute it and/or modify andrewm@0: it under the terms of the GNU General Public License as published by andrewm@0: the Free Software Foundation, either version 3 of the License, or andrewm@0: (at your option) any later version. andrewm@0: andrewm@0: This program is distributed in the hope that it will be useful, andrewm@0: but WITHOUT ANY WARRANTY; without even the implied warranty of andrewm@0: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the andrewm@0: GNU General Public License for more details. andrewm@0: andrewm@0: You should have received a copy of the GNU General Public License andrewm@0: along with this program. If not, see . andrewm@0: */ andrewm@0: andrewm@0: #ifndef __PLUGINEDITOR_H_6E48F605__ andrewm@0: #define __PLUGINEDITOR_H_6E48F605__ andrewm@0: andrewm@0: #include "../JuceLibraryCode/JuceHeader.h" andrewm@0: #include "PluginProcessor.h" andrewm@0: andrewm@0: andrewm@0: //============================================================================== andrewm@0: andrewm@0: class ParametricEQAudioProcessorEditor : public AudioProcessorEditor, andrewm@0: public SliderListener, andrewm@0: public Timer andrewm@0: { andrewm@0: public: andrewm@0: ParametricEQAudioProcessorEditor (ParametricEQAudioProcessor* ownerFilter); andrewm@0: ~ParametricEQAudioProcessorEditor(); andrewm@0: andrewm@0: //============================================================================== andrewm@0: // This is just a standard Juce paint method... andrewm@0: void timerCallback(); andrewm@0: void paint (Graphics& g); andrewm@0: void resized(); andrewm@0: void sliderValueChanged (Slider*); andrewm@0: andrewm@0: private: andrewm@0: void updateBandwidthLabel(); andrewm@0: andrewm@0: Label centreFrequencyLabel_, qLabel_, gainDecibelsLabel_; andrewm@0: Label bandwidthLabel_; andrewm@0: Slider centreFrequencySlider_, qSlider_, gainDecibelsSlider_; andrewm@0: andrewm@0: ScopedPointer resizer_; andrewm@0: ComponentBoundsConstrainer resizeLimits_; andrewm@0: andrewm@0: ParametricEQAudioProcessor* getProcessor() const andrewm@0: { andrewm@0: return static_cast (getAudioProcessor()); andrewm@0: } andrewm@0: }; andrewm@0: andrewm@0: andrewm@0: #endif // __PLUGINEDITOR_H_6E48F605__