function setup() {
  createCanvas(720, 400);
  textAlign(CENTER, CENTER);
  strokeWeight(3);
  // Create synth voice
  synth = new p5.PolySynth();
}
Virtual Piano: Example for event-driven sound playback.

This example uses the p5.PolySynth to produce instantaneously,
driven by user events.