Add faust-create-faustnode.js test to demonstrate the new createFaustNode higher-level API#163
Conversation
|
Hey, I get some audio output working but I also get this error when running the example, e.g.: Error: ScriptProcessor_poly_effect_test:8 : ERROR : undefined symbol : effect
at _FaustCompiler.createDSPFactory (file:///.../letz-node-web-audio-api/node_modules/@grame/faustwasm/dist/esm/index.js:1411:36)
at async _FaustPolyDspGenerator.compile (file:///.../letz-node-web-audio-api/node_modules/@grame/faustwasm/dist/esm/index.js:5491:28)
at async _FaustDspGenerator.createFaustNode (file:///.../letz-node-web-audio-api/node_modules/@grame/faustwasm/dist/esm/index.js:5876:30)
at async runPolyEffectTest (file:///.../letz-node-web-audio-api/examples/faust-create-faustnode.js:150:18)
at async main (file:///.../letz-node-web-audio-api/examples/faust-create-faustnode.js:201:3)
at async file:///.../letz-node-web-audio-api/examples/faust-create-faustnode.js:205:3This seems to affect the Error: AudioWorklet_poly_test:11 : ERROR : undefined symbol : effect
Error: AudioWorklet_poly_effect_test:8 : ERROR : undefined symbol : effect
Error: ScriptProcessor_poly_test:11 : ERROR : undefined symbol : effect
Error: ScriptProcessor_poly_effect_test:8 : ERROR : undefined symbol : effectAm I missing something? |
|
Well, this is not really an error: it happens when compiling a polyphonic code without effect (the first one here: https://github.com/sletz/node-web-audio-api/blob/e4d8cd8b6dd014a86927ba588c59ae410d69a7c7/examples/faust-create-faustnode.js#L41). The second one https://github.com/sletz/node-web-audio-api/blob/e4d8cd8b6dd014a86927ba588c59ae410d69a7c7/examples/faust-create-faustnode.js#L50 has an effect and compiles normally. As this acceptable or should I try to improve the user feedback here ? |
|
@b-ma wait a bit, I'll improve all that. |
…ct Faust polyEffectCode example.
|
New commit to solve the issues. |
|
Cool, thanks |
Changes here :
examples/faust.jsrenamed toexamples/faust-osc.jsfor more consistencynew
examples/faust-create-faustnode.jsto demonstrate the use of thecreateFaustNote(just added this morning in faustwasm 0.13.0 package) which simplifies creating monophonic (synthesiser and effects) or polyphonic (MIDI controllable instruments). Several Faust DSP programs added to show different use-cases.