You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a NodeJS application which needs to use ToneJS Sequence, Transport and basic MIDI (frequency to MIDI note) utilities. I do not need to record, load or output audio.
However, ToneJS expects to use AudioBuffer and so far it seems difficult to keep anything separate.
I got a little further by installingweb-audio-api and then setting ToneJS to use the audio context provided instead of the Native (browser) one:
const context = new AudioContext();
Tone.setContext(context);
This throws no errors. Next, I tried to use ToneJS in its Offline mode, something like:
Tone.Offline(() => {
const sequence = new Tone.Sequence((time, value) => {
logger.debug({ time, value });
}, events);
}, 30);
Next error from ToneJS I get is
Error: Missing the native OfflineAudioContext constructor.
Does web-audio-api provide the offlineAudioContext somewhere?
The text was updated successfully, but these errors were encountered:
I am writing a NodeJS application which needs to use ToneJS Sequence, Transport and basic MIDI (frequency to MIDI note) utilities. I do not need to record, load or output audio.
However, ToneJS expects to use AudioBuffer and so far it seems difficult to keep anything separate.
I got a little further by installing
web-audio-api
and then setting ToneJS to use the audio context provided instead of the Native (browser) one:This throws no errors. Next, I tried to use ToneJS in its Offline mode, something like:
Next error from ToneJS I get is
Does
web-audio-api
provide the offlineAudioContext somewhere?The text was updated successfully, but these errors were encountered: