connect(unit) {
    if (!unit) {
      this.panner.connect(p5sound.input);
    } else if (unit.hasOwnProperty('input')) {
      this.panner.connect(unit.input);
      this.connection = unit.input;
    } else {
      this.panner.connect(unit);
      this.connection = unit;
    }
    if (unit && unit._onNewInput) {
      unit._onNewInput(this);
    }
  }
Connect to a p5.sound / Web Audio object.

 @method  connect
 @for p5.Oscillator
 @param  {Object} unit A p5.sound or Web Audio object