import org.jvaptools.scripteffect.*; org.jvaptools.VstPluginImpl plugin; float y1,y2; public void init(org.jvaptools.VstPluginImpl owner) {this.plugin=owner; this.plugin.setParameter("a","1.0"); this.plugin.setParameter("b","0.04"); y1=0.0f; y2=0.0f; } public void close() {} public void onMidiEvent(javax.sound.midi.MidiMessage message, long timeStamp) {} public void processReplacing(vstmain plugin,float a,float b,float c,float d,float[][] inputs, float[][] outputs, int sampleFrames) { float[] out1 = outputs[0]; float[] out2 = outputs[1]; float[] in1 = inputs[0]; float[] in2 = inputs[1]; for (int i = 0; i < sampleFrames; i++) { out1[i] = in1[i]*a*b+y1*(1-b); out2[i] = in2[i]*a*b+y2*(1-b); y1=out1[i]; y2=out2[i]; } }