kwave
18.07.70
|
#include <PitchShiftDialog.h>
Signals | |
void | changed (double speed, double freq) |
void | startPreListen () |
void | stopPreListen () |
Public Member Functions | |
PitchShiftDialog (QWidget *parent) | |
virtual | ~PitchShiftDialog () Q_DECL_OVERRIDE |
virtual QStringList | params () Q_DECL_OVERRIDE |
virtual void | setParams (QStringList ¶ms) Q_DECL_OVERRIDE |
virtual QDialog * | dialog () Q_DECL_OVERRIDE |
![]() | |
virtual | ~PluginSetupDialog () |
Protected Types | |
enum | Mode { MODE_FACTOR = 0, MODE_PERCENT = 1 } |
Protected Slots | |
void | modeChanged (bool) |
void | sliderChanged (int pos) |
void | spinboxChanged (int pos) |
void | frequencyChanged (int pos) |
void | listenToggled (bool listen) |
void | listenStopped () |
Protected Member Functions | |
void | setMode (Mode mode) |
void | updateSpeed (double speed) |
Private Slots | |
void | invokeHelp () |
Private Attributes | |
double | m_speed |
double | m_frequency |
Mode | m_mode |
bool | m_enable_updates |
Definition at line 35 of file PitchShiftDialog.h.
|
protected |
Mode for amplification selection by factor (x1, x2, x5,...) or by percentage
Enumerator | |
---|---|
MODE_FACTOR | |
MODE_PERCENT |
Definition at line 108 of file PitchShiftDialog.h.
|
explicit |
Constructor
Definition at line 37 of file PitchShiftDialog.cpp.
References Kwave::connect(), frequencyChanged(), invokeHelp(), listenToggled(), m_mode, modeChanged(), setMode(), sliderChanged(), and spinboxChanged().
|
virtual |
Destructor
Definition at line 88 of file PitchShiftDialog.cpp.
References listenToggled().
|
signal |
Emitted whenever the speed or the frequency changes
speed | the speed factor, floating point |
freq | the frequency parameter in Hz |
Referenced by dialog(), frequencyChanged(), sliderChanged(), and spinboxChanged().
|
inlinevirtual |
retruns a pointer to this as a QDialog
Implements Kwave::PluginSetupDialog.
Definition at line 55 of file PitchShiftDialog.h.
References changed(), frequencyChanged(), invokeHelp(), listenStopped(), listenToggled(), modeChanged(), sliderChanged(), spinboxChanged(), startPreListen(), and stopPreListen().
|
protectedslot |
called if the frequency sbinbox value has changed
Definition at line 276 of file PitchShiftDialog.cpp.
References changed(), m_frequency, and m_speed.
Referenced by dialog(), and PitchShiftDialog().
|
privateslot |
invoke the online help
Definition at line 344 of file PitchShiftDialog.cpp.
References _.
Referenced by dialog(), and PitchShiftDialog().
|
protectedslot |
called when the pre-listen mode stopped/aborted
Definition at line 334 of file PitchShiftDialog.cpp.
Referenced by dialog().
|
protectedslot |
called when the "Listen" button has been toggled, to start or stop the pre-listen mode
Definition at line 317 of file PitchShiftDialog.cpp.
References startPreListen(), and stopPreListen().
Referenced by dialog(), PitchShiftDialog(), and ~PitchShiftDialog().
|
protectedslot |
called when the mode radio buttons changed
Definition at line 138 of file PitchShiftDialog.cpp.
References m_enable_updates, MODE_FACTOR, MODE_PERCENT, and setMode().
Referenced by dialog(), and PitchShiftDialog().
|
virtual |
Returns the parameters as string list
Implements Kwave::PluginSetupDialog.
Definition at line 286 of file PitchShiftDialog.cpp.
References m_frequency, m_mode, and m_speed.
|
protected |
Sets a new volume selection mode
Definition at line 95 of file PitchShiftDialog.cpp.
References m_enable_updates, m_mode, m_speed, MODE_FACTOR, MODE_PERCENT, and updateSpeed().
Referenced by modeChanged(), PitchShiftDialog(), and setParams().
|
virtual |
Sets the from a list of parameters
Implements Kwave::PluginSetupDialog.
Definition at line 296 of file PitchShiftDialog.cpp.
References m_frequency, m_mode, m_speed, MODE_FACTOR, MODE_PERCENT, setMode(), and updateSpeed().
|
protectedslot |
called when the speed slider's position has changed
Definition at line 209 of file PitchShiftDialog.cpp.
References changed(), m_enable_updates, m_frequency, m_mode, m_speed, MODE_FACTOR, MODE_PERCENT, spinboxChanged(), and updateSpeed().
Referenced by dialog(), and PitchShiftDialog().
|
protectedslot |
called when the spped spinbox value has changed
Definition at line 240 of file PitchShiftDialog.cpp.
References changed(), m_enable_updates, m_frequency, m_mode, m_speed, MODE_FACTOR, MODE_PERCENT, and updateSpeed().
Referenced by dialog(), PitchShiftDialog(), and sliderChanged().
|
signal |
Pre-listen mode has been started
Referenced by dialog(), and listenToggled().
|
signal |
Pre-listen mode has been stopped
Referenced by dialog(), and listenToggled().
|
protected |
Update the speed slider position and the speed spinbox value
Definition at line 150 of file PitchShiftDialog.cpp.
References _, m_enable_updates, m_mode, m_speed, MODE_FACTOR, MODE_PERCENT, and Kwave::toInt().
Referenced by setMode(), setParams(), sliderChanged(), and spinboxChanged().
|
private |
if false, ignore the signals of slider and spinbox
Definition at line 131 of file PitchShiftDialog.h.
Referenced by modeChanged(), setMode(), sliderChanged(), spinboxChanged(), and updateSpeed().
|
private |
base frequency,
Definition at line 125 of file PitchShiftDialog.h.
Referenced by frequencyChanged(), params(), setParams(), sliderChanged(), and spinboxChanged().
|
private |
mode for selecting speed (factor or percentage)
Definition at line 128 of file PitchShiftDialog.h.
Referenced by params(), PitchShiftDialog(), setMode(), setParams(), sliderChanged(), spinboxChanged(), and updateSpeed().
|
private |
speed factor
Definition at line 122 of file PitchShiftDialog.h.
Referenced by frequencyChanged(), params(), setMode(), setParams(), sliderChanged(), spinboxChanged(), and updateSpeed().