ilusm.dev

snd

Audio processing, synthesis, playback, recording, effects.

Load with: use snd

Quick example

use snd

result = sndne("value")
prn(result)

Functions

Audio context

sndne(sr)

Creates a new instance. Takes sr.

sndcl(s)

Closes or clears. Takes s.

Load/Save

sndld(path)

Performs the operation. Takes path.

sndsv(aud, path, fmt)

Performs the operation. Takes aud, path, fmt.

Creation

sndnb(sr, ch, len)

Performs the operation. Takes sr, ch, len.

snds1(sr, ch, dur)

Performs the operation. Takes sr, ch, dur.

Oscillators

sndsn(sr, fr, dur, amp)

Performs the operation. Takes sr, fr, dur, amp.

sndsq(sr, fr, dur, amp)

Performs the operation. Takes sr, fr, dur, amp.

sndsw(sr, fr, dur, amp)

Performs the operation. Takes sr, fr, dur, amp.

sndtr(sr, fr, dur, amp)

Performs the operation. Takes sr, fr, dur, amp.

sndni(sr, dur, amp)

Performs the operation. Takes sr, dur, amp.

Playback

sndpl(aud)

Performs the operation. Takes aud.

sndlp(aud)

Performs the operation. Takes aud.

sndst()

Sets a value or starts a process.

sndps()

Performs the operation.

sndr1()

Performs the operation.

sndvl(v)

Validates. Takes v.

sndp0()

Performs the operation.

Recording

sndr0(sr, ch)

Performs the operation. Takes sr, ch.

sndrc()

Performs the operation.

Effects

sndgn(aud, db)

Performs the operation. Takes aud, db.

sndfd(aud, t)

Performs the operation. Takes aud, t.

sndf0(aud, t)

Performs the operation. Takes aud, t.

sndrv(aud, rt, mx)

Performs the operation. Takes aud, rt, mx.

snddl(aud, t, fb)

Deletes an item. Takes aud, t, fb.

sndcm(aud, thr, rt)

Performs the operation. Takes aud, thr, rt.

sndfl(aud, ty, cf, q)

Performs the operation. Takes aud, ty, cf, q.

Mixing

sndmx(auds, wts)

Performs the operation. Takes auds, wts.

sndct(auds)

Performs the operation. Takes auds.

sndsl(aud, st, ed)

Performs the operation. Takes aud, st, ed.

sndpd(aud, pre, post)

Performs the operation. Takes aud, pre, post.

Analysis

sndrm(aud)

Removes an item. Takes aud.

sndpk(aud)

Performs the operation. Takes aud.

sndzr(aud)

Performs the operation. Takes aud.

sndff(aud)

Performs the operation. Takes aud.

sndmf(aud, n)

Performs the operation. Takes aud, n.

Resample

sndrs(aud, nsr)

Resets. Takes aud, nsr.

snds2(aud, rate)

Performs the operation. Takes aud, rate.

sndpc(aud, shift)

Performs the operation. Takes aud, shift.

Format conversion

sndtw(aud)

Performs the operation. Takes aud.

sndtm(aud, kbps)

Performs the operation. Takes aud, kbps.

sndtg(aud, q)

Performs the operation. Takes aud, q.

MIDI

sndm1(d)

Performs the operation. Takes d.

sndm2(d)

Performs the operation. Takes d.

sndmd(out, nt, vel, ch)

Performs the operation. Takes out, nt, vel, ch.

sndm0(out, nt, ch)

Performs the operation. Takes out, nt, ch.

Synth

snds0(wv)

Performs the operation. Takes wv.

sndsy(syn, fr, dur, vel)

Performs the operation. Takes syn, fr, dur, vel.

Notes

  • Sound synthesis and playback.