This section describes the mimium libraries.
Standard Libraries #
core.mmm
#
mix(gain,a,b)->float
switch(gate,a,b)->float
Unit Conversions #
midi_to_hz(note:float)->float
hz_to_midi(hz:float)->float
dbtolinear(db:float)->float
linear2db(a:float)->float
math.mmm
#
PI
log10(x:float)->float
log2(x:float)->float
env.mmm
#
adsr(attack,decay,sustain,release,input)->float
filter.mmm
#
onepole(x,ratio)->float
smooth(x)->float
biquad(x,coeffs:(float,float,float,float,float))->float
lowpass(x,fc,q)->float
highpass(x,fc,q)->float
noise.mmm
#
gen_noise(seed)->float
noise()->float
unoise()->`float
noise()
is same as gen_noise(1.0)
. Noise with the same seed returns always same number sequence.
The unoise
macro is a mechanism for automatically allocating noise seeds. Each time you execute unoise!()
, different seeded noise sources like gen_noise(1)
, gen_noise(2)
, etc. are embedded. However, all noise sources will always output the same deterministic uncorrelated noise each time.
If you need to use a noise source with a specific seed, use gen_noise
directly.
osc.mmm
#
phasor(freq)->float
phasor_shift(freq,phase_shift)->float
saw(freq,phase_shift)->float
triangle(freq,phase_shift)->float
sinwave(freq,phase_shift)->float