有没有办法在HTML 5 Web音频API中应用EQ效果?

pra*_*ech 1 html5 web-audio-api

我想知道我们是否可以在html 5网络音频中将EQ效果应用于音频.我希望使用2种效果EQ男性和EQ女性.我做了一些研究,发现这些只是一些预设的频率.

编辑:

这是我正在寻找的. 在此输入图像描述

cwi*_*lso 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 */
Run Code Online (Sandbox Code Playgroud)