Adds the Faust DSP toolchain infrastructure: placeholder additive and FM DSP files, build.sh (faust -lang wasm per .dsp), faustJsonToParamMeta() to convert Faust JSON UI trees into the standard paramMeta format, FaustEngineBase (SynthEngine subclass wiring init/setParam/noteOn/noteOff through AudioWorklet messages), and FaustWorkletProcessor base class for concrete engine processors.
10 lines
406 B
Text
10 lines
406 B
Text
// additive.dsp — placeholder additive oscillator bank
|
|
// 4 harmonics with configurable frequency and amplitude.
|
|
// This is a pipeline-proving stub; the full 48-param additive engine
|
|
// is implemented in meml-pj4.
|
|
import("stdfaust.lib");
|
|
|
|
freq = hslider("freq[unit:Hz]", 220, 20, 4000, 0.1);
|
|
amp = hslider("amp", 0.5, 0, 1, 0.001);
|
|
|
|
process = sum(i, 4, amp * (1.0/(i+1)) * os.osc(freq * (i+1))) <: _,_;
|