Added function to create parameter. Set value step amount for most parameters. Enable double click to reset parameter slider.

This commit is contained in:
xenakios
2018-02-01 20:09:12 +02:00
parent db76dfe1ef
commit e8b16839da
2 changed files with 27 additions and 24 deletions

View File

@ -105,7 +105,6 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau
startTimer(2, 1000);
startTimer(3, 200);
m_wavecomponent.startTimer(100);
}
PaulstretchpluginAudioProcessorEditor::~PaulstretchpluginAudioProcessorEditor()
@ -849,6 +848,7 @@ ParameterComponent::ParameterComponent(AudioProcessorParameter * par, bool notif
m_slider->setRange(floatpar->range.start, floatpar->range.end, floatpar->range.interval);
m_slider->setValue(*floatpar, dontSendNotification);
m_slider->addListener(this);
m_slider->setDoubleClickReturnValue(true, floatpar->range.convertFrom0to1(par->getDefaultValue()));
addAndMakeVisible(m_slider.get());
}
AudioParameterInt* intpar = dynamic_cast<AudioParameterInt*>(par);