EqControls.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. * eqcontrols.h - defination of EqControls class.
  3. *
  4. * Copyright (c) 2014 David French <dave/dot/french3/at/googlemail/dot/com>
  5. *
  6. * This file is part of LMMS - https://lmms.io
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2 of the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public
  19. * License along with this program (see COPYING); if not, write to the
  20. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  21. * Boston, MA 02110-1301 USA.
  22. *
  23. */
  24. #ifndef EQCONTROLS_H
  25. #define EQCONTROLS_H
  26. #include "EffectControls.h"
  27. #include "EqSpectrumView.h"
  28. class EqEffect;
  29. class EqControls : public EffectControls
  30. {
  31. Q_OBJECT
  32. public:
  33. explicit EqControls( EqEffect* effect );
  34. virtual ~EqControls()
  35. {
  36. }
  37. virtual void saveSettings ( QDomDocument& doc, QDomElement& parent );
  38. virtual void loadSettings ( const QDomElement &_this );
  39. inline virtual QString nodeName() const
  40. {
  41. return "Eq";
  42. }
  43. virtual int controlCount()
  44. {
  45. return 42;
  46. }
  47. virtual EffectControlDialog* createView();
  48. float m_inPeakL;
  49. float m_inPeakR;
  50. float m_outPeakL;
  51. float m_outPeakR;
  52. float m_lowShelfPeakL, m_lowShelfPeakR;
  53. float m_para1PeakL, m_para1PeakR;
  54. float m_para2PeakL, m_para2PeakR;
  55. float m_para3PeakL, m_para3PeakR;
  56. float m_para4PeakL, m_para4PeakR;
  57. float m_highShelfPeakL, m_highShelfPeakR;
  58. EqAnalyser m_inFftBands;
  59. EqAnalyser m_outFftBands;
  60. bool m_inProgress;
  61. bool visable();
  62. private:
  63. EqEffect *m_effect;
  64. FloatModel m_inGainModel;
  65. FloatModel m_outGainModel;
  66. FloatModel m_lowShelfGainModel;
  67. FloatModel m_para1GainModel;
  68. FloatModel m_para2GainModel;
  69. FloatModel m_para3GainModel;
  70. FloatModel m_para4GainModel;
  71. FloatModel m_highShelfGainModel;
  72. FloatModel m_hpResModel;
  73. FloatModel m_lowShelfResModel;
  74. FloatModel m_para1BwModel;
  75. FloatModel m_para2BwModel;
  76. FloatModel m_para3BwModel;
  77. FloatModel m_para4BwModel;
  78. FloatModel m_highShelfResModel;
  79. FloatModel m_lpResModel;
  80. FloatModel m_hpFeqModel;
  81. FloatModel m_lowShelfFreqModel;
  82. FloatModel m_para1FreqModel;
  83. FloatModel m_para2FreqModel;
  84. FloatModel m_para3FreqModel;
  85. FloatModel m_para4FreqModel;
  86. FloatModel m_highShelfFreqModel;
  87. FloatModel m_lpFreqModel;
  88. BoolModel m_hpActiveModel;
  89. BoolModel m_lowShelfActiveModel;
  90. BoolModel m_para1ActiveModel;
  91. BoolModel m_para2ActiveModel;
  92. BoolModel m_para3ActiveModel;
  93. BoolModel m_para4ActiveModel;
  94. BoolModel m_highShelfActiveModel;
  95. BoolModel m_lpActiveModel;
  96. BoolModel m_lp12Model;
  97. BoolModel m_lp24Model;
  98. BoolModel m_lp48Model;
  99. BoolModel m_hp12Model;
  100. BoolModel m_hp24Model;
  101. BoolModel m_hp48Model;
  102. IntModel m_lpTypeModel;
  103. IntModel m_hpTypeModel;
  104. BoolModel m_analyseInModel;
  105. BoolModel m_analyseOutModel;
  106. friend class EqControlsDialog;
  107. friend class EqEffect;
  108. };
  109. #endif // EQCONTROLS_H