Index: CLAM/src/Data/BasicProcessing/SpectralPeakArray.cxx =================================================================== --- CLAM/src/Data/BasicProcessing/SpectralPeakArray.cxx (revision 15134) +++ CLAM/src/Data/BasicProcessing/SpectralPeakArray.cxx (working copy) @@ -575,12 +575,12 @@ int origIndex=0,inIndex=0; DataArray& inPeakMagArray = in.GetMagBuffer(); DataArray& inPeakFreqArray = in.GetFreqBuffer(); - DataArray& inPeakPhaseArray = in.GetPhaseBuffer(); + DataArray& inPeakPhaseArray = in.GetPhaseBuffer(); // Why is inPeakMagArray used below, instead of inPeakPhaseArray? IndexArray& inPeakIndexArray = in.GetIndexArray(); DataArray& origPeakMagArray = GetMagBuffer(); DataArray& origPeakFreqArray = GetFreqBuffer(); - DataArray& origPeakPhaseArray = GetPhaseBuffer(); + DataArray& origPeakPhaseArray = GetPhaseBuffer(); // Why is origPeakMagArray used below, instead of origPeakPhaseArray? IndexArray& origPeakIndexArray = GetIndexArray(); DataArray& tmpPeakMagArray = tmp.GetMagBuffer(); Index: CLAM/src/Processing/ArithOps/SpectrumProduct.cxx =================================================================== --- CLAM/src/Processing/ArithOps/SpectrumProduct.cxx (revision 15134) +++ CLAM/src/Processing/ArithOps/SpectrumProduct.cxx (working copy) @@ -103,7 +103,7 @@ bool SpectrumProduct::Do() { const Spectrum& in1 = mInput1.GetData(); - const Spectrum& in2 = mInput2.GetData(); + const Spectrum& in2 = mInput2.GetData(); // Why do variables which are used only by CLAM_DEBUG_ASSERT() generate a compiler warning (unused variable)? Spectrum& out = mOutput.GetData(); if (in1.HasComplexArray()) Index: CLAM/src/Processing/ArithOps/AudioBufferMixer.cxx =================================================================== --- CLAM/src/Processing/ArithOps/AudioBufferMixer.cxx (revision 15134) +++ CLAM/src/Processing/ArithOps/AudioBufferMixer.cxx (working copy) @@ -46,7 +46,8 @@ void AudioBufferMixer::CreatePortsAndControls() { - unsigned portSize = BackendBufferSize(); + //unsigned portSize = BackendBufferSize(); + // is portSize intended to limit the number of ports which can be created? for( int i=0; iSetSize( 1 ); inPort->SetHop( 1 ); mInputPorts.push_back( inPort ); - mInputControls.push_back( new FloatInControl("Gain " + number.str(), this) ); } unsigned int inPortsNumber=mConfig.GetNumberOfInPorts(); @@ -65,10 +65,10 @@ if (useConfigGains) { gainsArray=mConfig.GetDefaultGains(); - unsigned numberofConfiguredGains=gainsArray.Size(); + int numberofConfiguredGains=gainsArray.Size(); gainsArray.Resize(inPortsNumber); gainsArray.SetSize(inPortsNumber); - for (unsigned i=numberofConfiguredGains;i threshold) { Index: CLAM/src/Processing/Transformations/Spectral/SpectralCombDelta.cxx =================================================================== --- CLAM/src/Processing/Transformations/Spectral/SpectralCombDelta.cxx (revision 15134) +++ CLAM/src/Processing/Transformations/Spectral/SpectralCombDelta.cxx (working copy) @@ -43,7 +43,7 @@ out = in; //TODO big cludge for streaming } DataArray& inMag = in.GetMagBuffer(); - DataArray& outMag = out.GetMagBuffer(); + //DataArray& outMag = out.GetMagBuffer(); // Unused variable int spectrumSize = in.GetSize(); mMag.Resize(spectrumSize); Index: CLAM/src/Processing/Transformations/Spectral/3BandCompressor.cxx =================================================================== --- CLAM/src/Processing/Transformations/Spectral/3BandCompressor.cxx (revision 15134) +++ CLAM/src/Processing/Transformations/Spectral/3BandCompressor.cxx (working copy) @@ -55,18 +55,18 @@ TData midThreshold = log2lin(mMidThresholdCtl.GetLastValue()); TData highThreshold = log2lin(mHighThresholdCtl.GetLastValue()); - TData currentThreshold = lowThreshold; - for(int i = 0; ilowThreshold) oMag[i] = lowThreshold; } - for(int i = lowCutoff; imidThreshold) oMag[i] = midThreshold; } - for(int i = highCutoff; ihighThreshold) oMag[i] = highThreshold; Index: CLAM/src/Processing/Transformations/Spectral/SpectralNotch.cxx =================================================================== --- CLAM/src/Processing/Transformations/Spectral/SpectralNotch.cxx (revision 15134) +++ CLAM/src/Processing/Transformations/Spectral/SpectralNotch.cxx (working copy) @@ -29,8 +29,8 @@ { static const char * metadata[] = { "key", "SpectralNotch", - // "category", "Spectral Transformations", - // "description", "SpectralNotch", + "category", "Spectral Transformations", + "description", "SpectralNotch", 0 }; static FactoryRegistrator reg = metadata; @@ -49,7 +49,7 @@ int band = Round(mBandwidthCtl.GetLastValue()*spectralResolution); TData gain = log2lin(mGainCtl.GetLastValue()); int n; - int harmonic = 1; + // int harmonic = 1; // Unused variable. If someone were to implement a notch filter which removes harmonics, then they should either create a seperate processing or implement a contrl which turns harmonic filtering on/off. int leftLimit = centerFreq-band; if(leftLimit<0) leftLimit = 0; int rightLimit = centerFreq+band+1; Index: CLAM/src/Processing/Transformations/Spectral/Deesser.cxx =================================================================== --- CLAM/src/Processing/Transformations/Spectral/Deesser.cxx (revision 15134) +++ CLAM/src/Processing/Transformations/Spectral/Deesser.cxx (working copy) @@ -29,8 +29,8 @@ { static const char * metadata[] = { "key", "Deesser", - // "category", "Spectral Transformations", - // "description", "Deesser", + "category", "Spectral Transformations", + "description", "Deesser", 0 }; static FactoryRegistrator reg = metadata; @@ -58,7 +58,7 @@ TData threshold = log2lin(mThresholdCtl.GetLastValue()); int i; - TData maxMag = 0; + //TData maxMag = 0; for( i = lowCutoff; ithreshold) oMag[i] = threshold; Index: CLAM/src/Processing/Transformations/Spectral/Vocoder.cxx =================================================================== --- CLAM/src/Processing/Transformations/Spectral/Vocoder.cxx (revision 15134) +++ CLAM/src/Processing/Transformations/Spectral/Vocoder.cxx (working copy) @@ -44,7 +44,7 @@ int nBands = mNumBandsCtl.GetLastValue(); int nGainBands = 5; //it is one more than the actual gains - int firstBand = 5; + //int firstBand = 5; // unused variable TData fFirstBand = 100; DataArray gains(4); @@ -61,24 +61,24 @@ mMagBuffer.Resize(spectrumSize); mMagBuffer.SetSize(spectrumSize); - TData bandFactor = pow(TData(spectrumSize),1./nBands); + //TData bandFactor = pow(TData(spectrumSize),1./nBands); // unused variable TData fBandFactor = pow(TData(spectralRange),1./nBands); TData fCurrentBandLimit = fFirstBand; int currentBandLimit = Round(fFirstBand*spectralResolution); int lastBandLimit = 0; - TData fLastBandLimit = 0.; + //TData fLastBandLimit = 0.; // unused variable int freqShift = Round(mFreqShiftCtl.GetLastValue()*spectralResolution); int currentOscBin = int(spectrumSize/nBands) + freqShift; - TData fCurrentOsc = spectralRange/nBands; + //TData fCurrentOsc = spectralRange/nBands; // unused variable int currentGainIndex = 0; TData fCurrentGainBandLimit = fCurrentBandLimit*2; int currentGainBandLimit = Round(fCurrentGainBandLimit*spectralResolution); - TData gainBandFactor = pow(TData(spectrumSize/currentBandLimit),1./nGainBands); + //TData gainBandFactor = pow(TData(spectrumSize/currentBandLimit),1./nGainBands); // unused variable TData fGainBandFactor = pow(TData(spectralRange/fCurrentGainBandLimit),1./nGainBands); TData bandEnergy =0;