Open marcoaccardi opened 3 years ago
const mvae = require('@magenta/music/node/music_vae'); const core = require('@magenta/music/node/core'); const player = new core.Player() const model = new mvae.MusicVAE('https://storage.googleapis.com/magentadata/js/checkpoints/music_vae/mel_2bar_small'); model .initialize() .then(() => model.sample(1)) .then(samples => { player.resumeContext(); player.start(samples[0]) });
I've tried to start off with Magenta and NodeJS, but when I run the script I receive the following error:
ReferenceError: AudioBuffer is not defined
I understand that the issue might be caused by the fact that there is no WebAudio API in the node environment. How can I solve it?
cc @cannoneyed
same error
@marcoaccardi Hi, did you manage to solve this error?
Here is some info on this:
https://stackoverflow.com/questions/67474153/referenceerror-audiobuffer-is-not-defined#:~:text=The%20error%20you%20are%20getting,if%20window%20object%20is%20defined.
I've tried to start off with Magenta and NodeJS, but when I run the script I receive the following error:
ReferenceError: AudioBuffer is not defined
I understand that the issue might be caused by the fact that there is no WebAudio API in the node environment. How can I solve it?