added junk to test the svf
This commit is contained in:
@@ -71,7 +71,7 @@ void LampshadeAudioProcessor::prepareToPlay (double sampleRate, int samplesPerBl
|
||||
{
|
||||
myYin = Yin(sampleRate, samplesPerBlock);
|
||||
aFilter = (filter_svf_t*)malloc(sizeof(filter_svf_t));
|
||||
svf_init(aFilter, 0, sampleRate);
|
||||
svf_init(aFilter, 2, sampleRate);
|
||||
}
|
||||
|
||||
void LampshadeAudioProcessor::releaseResources()
|
||||
@@ -114,6 +114,7 @@ void LampshadeAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffe
|
||||
if(pitch > 0) { myPitch = pitch; }
|
||||
|
||||
svf_set_freq(aFilter, myPitch);
|
||||
svf_set_coeff(aFilter, __listener );
|
||||
|
||||
float* channel1Data = buffer.getWritePointer (0);
|
||||
float* channel2Data = buffer.getWritePointer (1);
|
||||
|
2
wrDsp
2
wrDsp
Submodule wrDsp updated: c828003a95...f6bf8162e2
Reference in New Issue
Block a user