Module el

Module el 

Source

Traits§

IntoNodeList
Helper accepted by the variadic math fold helpers.

Functions§

abs
Absolute value helper. Expects exactly 1 child.
accum
el.accum(xn, reset)
add
Addition helper. Expects one or more children.
adsr
el.adsr(a, d, s, r, g)
allpass
Allpass filter. props should carry mode metadata. Expects 3 children: cutoff, resonance/Q, and input signal.
and
Logical and helper. Expects exactly 2 children.
asinh
Inverse hyperbolic sine helper. Expects exactly 1 child.
bandpass
Bandpass filter. props should carry mode metadata. Expects 3 children: cutoff, resonance/Q, and input signal.
biquad
Direct-form biquad helper. Expects 6 children: b0, b1, b2, a1, a2, x.
blepsaw
Band-limited polyBLEP saw oscillator. Expects 1 child: frequency or rate.
blepsquare
Band-limited polyBLEP square oscillator. Expects 1 child: frequency or rate.
bleptriangle
Band-limited polyBLEP triangle oscillator. Expects 1 child: frequency or rate.
capture
Capture node. props should carry capture metadata. Expects 2 children: the capture gate and the input signal.
ceil
Ceiling helper. Expects exactly 1 child.
compress
Compressor. Expects 6 children: attack in ms, release in ms, threshold, ratio, sidechain, and input.
const
Alias for the upstream const helper.
const_
Constant signal node with the Rust-friendly helper name (const is a protected keyword in rust)
const_with_key
Constant signal node with an author-supplied key.
constant
Constant signal node.
convolve
Convolution node. props should carry impulse-response metadata. Expects 1 child: the source signal.
cos
Cosine helper. Expects exactly 1 child.
counter
el.counter(g)
custom
Creates a custom node kind with explicit props and children.
cycle
Band-limited cycle oscillator helper. Expects 1 child: frequency or rate.
db2gain
Decibels to gain. Expects 1 child: a decibel value.
dcblock
DC blocking filter. Expects 1 child: the input signal.
delay
Multi-tap delay. props should carry delay buffer metadata such as size. Expects 3 children: read, write, and feedback/control.
df11
Direct form 1 helper. Expects 4 children: b0, b1, a1, and input signal.
div
Division helper. Expects one or more children.
env
el.env(atkPole, relPole, x)
eq
Equality helper. Expects exactly 2 children.
exp
Exponential helper. Expects exactly 1 child.
fft
FFT analyzer node. props should carry analyzer metadata. Expects 1 child: the signal to analyze.
floor
Floor helper. Expects exactly 1 child.
gain2db
Gain to decibels. Expects 1 child: a linear gain value.
ge
Greater-than helper. Expects exactly 2 children.
geq
Greater-than-or-equal helper. Expects exactly 2 children.
hann
Hann window helper. Expects 1 child: the phase or normalized position.
highpass
Highpass filter. props should carry mode metadata. Expects 3 children: cutoff, resonance/Q, and input signal.
highshelf
High shelf filter. props should carry mode metadata. Expects 4 children: cutoff, resonance/Q, gain in dB, and input signal.
identity
Alias for the upstream in helper.
in
Rust-friendly alias for in.
latch
el.latch(t, x)
le
Less-than helper. Expects exactly 2 children.
leq
Less-than-or-equal helper. Expects exactly 2 children.
ln
Natural logarithm helper. Expects exactly 1 child.
log
Base-10 logarithm helper. Expects exactly 1 child.
log2
Base-2 logarithm helper. Expects exactly 1 child.
lowpass
Lowpass filter. props should carry mode metadata. Expects 3 children: cutoff, resonance/Q, and input signal.
lowshelf
Low shelf filter. props should carry mode metadata. Expects 4 children: cutoff, resonance/Q, gain in dB, and input signal.
max
Maximum helper. Expects exactly 2 children.
maxhold
Peak-hold helper. props typically carries hold time metadata. Expects 2 children: input signal and hold/reset control.
meter
Meter / monitor node. props should carry the meter name metadata. Expects 1 child: the signal to observe.
metro
el.metro(props)
min
Minimum helper. Expects exactly 2 children.
mm1p
One-pole modulation helper. props should carry mode metadata. Expects 2 children: cutoff and input signal.
mod
Modulo helper. Expects exactly 2 children.
ms2samps
Milliseconds to samples. Expects 1 child: a time value in milliseconds.
mul
Multiplication helper. Expects one or more children.
noise
White noise helper. Optional props are forwarded unchanged.
notch
Notch filter. props should carry mode metadata. Expects 3 children: cutoff, resonance/Q, and input signal.
once
One-shot helper. props typically carries an arm flag. Expects 1 child: the signal to pass once when armed.
or
Logical or helper. Expects exactly 2 children.
peak
Peak EQ filter. props should carry mode metadata. Expects 4 children: cutoff, resonance/Q, gain in dB, and input signal.
phasor
el.phasor(rate)
pink
Pinking filter. Expects 1 child: the source signal.
pinknoise
Pink noise helper. Optional props are forwarded unchanged.
pole
el.pole(p, x)
pow
Power helper. Expects exactly 2 children.
prewarp
Prewarp helper. Expects 1 child.
rand
el.rand([props])
round
Round helper. Expects exactly 1 child.
sample
Loads a sample from the virtual file system and triggers its playback on the rising edge of an incoming pulse train. Expects a props arg and then two children: first the pulse train to trigger playback, and second a signal which continuously directs the sample’s playback rate.
sampleseq
Sample sequence player. props should carry sample metadata such as path. Expects 1 child: the playback trigger or time signal.
sampleseq2
Sample sequence player variant. props should carry sample metadata such as path. Expects 1 child: the playback trigger or time signal.
saw
Saw oscillator helper. Expects 1 child: frequency or rate.
scope
sdelay
Sample-accurate delay. props should carry buffer metadata such as size. Expects 1 child: the signal to delay.
select
Linear select helper. Expects 3 children: gate, a, and b.
seq
Discrete sequence node. props should carry seq data and optional loop metadata. Expects 2 children: trigger and reset.
seq2
Discrete sequence node with the seq2 variant semantics. props should carry seq data and optional loop metadata. Expects 2 children: trigger and reset.
sin
Sine helper. Expects exactly 1 child.
skcompress
Soft-knee compressor. Expects 7 children: attack in ms, release in ms, threshold, ratio, knee width, sidechain, and input.
sm
20ms smoothing helper. Expects 1 child: the input signal.
smooth
One-pole smoothing. Expects 2 children: pole coefficient and input signal.
snapshot
Snapshot node. props should carry snapshot metadata. Expects 2 children: the source signal and trigger/reset.
sparseq
Sample-accurate discrete sequence node. props should carry sparse seq entries and optional loop metadata. Expects 2 children: trigger and reset.
sparseq2
Sparse sequence helper variant. props should carry sparse seq entries. Expects 1 child: the time or trigger signal.
sphasor
Alias for the upstream sphasor helper.
sqrt
Square root helper. Expects exactly 1 child.
square
Square oscillator helper. Expects 1 child: frequency or rate.
sr
Sample-rate signal. Expects no children.
sub
Subtraction helper. Expects one or more children.
svf
State-variable filter. props should carry mode metadata. Expects 3 children: cutoff, resonance/Q, and input signal.
svfshelf
State-variable shelving filter. props should carry mode metadata. Expects 4 children: cutoff, resonance/Q, gain, and input signal.
syncphasor
Synchronous phase accumulator. Expects 2 children: rate and sync/reset.
table
Table lookup node. props should carry table metadata such as path. Expects 1 child: the lookup coordinate.
tan
Tangent helper. Expects exactly 1 child.
tanh
Hyperbolic tangent helper. Expects exactly 1 child.
tap_in
Named input tap. props should carry the tap name metadata.
tap_out
Named output tap. props should carry the tap name metadata. Expects 1 child: the signal to export.
tau2pole
Time constant to pole. Expects 1 child: a time constant in seconds.
time
Current time signal in seconds. Expects no children.
train
Pulse train helper. Expects 1 child: frequency or rate.
triangle
Triangle oscillator helper. Expects 1 child: frequency or rate.
z
Unit delay / z^-1 helper. Expects 1 child.
zero
Simple one-zero filter. Expects 3 children: b0, b1, and input signal.