我無法通過網絡搜索找到任何東西,但是有沒有計劃使API生成音頻塊以便在HTML5 <audio>
標記中播放?使用Javascript創建音頻<audio>
編輯:這是例如::
PSEUDOCODE::
var music = new Song([Array of hertz levels or notes]);
var box = document.createElement('audio');
document.body.appendChild(box);
box.src = music.convert();
box.play();
基於Web Audio API最近的一篇文章:http://www.html5rocks.com/en/tutorials/webaudio/games/ – mwcz 2012-03-21 03:00:57