comparison effects/autowah/Source/PluginProcessor.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
279 // the coefficients as we go along. Each channel is processed identically in this effect. 279 // the coefficients as we go along. Each channel is processed identically in this effect.
280 280
281 for(channel = 0; channel < jmin(numInputChannels, numWahFilters_); ++channel) 281 for(channel = 0; channel < jmin(numInputChannels, numWahFilters_); ++channel)
282 { 282 {
283 // channelData is an array of length numSamples which contains the audio for one channel 283 // channelData is an array of length numSamples which contains the audio for one channel
284 float* channelData = buffer.getSampleData(channel); 284 float* channelData = buffer.getWritePointer(channel);
285 ph = lfoPhase_; 285 ph = lfoPhase_;
286 286
287 for (int sample = 0; sample < numSamples; ++sample) 287 for (int sample = 0; sample < numSamples; ++sample)
288 { 288 {
289 const float in = channelData[sample]; 289 const float in = channelData[sample];