123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- /*
- * eqcontrols.h - defination of EqControls class.
- *
- * Copyright (c) 2014 David French <dave/dot/french3/at/googlemail/dot/com>
- *
- * This file is part of LMMS - https://lmms.io
- *
- * 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 (see COPYING); if not, write to the
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301 USA.
- *
- */
- #ifndef EQCONTROLS_H
- #define EQCONTROLS_H
- #include "EffectControls.h"
- #include "EqSpectrumView.h"
- class EqEffect;
- class EqControls : public EffectControls
- {
- Q_OBJECT
- public:
- explicit EqControls( EqEffect* effect );
- virtual ~EqControls()
- {
- }
- virtual void saveSettings ( QDomDocument& doc, QDomElement& parent );
- virtual void loadSettings ( const QDomElement &_this );
- inline virtual QString nodeName() const
- {
- return "Eq";
- }
- virtual int controlCount()
- {
- return 42;
- }
- virtual EffectControlDialog* createView();
- float m_inPeakL;
- float m_inPeakR;
- float m_outPeakL;
- float m_outPeakR;
- float m_lowShelfPeakL, m_lowShelfPeakR;
- float m_para1PeakL, m_para1PeakR;
- float m_para2PeakL, m_para2PeakR;
- float m_para3PeakL, m_para3PeakR;
- float m_para4PeakL, m_para4PeakR;
- float m_highShelfPeakL, m_highShelfPeakR;
- EqAnalyser m_inFftBands;
- EqAnalyser m_outFftBands;
- bool m_inProgress;
- bool visable();
- private:
- EqEffect *m_effect;
- FloatModel m_inGainModel;
- FloatModel m_outGainModel;
- FloatModel m_lowShelfGainModel;
- FloatModel m_para1GainModel;
- FloatModel m_para2GainModel;
- FloatModel m_para3GainModel;
- FloatModel m_para4GainModel;
- FloatModel m_highShelfGainModel;
- FloatModel m_hpResModel;
- FloatModel m_lowShelfResModel;
- FloatModel m_para1BwModel;
- FloatModel m_para2BwModel;
- FloatModel m_para3BwModel;
- FloatModel m_para4BwModel;
- FloatModel m_highShelfResModel;
- FloatModel m_lpResModel;
- FloatModel m_hpFeqModel;
- FloatModel m_lowShelfFreqModel;
- FloatModel m_para1FreqModel;
- FloatModel m_para2FreqModel;
- FloatModel m_para3FreqModel;
- FloatModel m_para4FreqModel;
- FloatModel m_highShelfFreqModel;
- FloatModel m_lpFreqModel;
- BoolModel m_hpActiveModel;
- BoolModel m_lowShelfActiveModel;
- BoolModel m_para1ActiveModel;
- BoolModel m_para2ActiveModel;
- BoolModel m_para3ActiveModel;
- BoolModel m_para4ActiveModel;
- BoolModel m_highShelfActiveModel;
- BoolModel m_lpActiveModel;
- BoolModel m_lp12Model;
- BoolModel m_lp24Model;
- BoolModel m_lp48Model;
- BoolModel m_hp12Model;
- BoolModel m_hp24Model;
- BoolModel m_hp48Model;
- IntModel m_lpTypeModel;
- IntModel m_hpTypeModel;
- BoolModel m_analyseInModel;
- BoolModel m_analyseOutModel;
- friend class EqControlsDialog;
- friend class EqEffect;
- };
- #endif // EQCONTROLS_H
|