I'm trying to generate audio using Scribbletune & Tone.js through node-red and have it play on a webpage via Tone...
I found this tutorial but not sure how can I integrate webpack, and import scribbletune/browser and tone in template node/ Dashboard template node...
I only managed to successfully create a MIDI file with base scribbletune integration that is not of much use...
ok, so to pass something from node-red to a web page you need a mechanism - e.g. websocket or polling an endpoint etc.
You could of course use a dashboard ui-template (then watch scope for incoming messages)
OR
use uibuilder to host your web page then use the vue hooks to receive incoming msgs
Basic structure of dashboard version...
inject --> function (import and use scribbletune to generate notes) --> ui-template (watch scope for msg then call Tone with msg.payload)
Basic structure of ui-builder version...
inject --> function (import and use scribbletune to generate notes) --> uibuilder (use vue hook to watch for msg then call Tone with msg.payload)