Filter6581.h
/*
* This file is part of libsidplayfp, a SID player engine.
*
* Copyright 2011-2024 Leandro Nini <drfiemost@users.sourceforge.net>
* Copyright 2007-2010 Antti Lankila
* Copyright 2004,2010 Dag Lem <resid@nimrod.no>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef FILTER6581_H
#define FILTER6581_H
#include "Filter.h"
#include "FilterModelConfig6581.h"
#include "Integrator6581.h"
#include "sidcxx11.h"
namespace reSIDfp
{
class Integrator6581;
class Filter6581 final : public Filter
{
private:
Integrator6581 hpIntegrator;
Integrator6581 bpIntegrator;
const unsigned short* f0_dac;
protected:
void updateCenterFrequency() override;
int solveIntegrators() override;
public:
Filter6581() :
Filter(*FilterModelConfig6581::getInstance()),
hpIntegrator(*FilterModelConfig6581::getInstance()),
bpIntegrator(*FilterModelConfig6581::getInstance()),
f0_dac(FilterModelConfig6581::getInstance()->getDAC(0.5))
{}
~Filter6581() override;
void setFilterCurve(double curvePosition);
void setFilterRange(double adjustment);
};
} // namespace reSIDfp
#endif
reSIDfp::Filter6581::setFilterCurve
void setFilterCurve(double curvePosition)
Definition Filter6581.cpp:63
reSIDfp::Filter6581::setFilterRange
void setFilterRange(double adjustment)
Definition Filter6581.cpp:70
reSIDfp::Filter6581::updateCenterFrequency
void updateCenterFrequency() override
Definition Filter6581.cpp:56
reSIDfp::Integrator6581
Definition Integrator6581.h:165