Expert Sleepers Spectral Conquest v1.0.0 User Manual
Page 20

threshold = threshold ^ 2
if state.param3 > 0 then
for i=0,maxBin,1 do
magnitude = getBinMagnitudeSqr( i )
if magnitude > threshold then
zeroBin( i )
end
end
else
for i=0,maxBin,1 do
magnitude = getBinMagnitudeSqr( i )
if magnitude < threshold then
zeroBin( i )
end
end
end
end
-- add the scripts
addSpectralScript( "Shift", scriptedShift )
addSpectralScript( "Reverse", scriptedReverse )
addSpectralScript( "Low Pass", scriptedBrickWallLPF )
addSpectralScript( "High Pass", scriptedBrickWallHPF )
addSpectralScript( "Band Pass", scriptedBPF )
addSpectralScript( "Gate", scriptedGate )