Skip to content

Comments

Add faust-create-faustnode.js test to demonstrate the new createFaustNode higher-level API#163

Merged
b-ma merged 4 commits intoircam-ismm:mainfrom
sletz:createfaustnode-test
Nov 28, 2025
Merged

Add faust-create-faustnode.js test to demonstrate the new createFaustNode higher-level API#163
b-ma merged 4 commits intoircam-ismm:mainfrom
sletz:createfaustnode-test

Conversation

@sletz
Copy link
Contributor

@sletz sletz commented Nov 26, 2025

Changes here :

  • examples/faust.js renamed to examples/faust-osc.js for more consistency

  • new examples/faust-create-faustnode.js to demonstrate the use of the createFaustNote (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.

@sletz sletz mentioned this pull request Nov 26, 2025
@b-ma
Copy link
Collaborator

b-ma commented Nov 27, 2025

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:3

This seems to affect the poly_test and poly_effect_test, with both AudioWorklet and ScriptProcessor i.e.:

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 : effect

Am I missing something?

@sletz
Copy link
Contributor Author

sletz commented Nov 27, 2025

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 ?

@sletz
Copy link
Contributor Author

sletz commented Nov 27, 2025

@b-ma wait a bit, I'll improve all that.

@sletz
Copy link
Contributor Author

sletz commented Nov 27, 2025

New commit to solve the issues.

@b-ma
Copy link
Collaborator

b-ma commented Nov 28, 2025

Cool, thanks

@b-ma b-ma merged commit e504875 into ircam-ismm:main Nov 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants