Mercurial > hg > audio_effects_textbook_code
comparison effects/wahwah/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 |
---|---|
237 // Go through each channel of audio that's passed in | 237 // Go through each channel of audio that's passed in |
238 | 238 |
239 for (channel = 0; channel < jmin(numInputChannels, numWahFilters_); ++channel) | 239 for (channel = 0; channel < jmin(numInputChannels, numWahFilters_); ++channel) |
240 { | 240 { |
241 // channelData is an array of length numSamples which contains the audio for one channel | 241 // channelData is an array of length numSamples which contains the audio for one channel |
242 float* channelData = buffer.getSampleData(channel); | 242 float* channelData = buffer.getWritePointer(channel); |
243 | 243 |
244 // Run the samples through the IIR filter whose coefficients define the parametric | 244 // Run the samples through the IIR filter whose coefficients define the parametric |
245 // equaliser. See juce_IIRFilter.cpp for the implementation. | 245 // equaliser. See juce_IIRFilter.cpp for the implementation. |
246 wahFilters_[channel]->processSamples(channelData, numSamples); | 246 wahFilters_[channel]->processSamples(channelData, numSamples); |
247 } | 247 } |