CrossoverEQControls.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * CrossoverEQControls.h - A native 4-band Crossover Equalizer
  3. * good for simulating tonestacks or simple peakless (flat-band) equalization
  4. *
  5. * Copyright (c) 2014 Vesa Kivimäki <contact/dot/diizy/at/nbl/dot/fi>
  6. * Copyright (c) 2006-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
  7. *
  8. * This file is part of LMMS - https://lmms.io
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public
  12. * License as published by the Free Software Foundation; either
  13. * version 2 of the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public
  21. * License along with this program (see COPYING); if not, write to the
  22. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  23. * Boston, MA 02110-1301 USA.
  24. *
  25. */
  26. #ifndef CROSSOVEREQ_CONTROLS_H
  27. #define CROSSOVEREQ_CONTROLS_H
  28. #include "EffectControls.h"
  29. #include "CrossoverEQControlDialog.h"
  30. class CrossoverEQEffect;
  31. class CrossoverEQControls : public EffectControls
  32. {
  33. Q_OBJECT
  34. public:
  35. CrossoverEQControls( CrossoverEQEffect * eff );
  36. virtual ~CrossoverEQControls() {}
  37. virtual void saveSettings( QDomDocument & doc, QDomElement & elem );
  38. virtual void loadSettings( const QDomElement & elem );
  39. inline virtual QString nodeName() const
  40. {
  41. return( "crossoevereqcontrols" );
  42. }
  43. virtual int controlCount()
  44. {
  45. return( 11 );
  46. }
  47. virtual EffectControlDialog * createView()
  48. {
  49. return( new CrossoverEQControlDialog( this ) );
  50. }
  51. private slots:
  52. void xover12Changed();
  53. void xover23Changed();
  54. void xover34Changed();
  55. void sampleRateChanged();
  56. private:
  57. CrossoverEQEffect * m_effect;
  58. FloatModel m_xover12;
  59. FloatModel m_xover23;
  60. FloatModel m_xover34;
  61. FloatModel m_gain1;
  62. FloatModel m_gain2;
  63. FloatModel m_gain3;
  64. FloatModel m_gain4;
  65. BoolModel m_mute1;
  66. BoolModel m_mute2;
  67. BoolModel m_mute3;
  68. BoolModel m_mute4;
  69. friend class CrossoverEQControlDialog;
  70. friend class CrossoverEQEffect;
  71. };
  72. #endif