我想在不使用web浏览器的情况下使用Node.js中的Tone.js库。到目前为止,我知道AudioBuffer是浏览器的一个特性,但是如何在Node.js中使用这段代码呢?C' for the duration of an 8th note
Tone.triggerAttackRelease("C4", "8n"); 这是我得到的错误: ReferenceError: AudioBuffer<
我正在尝试在next.js react项目中使用tone.js。当我运行或构建时,我得到了这个错误:"ReferenceError: AudioBuffer is not defined“ 我已经将tone.js代码隔离在codesandbox中,它工作得很好。file=/src/App.js 但不在next.js应用程序中 ReferenceError: AudioBuffer is