Emits a Pulse With Modulation (PWM) signal to the current pitch pin. Use analog set pitch pin to set the current pitch pin.
pins.analogPitch(440, 300)
pins.analogSetPitchPin("P0")
let frequency1 = 440
let duration = 1000
pins.analogPitch(frequency1, duration)