This section describes the mimium libraries.
Standard Libraries #
core.mmm
#
mix(gain,a,b)->floatswitch(gate,a,b)->float
Unit Conversions #
midi_to_hz(note:float)->floathz_to_midi(hz:float)->floatdbtolinear(db:float)->floatlinear2db(a:float)->float
math.mmm
#
PIlog10(x:float)->floatlog2(x:float)->float
env.mmm
#
adsr(attack,decay,sustain,release,input)->float
filter.mmm
#
onepole(x,ratio)->floatsmooth(x)->floatbiquad(x,coeffs:(float,float,float,float,float))->floatlowpass(x,fc,q)->floathighpass(x,fc,q)->float
noise.mmm
#
gen_noise(seed)->floatnoise()->floatunoise()->`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)->floatphasor_shift(freq,phase_shift)->floatsaw(freq,phase_shift)->floattriangle(freq,phase_shift)->floatsinwave(freq,phase_shift)->float