The simple way to use waveforms with ixfx is with Modulation.wave . It returns a function which in turn provides numeric values.
You’ll need to call the returned function whenever you need the current value of the wave. This could be as part of a regular update loop (see a little further for an example).
The shape value can be ‘sine’, ‘sine-bipolar’, ‘saw’, ‘square’ or ‘arc’.
wave can take different options for the timing: hertz, millis, ticks or secs.