【发布时间】:2020-08-26 04:07:19
【问题描述】:
我有很多这样的笔记
const notes = [{note: 'C4', duration: '8n'}, {note: 'D4', duration: '4n'}, {note: 'C4', duration: '2n'}, {note: '', duration: '8n'}] //last element stands for a pause
如何根据这个数组演奏旋律? 有没有更好的方法来存储旋律?
或者我应该为此使用另一个库吗?
谢谢!
【问题讨论】:
标签: tone.js