comparison effects/pvoc_pitchshift/Source/PluginEditor.cpp @ 1:04e171d2a747 tip

JUCE 4 compatible. Standardised paths on Mac: modules '../../juce/modules'; VST folder '~/SDKs/vstsdk2.4' (JUCE default). Replaced deprecated 'getSampleData(channel)'; getToggleState(...); setToggleState(...); setSelectedId(...). Removed unused variables. Ignore JUCE code and build files.
author Brecht De Man <b.deman@qmul.ac.uk>
date Sun, 22 Nov 2015 15:23:40 +0000
parents e32fe563e124
children
comparison
equal deleted inserted replaced
0:e32fe563e124 1:04e171d2a747
146 // This timer periodically checks whether any of the filter's parameters have changed... 146 // This timer periodically checks whether any of the filter's parameters have changed...
147 void PVOCPitchShiftAudioProcessorEditor::timerCallback() 147 void PVOCPitchShiftAudioProcessorEditor::timerCallback()
148 { 148 {
149 PVOCPitchShiftAudioProcessor* ourProcessor = getProcessor(); 149 PVOCPitchShiftAudioProcessor* ourProcessor = getProcessor();
150 150
151 fftSizeComboBox_.setSelectedId(ourProcessor->fftSelectedSize_, false); 151 fftSizeComboBox_.setSelectedId(ourProcessor->fftSelectedSize_, dontSendNotification);
152 hopSizeComboBox_.setSelectedId(ourProcessor->hopSelectedSize_, false); 152 hopSizeComboBox_.setSelectedId(ourProcessor->hopSelectedSize_, dontSendNotification);
153 windowTypeComboBox_.setSelectedId(ourProcessor->windowType_, false); 153 windowTypeComboBox_.setSelectedId(ourProcessor->windowType_, dontSendNotification);
154 pitchShiftComboBox_.setSelectedId(ourProcessor->pitchSelectedShift_, false); // (⊙_⊙) 154 pitchShiftComboBox_.setSelectedId(ourProcessor->pitchSelectedShift_, dontSendNotification); // (⊙_⊙)
155 } 155 }
156 156
157 // This is our Slider::Listener callback, when the user drags a slider. 157 // This is our Slider::Listener callback, when the user drags a slider.
158 void PVOCPitchShiftAudioProcessorEditor::sliderValueChanged (Slider* slider) 158 void PVOCPitchShiftAudioProcessorEditor::sliderValueChanged (Slider* slider)
159 { 159 {