Supex.Ugen.Saw (supex v0.2.0)

View Source

Module for the SuperCollider Saw wave generator, see https://doc.sccode.org/Classes/Saw.html

Defines a %Saw{} struct with

freq: frequency in Hertz,

mul output will be multiplied by this value,

add this value will be added to the output.

Summary

Functions

Builds the SuperCollider command from the %Saw{} struct.

Functions

command(saw)

(since 0.2.0)
@spec command(struct()) :: binary()

Builds the SuperCollider command from the %Saw{} struct.

example

iex> %Saw{freq: 440, mul: 0.1, add: 0, lfo: false} "Saw.ar(freq: 440, mul: 0.1, add: 0);"

iex> %Saw{freq: 440, mul: 0.1, add: 0, lfo: true} "Saw.kr(freq: 440, mul: 0.1, add: 0);"