OfflineAudioContext

 

 

var a3 = new window.OfflineAudioContext(0x1,0x1388,0xac44);
var a4 = a3.createOscillator();

a4.type = 'triangle';
a4.frequency.value = 0x3e8;

var a5 = a3.createDynamicsCompressor();
a5.threshold.value = -0x32;
a5.knee.value =0x28;
a5.ratio.value = 0xc;
a5.attack.value = 0x0;
a5.release.vaule = 0.25;
a4.connect(a5);
a5.connect(a3['destination']);
a4.start(0x0);

aaa = a3.startRendering();
aaa.then(function(t){

  debugger;
  
})

 

posted @ 2024-08-02 10:01  AngDH  阅读(9)  评论(0编辑  收藏  举报