1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- /*
- * BitcrushControls.h - A native bitcrusher
- *
- * Copyright (c) 2014 Vesa Kivimäki <contact/dot/diizy/at/nbl/dot/fi>
- * Copyright (c) 2006-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
- *
- * 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 BITCRUSH_CONTROLS_H
- #define BITCRUSH_CONTROLS_H
- #include "EffectControls.h"
- #include "BitcrushControlDialog.h"
- class BitcrushEffect;
- class BitcrushControls : public EffectControls
- {
- Q_OBJECT
- public:
- BitcrushControls( BitcrushEffect * eff );
- virtual ~BitcrushControls();
- virtual void saveSettings( QDomDocument & doc, QDomElement & elem );
- virtual void loadSettings( const QDomElement & elem );
- inline virtual QString nodeName() const
- {
- return( "bitcrushcontrols" );
- }
- virtual int controlCount()
- {
- return( 9 );
- }
- virtual EffectControlDialog * createView()
- {
- return( new BitcrushControlDialog( this ) );
- }
- private slots:
- void sampleRateChanged();
- private:
- BitcrushEffect * m_effect;
-
- FloatModel m_inGain;
- FloatModel m_inNoise;
-
- FloatModel m_outGain;
- FloatModel m_outClip;
-
- FloatModel m_rate;
- FloatModel m_stereoDiff;
-
- FloatModel m_levels;
-
- BoolModel m_rateEnabled;
- BoolModel m_depthEnabled;
-
- friend class BitcrushControlDialog;
- friend class BitcrushEffect;
- };
- #endif
|