Graphic EQ Effect

Thiss PR adds a 10 band static equalizer based on Biquad filters. The implementation of the Biquad filter is based on @daschuer's iireqs branch.
Yes, nice fix.


2014-08-09 22:49 GMT+02:00 Nicu Badescu <notifications@github.com>:

> In src/effects/native/graphiceqeffect.cpp:
>
> > +    int sampleRate = getSampleRate();
> > +    if (m_oldSampleRate != sampleRate) {
> > +        m_oldSampleRate = sampleRate;
> > +        pState->setFilters(sampleRate, 2);
> > +    }
> > +
> > +    float fMid[10];
> > +    for (int i = 0; i < 10; i++) {
> > +        fMid[i] = m_pPotMid[i]->value().toDouble();
> > +    }
> > +
> > +    for (int i = 0; i < 10; i++) {
> > +        if (fMid[i] || pState->old_mid[i]) {
> > +            pState->band[i]->process(pInput, pState->m_pBandBuf[i], numSamples);
> > +        } else {
> > +            pState->band[i]->pauseFilter();
>
> I have put a flag inside pauseFilter() itself. Please tell me if this is
> the desired behaviour. badescunicu@8ce1b54
> <https://github.com/badescunicu/mixxx/commit/8ce1b54885d637ad9a35ce82d9eded9ccb885ffd>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mixxxdj/mixxx/pull/303/files#r16027862>.
>