Conversation
|
Hey thanks! |
|
Happy new year 2026 ! Yes "vibe-coding/working" a lot on this project https://github.com/sletz/faust-mcp, so heavily using the node-web-audio-api, really nice BTW. I'm using my fork right now, I've let you know when a merge can be done. |
|
Can you possibly merge now ? And update https://www.npmjs.com/package/node-web-audio-api ? Thanks. |
|
I might be mistaken but I don't think updating a devDependency has an effect on end users |
|
Thanks!
No indeed, it doesn't |
|
Reading here: https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file, and having faustwasm packagage in devDependency, what is expected work flow for user using NPM packaged version when Faust support is needed ? |
|
For a end user, the workflow would be to install both the import { AudioContext, AudioWorkletNode } from 'node-web-audio-api';
// Expose AudioWorkletNode globally so faustwasm can patch it into worklet factories.
if (typeof globalThis.AudioWorkletNode === 'undefined') {
globalThis.AudioWorkletNode = AudioWorkletNode;
}
const {
instantiateFaustModuleFromFile,
LibFaust,
FaustCompiler,
FaustMonoDspGenerator,
} = await import('@grame/faustwasm/dist/esm/index.js');This is a bit convoluted for now... but I'm thinking about exposing a import 'node-web-audio-api/register-global.js';
import {
instantiateFaustModuleFromFile,
LibFaust,
FaustCompiler,
FaustMonoDspGenerator,
} from '@grame/faustwasm/dist/esm/index.js';cf. #166 |
No description provided.