|
kwave
18.07.70
|
#include <NotchFilterDialog.h>


Signals | |
| void | freqChanged (double freq) |
| void | bwChanged (double bw) |
| void | startPreListen () |
| void | stopPreListen () |
Public Member Functions | |
| NotchFilterDialog (QWidget *parent, double sample_rate) | |
| virtual | ~NotchFilterDialog () Q_DECL_OVERRIDE |
| virtual QStringList | params () Q_DECL_OVERRIDE |
| virtual void | setParams (QStringList ¶ms) Q_DECL_OVERRIDE |
| virtual QDialog * | dialog () Q_DECL_OVERRIDE |
Public Member Functions inherited from Kwave::PluginSetupDialog | |
| virtual | ~PluginSetupDialog () |
Protected Slots | |
| void | freqValueChanged (int pos) |
| void | bwValueChanged (int pos) |
| void | listenToggled (bool listen) |
| void | listenStopped () |
Protected Member Functions | |
| void | updateDisplay () |
Private Slots | |
| void | invokeHelp () |
Private Attributes | |
| double | m_frequency |
| double | m_bw |
| double | m_sample_rate |
| Kwave::NotchFilter * | m_filter |
Definition at line 36 of file NotchFilterDialog.h.
| Kwave::NotchFilterDialog::NotchFilterDialog | ( | QWidget * | parent, |
| double | sample_rate | ||
| ) |
Constructor.
| parent | parent widget |
| sample_rate | sample rate of the audio data to be processed, needed for determining the allowed range of the cutoff frequency |
Definition at line 42 of file NotchFilterDialog.cpp.
References bwValueChanged(), Kwave::connect(), freqValueChanged(), invokeHelp(), listenToggled(), m_bw, m_filter, m_frequency, Kwave::toInt(), and updateDisplay().

|
virtual |
Destructor
Definition at line 115 of file NotchFilterDialog.cpp.
References listenToggled(), and m_filter.

|
signal |
Emitted when the bandwidth selectio has changed
| bw | the bandwidth parameter in Hz |
Referenced by bwValueChanged(), and dialog().

|
protectedslot |
called when the bw spinbox or slider value has changed
Definition at line 136 of file NotchFilterDialog.cpp.
References bwChanged(), m_bw, Kwave::toInt(), and updateDisplay().
Referenced by dialog(), and NotchFilterDialog().


|
inlinevirtual |
retruns a pointer to this as a QDialog
Implements Kwave::PluginSetupDialog.
Definition at line 62 of file NotchFilterDialog.h.
References bwChanged(), bwValueChanged(), freqChanged(), freqValueChanged(), invokeHelp(), listenStopped(), listenToggled(), startPreListen(), stopPreListen(), and updateDisplay().

|
signal |
Emitted whenever the frequency changes
| freq | the frequency parameter in Hz |
Referenced by dialog(), and freqValueChanged().

|
protectedslot |
called when the freq spinbox or slider value has changed
Definition at line 125 of file NotchFilterDialog.cpp.
References freqChanged(), m_frequency, Kwave::toInt(), and updateDisplay().
Referenced by dialog(), and NotchFilterDialog().


|
privateslot |
invoke the online help
Definition at line 214 of file NotchFilterDialog.cpp.
References _.
Referenced by dialog(), and NotchFilterDialog().

|
protectedslot |
called when the pre-listen mode stopped/aborted
Definition at line 207 of file NotchFilterDialog.cpp.
Referenced by dialog().

|
protectedslot |
called when the "Listen" button has been toggled, to start or stop the pre-listen mode
Definition at line 190 of file NotchFilterDialog.cpp.
References startPreListen(), and stopPreListen().
Referenced by dialog(), NotchFilterDialog(), and ~NotchFilterDialog().

|
virtual |
Returns the parameters as string list
Implements Kwave::PluginSetupDialog.
Definition at line 147 of file NotchFilterDialog.cpp.
References m_bw, and m_frequency.
|
virtual |
Sets the from a list of parameters
Implements Kwave::PluginSetupDialog.
Definition at line 156 of file NotchFilterDialog.cpp.
References m_bw, m_frequency, Kwave::toInt(), and updateDisplay().

|
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 graphic display
Definition at line 178 of file NotchFilterDialog.cpp.
References m_bw, m_filter, m_frequency, m_sample_rate, Kwave::NotchFilter::setBandwidth(), and Kwave::NotchFilter::setFrequency().
Referenced by bwValueChanged(), dialog(), freqValueChanged(), NotchFilterDialog(), and setParams().


|
private |
the bw in Hz
Definition at line 119 of file NotchFilterDialog.h.
Referenced by bwValueChanged(), NotchFilterDialog(), params(), setParams(), and updateDisplay().
|
private |
filter function for calculating the frequency response
Definition at line 125 of file NotchFilterDialog.h.
Referenced by NotchFilterDialog(), updateDisplay(), and ~NotchFilterDialog().
|
private |
the cutoff frequency in Hz
Definition at line 116 of file NotchFilterDialog.h.
Referenced by freqValueChanged(), NotchFilterDialog(), params(), setParams(), and updateDisplay().
|
private |
sample rate of the signal in samples/sec
Definition at line 122 of file NotchFilterDialog.h.
Referenced by updateDisplay().