Waveform generators (oscillators), used by fastmath.signal/waveform.
Every ->name constructor takes an options map and returns a function of time t (seconds). The waveforms are periodic in the phase phase + f t (in cycles), also for negative time:
:f - frequency in Hz (default 1.0); a function (fn [t]) is used directly as the phase in cycles (instead of f t), which allows frequency modulation, see fastmath.signal.chirp:phase - phase offset in cycles (default 0.0), number or (fn [t]):amplitude - peak amplitude (default 1.0), number or (fn [t])Shapes at phase 0 (as scipy.signal waveforms with a shifted phase):
->sine - sin(2 pi phase)->square - 1 for the first :duty (default 0.5) part of the cycle, -1 after, as scipy.signal.square(2 pi phase, duty)->saw - 0 rising to 1 at half a cycle, -1 after the jump (:up? false falling), as scipy.signal.sawtooth(2 pi (phase + 1/2))->triangle - 0 rising to 1 at a quarter cycle, as scipy.signal.sawtooth(2 pi (phase + 1/4), 0.5)->analog-* - cheap rational approximations of sine, saw and triangle with rounded shapes->band-limited-* - first :bands (default 5) terms of the Fourier series of square, saw and triangle, without aliasingpolyblep-* - 46 quasi band-limited (PolyBLEP) waves, a port of Tale's poly_blep.jsfx-inc (WTFPL), see below(polyblep-<wave> options) returns an infinite lazy sequence of samples (not a function of time), the sample i is taken at the time i / fs. The jumps, kinks and curvature changes of the naive wave are smoothed with the polynomials blep, blamp and bluh over the two samples around them, which removes most of the aliasing. Options are described in polyblep: :f, :phase, :amplitude, :fs and the extra parameter of some waves: :pw (pulse width), :n (number of steps) or :f2 (follower frequency of hard sync). Waves are silent for the frequency f of fs / 4 and above (faded out from 0.2 fs).
sinn (:n), half, half2 (:pw), full, sinp, alt, camel, camela, camel2, sin2para, arc, circ (the only wave with a state)tri, hyptri, trin (:n), tri2 (:pw), trip (:pw), trap, trap2 (:pw)sqr, lpsqr2, lpsqr3, intlpsqr2, intlpsqr3, bpsqr2, sqrm1, sqr2 (:pw), rect (:pw)saw, ramp, sawp, intsaw, cubsaw, sinsaw, hpsaw6, sawm1, sawn (:n), hwsaw (:pw), logit3stairs, stairs3 (:pw), stairs2 (:pw)hstri, hssqr, hssaw (:f2)Waveform generators (oscillators), used by `fastmath.signal/waveform`. Every `->name` constructor takes an options map and returns a function of time `t` (seconds). The waveforms are periodic in the phase `phase + f t` (in cycles), also for negative time: * `:f` - frequency in Hz (default 1.0); a function `(fn [t])` is used directly as the phase in cycles (instead of `f t`), which allows frequency modulation, see `fastmath.signal.chirp` * `:phase` - phase offset in cycles (default 0.0), number or `(fn [t])` * `:amplitude` - peak amplitude (default 1.0), number or `(fn [t])` Shapes at phase 0 (as `scipy.signal` waveforms with a shifted phase): * [[->sine]] - `sin(2 pi phase)` * [[->square]] - 1 for the first `:duty` (default 0.5) part of the cycle, -1 after, as `scipy.signal.square(2 pi phase, duty)` * [[->saw]] - 0 rising to 1 at half a cycle, -1 after the jump (`:up? false` falling), as `scipy.signal.sawtooth(2 pi (phase + 1/2))` * [[->triangle]] - 0 rising to 1 at a quarter cycle, as `scipy.signal.sawtooth(2 pi (phase + 1/4), 0.5)` * `->analog-*` - cheap rational approximations of sine, saw and triangle with rounded shapes * `->band-limited-*` - first `:bands` (default 5) terms of the Fourier series of square, saw and triangle, without aliasing * `polyblep-*` - 46 quasi band-limited (PolyBLEP) waves, a port of Tale's [`poly_blep.jsfx-inc`](https://github.com/TaleTN/JSFX/blob/main/Effects/Tale/poly_blep.jsfx-inc) (WTFPL), see below ## PolyBLEP waves `(polyblep-<wave> options)` returns an infinite lazy sequence of samples (not a function of time), the sample `i` is taken at the time `i / fs`. The jumps, kinks and curvature changes of the naive wave are smoothed with the polynomials [[blep]], [[blamp]] and [[bluh]] over the two samples around them, which removes most of the aliasing. Options are described in [[polyblep]]: `:f`, `:phase`, `:amplitude`, `:fs` and the extra parameter of some waves: `:pw` (pulse width), `:n` (number of steps) or `:f2` (follower frequency of hard sync). Waves are silent for the frequency `f` of `fs / 4` and above (faded out from `0.2 fs`). * sine: `sinn` (`:n`), `half`, `half2` (`:pw`), `full`, `sinp`, `alt`, `camel`, `camela`, `camel2`, `sin2` * curves: `para`, `arc`, `circ` (the only wave with a state) * triangle and trapezoid: `tri`, `hyptri`, `trin` (`:n`), `tri2` (`:pw`), `trip` (`:pw`), `trap`, `trap2` (`:pw`) * square and rectangle: `sqr`, `lpsqr2`, `lpsqr3`, `intlpsqr2`, `intlpsqr3`, `bpsqr2`, `sqrm1`, `sqr2` (`:pw`), `rect` (`:pw`) * sawtooth: `saw`, `ramp`, `sawp`, `intsaw`, `cubsaw`, `sinsaw`, `hpsaw6`, `sawm1`, `sawn` (`:n`), `hwsaw` (`:pw`), `logit3` * staircase: `stairs`, `stairs3` (`:pw`), `stairs2` (`:pw`) * hard sync: `hstri`, `hssqr`, `hssaw` (`:f2`)
(->analog-saw)(->analog-saw {:keys [f phase amplitude up?]
:or {f 1.0 phase 0.0 amplitude 1.0 up? true}})Rounded approximation of the sawtooth wave (:up? as in ->saw).
Rounded approximation of the sawtooth wave (`:up?` as in [[->saw]]).
(->analog-sine)(->analog-sine {:keys [f phase amplitude] :or {f 1.0 phase 0.0 amplitude 1.0}})Piecewise quadratic approximation of the sine wave.
Piecewise quadratic approximation of the sine wave.
(->analog-triangle)(->analog-triangle {:keys [f phase amplitude]
:or {f 1.0 phase 0.0 amplitude 1.0}})Rounded approximation of the triangle wave.
Rounded approximation of the triangle wave.
(->band-limited-saw)(->band-limited-saw {:keys [f phase amplitude up? bands]
:or {f 1.0 phase 0.0 amplitude 1.0 up? true bands 5}})Sawtooth wave from the first :bands (default 5) harmonics: 2/pi sum (-1)^k sin(2 pi (k+1) phase) / (k+1) (negated for :up? false).
Sawtooth wave from the first `:bands` (default 5) harmonics: `2/pi sum (-1)^k sin(2 pi (k+1) phase) / (k+1)` (negated for `:up? false`).
(->band-limited-square)(->band-limited-square {:keys [f phase amplitude bands]
:or {bands 5 f 1.0 phase 0.0 amplitude 1.0}})Square wave from the first :bands (default 5) odd harmonics: 4/pi sum sin(2 pi (2k+1) phase) / (2k+1).
Square wave from the first `:bands` (default 5) odd harmonics: `4/pi sum sin(2 pi (2k+1) phase) / (2k+1)`.
(->band-limited-triangle)(->band-limited-triangle {:keys [f phase amplitude bands]
:or {f 1.0 phase 0.0 amplitude 1.0 bands 5}})Triangle wave from the first :bands (default 5) odd harmonics: 8/pi^2 sum (-1)^k sin(2 pi (2k+1) phase) / (2k+1)^2.
Triangle wave from the first `:bands` (default 5) odd harmonics: `8/pi^2 sum (-1)^k sin(2 pi (2k+1) phase) / (2k+1)^2`.
(->saw)(->saw {:keys [f phase amplitude up?]
:or {f 1.0 phase 0.0 amplitude 1.0 up? true}})Sawtooth wave: 0 at phase 0, rising (:up? true, default) or falling to the jump at half a cycle.
Sawtooth wave: 0 at phase 0, rising (`:up?` true, default) or falling to the jump at half a cycle.
(->sine)(->sine {:keys [f phase amplitude] :or {f 1.0 phase 0.0 amplitude 1.0}})Sine wave: amplitude sin(2 pi (phase + f t)).
Sine wave: `amplitude sin(2 pi (phase + f t))`.
(->square)(->square {:keys [f phase amplitude duty]
:or {f 1.0 phase 0.0 amplitude 1.0 duty 0.5}})Square wave: amplitude for the first :duty part (0 to 1, default 0.5, number or (fn [t])) of every cycle, -amplitude for the rest.
Square wave: `amplitude` for the first `:duty` part (0 to 1, default 0.5, number or `(fn [t])`) of every cycle, `-amplitude` for the rest.
(->triangle)(->triangle {:keys [f phase amplitude] :or {f 1.0 phase 0.0 amplitude 1.0}})Triangle wave: 0 at phase 0, 1 at a quarter cycle, -1 at three quarters.
Triangle wave: 0 at phase 0, 1 at a quarter cycle, -1 at three quarters.
(blamp t dt)Band-limited ramp residual (PolyBLAMP), the integral of blep.
t is the phase in [0, 1), dt the phase step per sample.
Returns a 3rd order polynomial around a change of slope (of size 1 per unit phase) at the wrap from 1 to 0, 0 otherwise.
Band-limited ramp residual (PolyBLAMP), the integral of [[blep]]. `t` is the phase in [0, 1), `dt` the phase step per sample. Returns a 3rd order polynomial around a change of slope (of size 1 per unit phase) at the wrap from 1 to 0, 0 otherwise.
(blep t dt)Band-limited step residual (PolyBLEP).
t is the phase in [0, 1), dt the phase step per sample (frequency / sample rate).
Returns a 2nd order polynomial in the two samples around the discontinuity (t just after, or just before, the wrap from 1 to 0), 0 otherwise.
Add it to a naive waveform with a jump of height 1 (subtract for a jump down) to remove most of the aliasing.
Band-limited step residual (PolyBLEP). `t` is the phase in [0, 1), `dt` the phase step per sample (frequency / sample rate). Returns a 2nd order polynomial in the two samples around the discontinuity (`t` just after, or just before, the wrap from 1 to 0), 0 otherwise. Add it to a naive waveform with a jump of height 1 (subtract for a jump down) to remove most of the aliasing.
(bluh t dt)Band-limited curve residual, a 4th order polynomial (the integral of blamp, scaled).
t is the phase in [0, 1), dt the phase step per sample.
Returns a polynomial around a change of curvature at the wrap from 1 to 0, 0 otherwise.
Band-limited curve residual, a 4th order polynomial (the integral of [[blamp]], scaled). `t` is the phase in [0, 1), `dt` the phase step per sample. Returns a polynomial around a change of curvature at the wrap from 1 to 0, 0 otherwise.
(polyblep wave param doc fun)Defines polyblep-<wave>, a generator of samples of a PolyBLEP wave.
Arguments:
wave - symbol, the name; the wave is poly_<wave> in Tale's poly_blep.jsfx-incparam - the extra parameter of the wave: nil (none), :state (none, a stateful wave: fun is then a function without arguments returning a new function (t, dt, p) for every generated sequence), :pw (pulse width in [0, 1], default 0.5, number or (fn [t])), :n (number of steps, integer at least 1, default 1) or :f2 (follower frequency in Hz for hard sync, required, number or (fn [t]); the follower / leader ratio is :f2 / :f)doc - short description of the wavefun - function of the phase in [0, 1) and the phase step f / fs (and the extra parameter, when param is set) returning the sample of amplitude 1, with primitive double arguments; polyblep-samples applies the amplitude and the gainThe generated function takes an options map and returns an infinite lazy sequence of samples.
The options (see below) are checked when the function is called, ex-info is thrown for an invalid one.
The wave is multiplied by the amplitude and by the gain of Tale's poly_setdt: 1 for the phase step f / fs up to 0.2, fading to 0 at 0.25 (the wave is silent above).
A negative frequency gives a negative phase step: the wave is then not corrected.
Options:
:f - frequency in Hz (default 1.0), number or (fn [t]) of time in seconds:phase - phase offset in cycles (default 0.0), number or (fn [t]):amplitude - amplitude (default 1.0), number or (fn [t]):fs - sample rate in Hz (default 44100.0), positive; the sample i is taken at the time i / fs:pw, :n, :f2 - the extra parameter, when the wave has oneDefines `polyblep-<wave>`, a generator of samples of a PolyBLEP wave. Arguments: * `wave` - symbol, the name; the wave is `poly_<wave>` in Tale's `poly_blep.jsfx-inc` * `param` - the extra parameter of the wave: `nil` (none), `:state` (none, a stateful wave: `fun` is then a function without arguments returning a new function `(t, dt, p)` for every generated sequence), `:pw` (pulse width in [0, 1], default 0.5, number or `(fn [t])`), `:n` (number of steps, integer at least 1, default 1) or `:f2` (follower frequency in Hz for hard sync, required, number or `(fn [t])`; the follower / leader ratio is `:f2 / :f`) * `doc` - short description of the wave * `fun` - function of the phase in [0, 1) and the phase step `f / fs` (and the extra parameter, when `param` is set) returning the sample of amplitude 1, with primitive `double` arguments; `polyblep-samples` applies the amplitude and the gain The generated function takes an options map and returns an infinite lazy sequence of samples. The options (see below) are checked when the function is called, `ex-info` is thrown for an invalid one. The wave is multiplied by the amplitude and by the gain of Tale's `poly_setdt`: 1 for the phase step `f / fs` up to 0.2, fading to 0 at 0.25 (the wave is silent above). A negative frequency gives a negative phase step: the wave is then not corrected. Options: * `:f` - frequency in Hz (default 1.0), number or `(fn [t])` of time in seconds * `:phase` - phase offset in cycles (default 0.0), number or `(fn [t])` * `:amplitude` - amplitude (default 1.0), number or `(fn [t])` * `:fs` - sample rate in Hz (default 44100.0), positive; the sample `i` is taken at the time `i / fs` * `:pw`, `:n`, `:f2` - the extra parameter, when the wave has one
(polyblep-alt opts__34380__auto__)Alternating sine. Port of poly_alt from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Alternating sine. Port of `poly_alt` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-arc opts__34380__auto__)Cycloid, anti-aliasing is probably not correct. Port of poly_arc from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Cycloid, anti-aliasing is probably not correct. Port of `poly_arc` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-bpsqr2 opts__34380__auto__)Band-pass filtered square approximation. Port of poly_bpsqr2 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Band-pass filtered square approximation. Port of `poly_bpsqr2` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-camel opts__34380__auto__)Camel sine, anti-aliasing doesn't work well at higher frequencies. Port of poly_camel from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Camel sine, anti-aliasing doesn't work well at higher frequencies. Port of `poly_camel` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-camel2 opts__34380__auto__)Bipolar camel sine. Port of poly_camel2 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Bipolar camel sine. Port of `poly_camel2` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-camela opts__34380__auto__)Alternating camel sine. Port of poly_camela from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Alternating camel sine. Port of `poly_camela` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-circ opts__34380__auto__)Circle (approximation): the mix of a sine and a low-pass filtered square, the only wave with a state. Port of poly_circ from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Circle (approximation): the mix of a sine and a low-pass filtered square, the only wave with a state. Port of `poly_circ` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-cubsaw opts__34380__auto__)Cubic sawtooth. Port of poly_cubsaw from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Cubic sawtooth. Port of `poly_cubsaw` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-full opts__34380__auto__)Full-wave rectified sine. Port of poly_full from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Full-wave rectified sine. Port of `poly_full` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-half opts__34380__auto__)Half-wave rectified sine (fixed 0.5 pulse width), anti-aliasing depends on the frequency. Port of poly_half from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Half-wave rectified sine (fixed 0.5 pulse width), anti-aliasing depends on the frequency. Port of `poly_half` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-half2 opts__34380__auto__)Half-wave rectified sine with variable pulse width, anti-aliasing is worse for a pulse width below 1. Port of poly_half2 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :pw, the pulse width in [0, 1] (default 0.5). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Half-wave rectified sine with variable pulse width, anti-aliasing is worse for a pulse width below 1. Port of `poly_half2` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:pw`, the pulse width in [0, 1] (default 0.5). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-hpsaw6 opts__34380__auto__)High-pass filtered sawtooth approximation. Port of poly_hpsaw6 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
High-pass filtered sawtooth approximation. Port of `poly_hpsaw6` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-hssaw opts__34380__auto__)Hard sync sawtooth: the sawtooth of the follower frequency :f2, reset by the leader :f. Port of poly_hssaw from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :f2, the follower frequency in Hz (required), the leader frequency is :f. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Hard sync sawtooth: the sawtooth of the follower frequency `:f2`, reset by the leader `:f`. Port of `poly_hssaw` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:f2`, the follower frequency in Hz (required), the leader frequency is `:f`. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-hssqr opts__34380__auto__)Hard sync square: the square of the follower frequency :f2, reset by the leader :f. Port of poly_hssqr from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :f2, the follower frequency in Hz (required), the leader frequency is :f. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Hard sync square: the square of the follower frequency `:f2`, reset by the leader `:f`. Port of `poly_hssqr` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:f2`, the follower frequency in Hz (required), the leader frequency is `:f`. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-hstri opts__34380__auto__)Hard sync triangle: the triangle of the follower frequency :f2, reset by the leader :f. Port of poly_hstri from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :f2, the follower frequency in Hz (required), the leader frequency is :f. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Hard sync triangle: the triangle of the follower frequency `:f2`, reset by the leader `:f`. Port of `poly_hstri` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:f2`, the follower frequency in Hz (required), the leader frequency is `:f`. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-hwsaw opts__34380__auto__)Half-wave rectified sawtooth with variable pulse width. Port of poly_hwsaw from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :pw, the pulse width in [0, 1] (default 0.5). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Half-wave rectified sawtooth with variable pulse width. Port of `poly_hwsaw` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:pw`, the pulse width in [0, 1] (default 0.5). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-hyptri opts__34380__auto__)Hyper triangular wave. Port of poly_hyptri from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Hyper triangular wave. Port of `poly_hyptri` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-intlpsqr2 opts__34380__auto__)Integrated low-pass filtered square of order 2. Port of poly_intlpsqr2 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Integrated low-pass filtered square of order 2. Port of `poly_intlpsqr2` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-intlpsqr3 opts__34380__auto__)Integrated low-pass filtered square of order 3. Port of poly_intlpsqr3 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Integrated low-pass filtered square of order 3. Port of `poly_intlpsqr3` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-intsaw opts__34380__auto__)Integrated sawtooth. Port of poly_intsaw from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Integrated sawtooth. Port of `poly_intsaw` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-logit3 opts__34380__auto__)Logit approximation. Port of poly_logit3 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Logit approximation. Port of `poly_logit3` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-lpsqr2 opts__34380__auto__)Low-pass filtered square approximation of order 2. Port of poly_lpsqr2 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Low-pass filtered square approximation of order 2. Port of `poly_lpsqr2` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-lpsqr3 opts__34380__auto__)Low-pass filtered square approximation of order 3. Port of poly_lpsqr3 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Low-pass filtered square approximation of order 3. Port of `poly_lpsqr3` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-para opts__34380__auto__)Parabola. Port of poly_para from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Parabola. Port of `poly_para` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-ramp opts__34380__auto__)Ramp. Port of poly_ramp from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Ramp. Port of `poly_ramp` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-rect opts__34380__auto__)Rectangle (pulse) with variable pulse width. Port of poly_rect from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :pw, the pulse width in [0, 1] (default 0.5). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Rectangle (pulse) with variable pulse width. Port of `poly_rect` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:pw`, the pulse width in [0, 1] (default 0.5). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-saw opts__34380__auto__)Sawtooth. Port of poly_saw from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Sawtooth. Port of `poly_saw` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-sawm1 opts__34380__auto__)Sawtooth minus the fundamental. Port of poly_sawm1 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Sawtooth minus the fundamental. Port of `poly_sawm1` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-sawn opts__34380__auto__)Stepped sawtooth. Port of poly_sawn from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :n, the number of steps (integer, at least 1, default 1). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Stepped sawtooth. Port of `poly_sawn` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:n`, the number of steps (integer, at least 1, default 1). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-sawp opts__34380__auto__)Saw pulse. Port of poly_sawp from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Saw pulse. Port of `poly_sawp` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-sin2 opts__34380__auto__)Bipolar squared sine. Port of poly_sin2 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Bipolar squared sine. Port of `poly_sin2` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-sinn opts__34380__auto__)Stepped sine. Port of poly_sinn from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :n, the number of steps (integer, at least 1, default 1). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Stepped sine. Port of `poly_sinn` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:n`, the number of steps (integer, at least 1, default 1). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-sinp opts__34380__auto__)Pulse sine (fixed 0.5 pulse width). Port of poly_sinp from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Pulse sine (fixed 0.5 pulse width). Port of `poly_sinp` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-sinsaw opts__34380__auto__)Sine sawtooth. Port of poly_sinsaw from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Sine sawtooth. Port of `poly_sinsaw` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-sqr opts__34380__auto__)Square. Port of poly_sqr from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Square. Port of `poly_sqr` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-sqr2 opts__34380__auto__)Modified square with variable pulse width. Port of poly_sqr2 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :pw, the pulse width in [0, 1] (default 0.5). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Modified square with variable pulse width. Port of `poly_sqr2` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:pw`, the pulse width in [0, 1] (default 0.5). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-sqrm1 opts__34380__auto__)Square wave minus the fundamental. Port of poly_sqrm1 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Square wave minus the fundamental. Port of `poly_sqrm1` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-stairs opts__34380__auto__)Staircase (fixed 0.5 pulse width). Port of poly_stairs from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Staircase (fixed 0.5 pulse width). Port of `poly_stairs` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-stairs2 opts__34380__auto__)Uneven staircase with variable pulse width. Port of poly_stairs2 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :pw, the pulse width in [0, 1] (default 0.5). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Uneven staircase with variable pulse width. Port of `poly_stairs2` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:pw`, the pulse width in [0, 1] (default 0.5). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-stairs3 opts__34380__auto__)Staircase with variable pulse width. Port of poly_stairs3 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :pw, the pulse width in [0, 1] (default 0.5). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Staircase with variable pulse width. Port of `poly_stairs3` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:pw`, the pulse width in [0, 1] (default 0.5). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-trap opts__34380__auto__)Trapezoid (fixed 0.5 pulse width). Port of poly_trap from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Trapezoid (fixed 0.5 pulse width). Port of `poly_trap` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-trap2 opts__34380__auto__)Trapezoid with variable pulse width. Port of poly_trap2 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :pw, the pulse width in [0, 1] (default 0.5). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Trapezoid with variable pulse width. Port of `poly_trap2` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:pw`, the pulse width in [0, 1] (default 0.5). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-tri opts__34380__auto__)Triangle. Port of poly_tri from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Triangle. Port of `poly_tri` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-tri2 opts__34380__auto__)Modified triangle with variable pulse width. Port of poly_tri2 from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :pw, the pulse width in [0, 1] (default 0.5). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Modified triangle with variable pulse width. Port of `poly_tri2` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:pw`, the pulse width in [0, 1] (default 0.5). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-trin opts__34380__auto__)Stepped triangle. Port of poly_trin from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :n, the number of steps (integer, at least 1, default 1). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Stepped triangle. Port of `poly_trin` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:n`, the number of steps (integer, at least 1, default 1). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
(polyblep-trip opts__34380__auto__)Triangular pulse with variable pulse width. Port of poly_trip from Tale's poly_blep.jsfx-inc (PolyBLEP: polynomial band-limited step).
Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see polyblep for the options. Uses :pw, the pulse width in [0, 1] (default 0.5). Silent for a phase step f / fs of 0.25 and above, faded out above 0.2.
Triangular pulse with variable pulse width. Port of `poly_trip` from Tale's `poly_blep.jsfx-inc` (PolyBLEP: polynomial band-limited step). Returns an infinite lazy sequence of samples of the wave band-limited around its jumps, see [[polyblep]] for the options. Uses `:pw`, the pulse width in [0, 1] (default 0.5). Silent for a phase step `f / fs` of 0.25 and above, faded out above 0.2.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |