comparison effects/phaser/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 // Filters are stored with all channel 0 filters first, then all channel 1 filters, etc. 279 // Filters are stored with all channel 0 filters first, then all channel 1 filters, etc.
280 280
281 for(int channel = 0; channel < numInputChannels; ++channel) 281 for(int channel = 0; channel < numInputChannels; ++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 285
286 ph = lfoPhase_; 286 ph = lfoPhase_;
287 sc = sampleCount_; 287 sc = sampleCount_;
288 288
289 // For stereo phasing, keep the channels 90 degrees out of phase with each other 289 // For stereo phasing, keep the channels 90 degrees out of phase with each other