thejustinwalsh
thejustinwalsh/defold-zzfx/zzfx
ZzFX extension for Defold
- GitHub: thejustinwalsh/defold-zzfx — pinned to
8c90e12- Pick a release from thejustinwalsh/defold-zzfx releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as zzfx from "zzfx.api"
- Pick a release from thejustinwalsh/defold-zzfx releases and add its Source code (zip) URL (or a packaged
Functions
play(args: number[])
Build a sample from a ZzFX parameter list and play it in one call.
Parameters
args:number[]
samplerate(rate: number)
Set the sample rate used to render subsequent samples. Defaults to 44100.
Parameters
rate:number
play_sample(sample: ZzFXSample)
Play a sample previously returned by {@link build_sample}.
Parameters
sample:ZzFXSample
build_sample(args: number[]): ZzFXSample
Build a reusable sample from a ZzFX parameter list, without playing it.
Parameters
args:number[]
Returns
ZzFXSample