Scriptnode Synth Pulse Width Modulation
-
Is this possible does anyone know? Can't see any options for it...
-
The default waveform generator has a pulse width modulation, but in scriptnode you can use Faust for this:
import("stdfaust.lib"); freq = hslider("freq", 20, 2000, 0.1); pw = hslider("PulseWidth", 0.0, 0.0, 1.0, 0.01); gate = button("gate") : si.smoo; osc= os.pulsetrain(freq, pw) * gate; process = osc, osc;
-
@Christoph-Hart Ok thanks, I haven't gone down the Faust rabbit-hole yet!
With the Waveform Generator the Pulse Width only works (makes a difference) with the Square and Triangle shapes. It makes FM Modulation a little unexciting
Is that on purpose?