Yes, that seems to work. I ran this:
use_synth :pulse
play :e, pulse_width: 0.5, release: 1
sleep 1
s = play :e, pulse_width: 0.5, release: 1
control s, pulse_width: 0.99, slide: 1
sleep 1
s = play :e, pulse_width: 0.01, release: 1
control s, pulse_width: 0.5, slide: 1
and you can hear the timbre changing in the second two. I can’t attach a wav file here so here’s a spectrogram:
