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();
  }
 public DelayTrigger(AudioContext context, float delay, Bead receiver) {
   super(context, 0, 0);
   sampleDelay = (long) context.msToSamples(delay);
   reset();
   this.receiver = receiver;
 }