mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Recall some button states in DSP module plugin demo
This commit is contained in:
parent
771025cccf
commit
16c942fd54
1 changed files with 12 additions and 9 deletions
|
|
@ -30,15 +30,16 @@
|
|||
|
||||
//==============================================================================
|
||||
DspModulePluginDemoAudioProcessorEditor::DspModulePluginDemoAudioProcessorEditor (DspModulePluginDemoAudioProcessor& p)
|
||||
: AudioProcessorEditor (&p), processor (p),
|
||||
inputVolumeLabel ({ }, processor.inputVolumeParam->name),
|
||||
outputVolumeLabel ({ }, processor.outputVolumeParam->name),
|
||||
lowPassFilterFreqLabel ({ }, processor.lowPassFilterFreqParam->name),
|
||||
highPassFilterFreqLabel ({ }, processor.highPassFilterFreqParam->name),
|
||||
stereoLabel({}, processor.stereoParam->name),
|
||||
slopeLabel ({ }, processor.slopeParam->name),
|
||||
waveshaperLabel({ }, processor.waveshaperParam->name),
|
||||
cabinetTypeLabel({ }, processor.cabinetTypeParam->name)
|
||||
: AudioProcessorEditor (&p),
|
||||
processor (p),
|
||||
inputVolumeLabel ({}, processor.inputVolumeParam->name),
|
||||
outputVolumeLabel ({}, processor.outputVolumeParam->name),
|
||||
lowPassFilterFreqLabel ({}, processor.lowPassFilterFreqParam->name),
|
||||
highPassFilterFreqLabel ({}, processor.highPassFilterFreqParam->name),
|
||||
stereoLabel ({}, processor.stereoParam->name),
|
||||
slopeLabel ({}, processor.slopeParam->name),
|
||||
waveshaperLabel ({}, processor.waveshaperParam->name),
|
||||
cabinetTypeLabel ({}, processor.cabinetTypeParam->name)
|
||||
{
|
||||
//==============================================================================
|
||||
addAndMakeVisible (inputVolumeSlider = new ParameterSlider (*processor.inputVolumeParam));
|
||||
|
|
@ -122,10 +123,12 @@ DspModulePluginDemoAudioProcessorEditor::DspModulePluginDemoAudioProcessorEditor
|
|||
addAndMakeVisible (cabinetSimButton);
|
||||
cabinetSimButton.addListener (this);
|
||||
cabinetSimButton.setButtonText (processor.cabinetSimParam->name);
|
||||
cabinetSimButton.setToggleState (processor.cabinetSimParam->get(), NotificationType::dontSendNotification);
|
||||
|
||||
addAndMakeVisible (oversamplingButton);
|
||||
oversamplingButton.addListener (this);
|
||||
oversamplingButton.setButtonText (processor.oversamplingParam->name);
|
||||
oversamplingButton.setToggleState (processor.oversamplingParam->get(), NotificationType::dontSendNotification);
|
||||
|
||||
//==============================================================================
|
||||
setSize (600, 400);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue