comparison effects/vibrato/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
134 { 134 {
135 VibratoAudioProcessor* ourProcessor = getProcessor(); 135 VibratoAudioProcessor* ourProcessor = getProcessor();
136 136
137 sweepWidthSlider_.setValue(ourProcessor->sweepWidth_, dontSendNotification); 137 sweepWidthSlider_.setValue(ourProcessor->sweepWidth_, dontSendNotification);
138 frequencySlider_.setValue(ourProcessor->frequency_, dontSendNotification); 138 frequencySlider_.setValue(ourProcessor->frequency_, dontSendNotification);
139 waveformComboBox_.setSelectedId(ourProcessor->waveform_, false); 139 waveformComboBox_.setSelectedId(ourProcessor->waveform_, dontSendNotification);
140 interpolationComboBox_.setSelectedId(ourProcessor->interpolation_, false); 140 interpolationComboBox_.setSelectedId(ourProcessor->interpolation_, dontSendNotification);
141 141
142 // Update the pitch shift label only when something changes to avoid 142 // Update the pitch shift label only when something changes to avoid
143 // needless calculations 143 // needless calculations
144 if(ourProcessor->sweepWidth_ != oldSweepWidth_ || 144 if(ourProcessor->sweepWidth_ != oldSweepWidth_ ||
145 ourProcessor->frequency_ != oldFrequency_ || 145 ourProcessor->frequency_ != oldFrequency_ ||