getType() {
    return this.oscillator.type;
  }
Returns  current type of oscillator eg. 'sine', 'triangle', 'sawtooth' or 'square'.

 @method  getType
 @for p5.Oscillator
 @returns {String} type of oscillator  eg . 'sine', 'triangle', 'sawtooth' or 'square'.