这是我的处理代码。如果有人可以告诉我如何将延迟或ADSR过滤器(或两者)添加到它的输出中,那将非常棒。
Minim minim;
import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.ugens.*;
AudioOutput out_1;
Delay myDelay1;
SineWave sine_1;
float freq_1 = 82;
void setup()
{
minim = new Minim(this);
out_1 = minim.getLineOut(Minim.STEREO);
sine_1 = new SineWave(440, 0.5, out_1.sampleRate());
int port = 10;
sine_1.portamento(port);
out_1.addSignal(sine_1);
}
void draw()
{
background(240);
freq_1 = 1169.25;
sine_1.setFreq(freq_1);
}
void stop()
{
out_1.close();
minim.stop();
super.stop();
}
非常感谢!