예제 #1
0
  public static void main(String[] args) {
    AudioContext context = new AudioContext(1024);
    Gain gain = new Gain(context, 2);

    CrazySoundReactor csr = new CrazySoundReactor(context);
    gain.addInput(csr);
    gain.start();
    context.setRoot(gain);
    csr.start();
    context.start();
  }
예제 #2
0
 public DelayTrigger(AudioContext context, float delay, Bead receiver) {
   super(context, 0, 0);
   sampleDelay = (long) context.msToSamples(delay);
   reset();
   this.receiver = receiver;
 }