我想知道我们是否可以将hQ效果应用于html 5网络音频中的音频。 我希望使用2种效果EQ男性和EQ女性。我做了一些研究,发现这些只是一些预设的频率。
编辑:
这就是我要找的东西。
答案 0 :(得分:5)
当然。 Web Audio具有许多过滤功能。我在我的wubwubwub应用程序中做了一个标准的低/中/高均衡器,从tracks.js的第189行开始(你可能不想要“这个。”,当然):
this.low = audioCtx.createBiquadFilter();
this.low.type = "lowshelf";
this.low.frequency.value = 320.0;
this.low.gain.value = 0.0;
this.low.connect( /* your output node here - audioCtx.destination, maybe? */ );
this.mid = audioCtx.createBiquadFilter();
this.mid.type = "peaking";
this.mid.frequency.value = 1000.0;
this.mid.Q.value = 0.5;
this.mid.gain.value = 0.0;
this.mid.connect( this.low );
this.high = audioCtx.createBiquadFilter();
this.high.type = "highshelf";
this.high.frequency.value = 3200.0;
this.high.gain.value = 0.0;
this.high.connect( this.mid );
/* Now connect your input to this.high */