Auditory Relacs Plugins
0.9.8
|
#include <search.h>
Public Slots | |
void | setIntensity (int intensity) |
void | setDuration (int duration) |
void | setPause (int pause) |
void | setFrequency (int freq) |
void | setWaveform (int wave) |
void | setWaveformButton (int wave) |
void | setSpeaker (bool left) |
void | setSpeakerLeft (void) |
void | setSpeakerRight (void) |
void | toggleMute (void) |
void | setMute (bool mute) |
virtual void | dialogAccepted (void) |
Public Slots inherited from ConfigDialog | |
virtual void | dialog (void) |
virtual void | help (void) |
virtual void | notifyDialog (const Options &opt) |
Public Member Functions | |
Search (void) | |
~Search (void) | |
virtual int | main (void) |
void | saveEvents (const EventData &events, int count, Options &header) |
Public Member Functions inherited from ConfigDialog | |
ConfigDialog (const string &configident="", int configgroup=0, const string &name="", const string &author="", const string &version="", const string &date=__DATE__) | |
virtual | ~ConfigDialog (void) |
string | name (void) const |
virtual void | setName (const string &name) |
string | author (void) const |
virtual void | setAuthor (const string &author) |
string | version (void) const |
virtual void | setVersion (const string &version) |
string | date (void) const |
virtual void | setDate (const string &date) |
virtual OptWidget * | dialogOptions (OptDialog *od, string *tabhotkeys=0) |
virtual void | dialogButtons (OptDialog *od) |
virtual void | dialogEmptyMessage (OptDialog *od) |
int | dialogSelectMask (void) const |
void | setDialogSelectMask (int mask) |
void | addDialogSelectMask (int mask) |
int | dialogReadOnlyMask (void) const |
void | setDialogReadOnlyMask (int mask) |
void | addDialogReadOnlyMask (int mask) |
int | dialogStyle (void) const |
void | setDialogStyle (int style) |
void | addDialogStyle (int style) |
string | dialogCaption (void) const |
void | setDialogCaption (const string &caption) |
bool | dialogHeader (void) const |
void | setDialogHeader (bool d) |
string | headerBackgroundColor (void) const |
void | setHeaderBackgroundColor (const string &color) |
string | headerForegroundColor (void) const |
void | setHeaderForegroundColor (const string &color) |
string | headerImageFile (void) const |
void | setHeaderImageFile (const string &file) |
virtual void | dialogHeaderWidget (OptDialog *od) |
bool | dialogHelp (void) const |
void | setDialogHelp (bool d) |
string | helpCaption (void) const |
void | setHelpCaption (const string &caption) |
string | helpPath (int inx=0) const |
int | helpPathes (void) const |
void | clearHelpPathes (void) |
void | setHelpPath (const string &path) |
void | addHelpPath (const string &path) |
virtual string | helpFileName (void) const |
bool | dialogOpen (void) const |
bool | helpOpen (void) const |
QWidget * | mainWidget (void) |
virtual void | setMainWidget (QWidget *widget) |
void | lock () const |
void | unlock () const |
bool | tryLock (int timeout=1) |
QMutex * | mutex (void) |
Public Member Functions inherited from ConfigClass | |
ConfigClass (const string &ident, int group=0, int mode=0xffff, int selectmask=0) | |
ConfigClass (const ConfigClass &C) | |
virtual | ~ConfigClass (void) |
const string & | configIdent (void) const |
void | setConfigIdent (const string &ident) |
int | configGroup (void) const |
void | setConfigGroup (int group) |
int | configMode (void) const |
void | setConfigMode (int mode) |
void | addConfigMode (int mode) |
void | delConfigMode (int mode) |
int | configSelectMask (void) const |
void | setConfigSelectMask (int mask) |
void | addConfig (void) |
void | readConfig (void) |
virtual void | readConfig (StrQueue &sq) |
virtual void | saveConfig (ofstream &str) |
virtual int | configSize (void) const |
virtual void | config (void) |
virtual void | preConfig (void) |
Public Member Functions inherited from StandardTraces | |
StandardTraces (void) | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *qke) |
virtual void | customEvent (QEvent *qce) |
Protected Member Functions inherited from ConfigDialog | |
void | setDialogOpen (bool open=true) |
void | setHelpOpen (bool open=true) |
Protected Attributes | |
bool | NewSignal |
int | SetBestSide |
bool | SearchLeft |
QRadioButton * | LeftButton |
QRadioButton * | RightButton |
bool | Mute |
QPushButton * | MuteButton |
LCDRange * | ILCD |
double | Intensity |
LCDRange * | DLCD |
double | Duration |
LCDRange * | PLCD |
double | Pause |
double | PrePause |
LCDRange * | FLCD |
double | Frequency |
double | MinFreq |
int | Waveform |
QRadioButton * | SineButton |
QRadioButton * | NoiseButton |
Protected Attributes inherited from ConfigDialog | |
Options | DialogOptions |
Static Protected Attributes | |
static const double | ShortIntensityStep = 1.0 |
static const double | LongIntensityStep = 5.0 |
static const double | MaxIntensity = 100.0 |
static const double | MinIntensity = 0.0 |
static const double | ShortDurationStep = 0.005 |
static const double | LongDurationStep = 0.05 |
static const double | MaxDuration = 10.0 |
static const double | MinDuration = 0.005 |
static const double | ShortPauseStep = 0.005 |
static const double | LongPauseStep = 0.05 |
static const double | MaxPause = 10.0 |
static const double | MinPause = 0.005 |
static const double | ShortFrequencyStep = 500.0 |
static const double | LongFrequencyStep = 5000.0 |
static const double | MaxFrequency = 40000.0 |
static const double | MinFrequency = 2000.0 |
Static Protected Attributes inherited from StandardTraces | |
static const int | MaxTraces |
Additional Inherited Members | |
Public Types inherited from ConfigClass | |
enum | Action |
Signals inherited from ConfigDialog | |
void | dialogAccepted (void) |
void | dialogAction (int r) |
void | dialogClosed (int r) |
Static Public Member Functions inherited from ConfigClass | |
static void | setConfigureClasses (ConfigureClasses *cfg) |
Protected Slots inherited from ConfigDialog | |
void | notificationFromDialog (const Parameter &p) |
virtual void | dClosed (int r) |
virtual void | hClosed (int r) |
Static Protected Member Functions inherited from StandardTraces | |
static void | clearIndices (int *traceindices, int n=-1) |
static void | initStandardTraces (const InList &data, int *ntraces, int *traceindices, const string *names, string &namelist, bool alpha=false) |
static void | initStandardEventTraces (const InList &data, const EventList &events, int *ntraces, int *traceindices, int *eventindices, const string *tracenames, const string *eventnames, string &tracenamelist, string &eventnamelist, bool alpha=false) |
static void | initStandardOutputs (const RELACSPlugin *rp, int *ntraces, int *traceindices, const string *names, string &namelist, bool alpha=false) |
[RePro] Periodically emits a search stimulus.
check postCustomEvent usage!!!! user types+10 and event handling
Use mutex to protect stimulus creation.
intensity=80dB
: Intensity (number
)mute=false:
No stimulus (boolean
)duration=50ms
: Duration of stimulus (number
)pause=500ms
: Duration of pause (number
)prepause=50ms
: Part of pause before stimulus (number
)frequency=5kHz
: Frequency of stimulus (number
)minfreq=2kHz
: Minimum allowed frequency (number
)waveform=sine:
Waveform of stimulus (string
)ramp=2ms
: Ramp (number
)side=left:
Speaker (string
)repeats=0
: Number of repetitions (integer
)adjust=true:
Adjust input gains (boolean
)saving=true:
Save raw data (boolean
)setbestside=never:
Set the sessions's best side (string
)keep=true:
Keep changes (boolean
)Left:
Left speakerRight:
Right speakerN
, Pause
: Toggle stimulus outputUp:
Increase intensity by 1dBDown:
Decrease intensity by 1dBShift+Up
: Increase intensity by 5dBShift+Down
: Decrease intensity by 5dBAlt+Up
: Increase frequency by 1kHzAlt+Down
: Decrease frequency by 1kHzAlt+Shift+Up
: Increase frequency by 5kHzAlt+Shift+Down
: Decrease frequency by 5kHz Search | ( | void | ) |
References Search::DLCD, Search::Duration, Search::FLCD, Search::Frequency, Search::ILCD, Search::Intensity, Search::LeftButton, Search::LongDurationStep, Search::LongFrequencyStep, Search::LongIntensityStep, Search::LongPauseStep, Search::MaxDuration, Search::MaxFrequency, Search::MaxIntensity, Search::MaxPause, Search::MinDuration, Search::MinFreq, Search::MinFrequency, Search::MinIntensity, Search::MinPause, Search::Mute, Search::MuteButton, Search::NewSignal, Search::NoiseButton, Search::Pause, Search::PLCD, Search::PrePause, Search::RightButton, Search::SearchLeft, Search::SetBestSide, Search::setDuration(), Search::setFrequency(), Search::setIntensity(), Search::setPause(), LCDRange::setRange(), Search::setSpeakerLeft(), Search::setSpeakerRight(), LCDRange::setSteps(), LCDRange::setValue(), Search::setWaveform(), Search::ShortDurationStep, Search::ShortFrequencyStep, Search::ShortIntensityStep, Search::ShortPauseStep, Search::SineButton, Search::toggleMute(), and Search::Waveform.
~Search | ( | void | ) |
|
virtual |
Implements RePro.
References OutData::bandNoiseWave(), ceil(), OutData::clear(), OutData::constWave(), Search::Duration, DaqError::error(), floor(), Search::Frequency, OutData::intensity(), Search::Intensity, Search::MinFreq, Search::Mute, Search::NewSignal, Search::Pause, Search::PrePause, Search::saveEvents(), Search::SearchLeft, Search::SetBestSide, OutData::setDelay(), OutData::setIntensity(), Search::setIntensity(), OutData::setTrace(), OutData::sineWave(), DaqError::underflow(), and Search::Waveform.
Save event data.
References TableKey::addNumber(), EventData::count(), Search::Duration, EventData::ident(), EventData::next(), Search::Pause, Search::PrePause, EventData::previous(), TableKey::save(), and TableKey::saveKey().
Referenced by Search::main().
|
slot |
Set intensity of stimulus to dB dB and emit IntensityChanged.
References Search::Intensity, Search::MaxIntensity, and Search::MinIntensity.
Referenced by Search::keyPressEvent(), Search::main(), and Search::Search().
|
slot |
Set duration of stimulus to noise ms and emit DurationChanged.
References Search::Duration, Search::MaxDuration, Search::MinDuration, and Search::NewSignal.
Referenced by Search::Search().
|
slot |
Set duration of pause to pause ms and emit PauseChanged.
References Search::MaxPause, Search::MinPause, and Search::Pause.
Referenced by Search::Search().
|
slot |
Set frequency of stimulus to freq Hz and emit FrequencyChanged.
References Search::Frequency, Search::MaxFrequency, Search::MinFreq, and Search::NewSignal.
Referenced by Search::keyPressEvent(), and Search::Search().
|
slot |
Set waveform of stimulus and emit waveformChanged.
References Search::NewSignal, and Search::Waveform.
Referenced by Search::Search().
|
slot |
Set the right waveform button.
References Search::NoiseButton, and Search::SineButton.
Referenced by Search::customEvent(), and Search::dialogAccepted().
|
slot |
Set output speaker.
References Search::setSpeakerLeft(), and Search::setSpeakerRight().
Referenced by Search::customEvent(), and Search::dialogAccepted().
|
slot |
Set output speaker to "left".
References Search::LeftButton, Search::RightButton, Search::SearchLeft, and Search::SetBestSide.
Referenced by Search::keyPressEvent(), Search::Search(), and Search::setSpeaker().
|
slot |
Set output speaker to "right".
References Search::LeftButton, Search::RightButton, Search::SearchLeft, and Search::SetBestSide.
Referenced by Search::keyPressEvent(), Search::Search(), and Search::setSpeaker().
|
slot |
Toggle mute mode.
References Search::Mute, and Search::setMute().
Referenced by Search::keyPressEvent(), and Search::Search().
|
slot |
Set mute mode.
References Search::Mute, Search::MuteButton, and Search::NewSignal.
Referenced by Search::toggleMute().
|
virtualslot |
Updates all input widgets to the values of the options.
References Search::DLCD, Search::FLCD, Search::ILCD, Search::MaxFrequency, Search::PLCD, LCDRange::setRange(), Search::setSpeaker(), LCDRange::setValue(), and Search::setWaveformButton().
|
protected |
Handle keyboard events.
References Search::FLCD, Search::Frequency, Search::ILCD, Search::Intensity, Search::LongFrequencyStep, Search::LongIntensityStep, Search::setFrequency(), Search::setIntensity(), Search::setSpeakerLeft(), Search::setSpeakerRight(), LCDRange::setValue(), Search::ShortFrequencyStep, Search::ShortIntensityStep, and Search::toggleMute().
|
protectedvirtual |
|
protected |
Referenced by Search::main(), Search::Search(), Search::setDuration(), Search::setFrequency(), Search::setMute(), and Search::setWaveform().
|
protected |
Referenced by Search::main(), Search::Search(), Search::setSpeakerLeft(), and Search::setSpeakerRight().
|
protected |
Referenced by Search::main(), Search::Search(), Search::setSpeakerLeft(), and Search::setSpeakerRight().
|
protected |
Referenced by Search::Search(), Search::setSpeakerLeft(), and Search::setSpeakerRight().
|
protected |
Referenced by Search::Search(), Search::setSpeakerLeft(), and Search::setSpeakerRight().
|
protected |
Referenced by Search::main(), Search::Search(), Search::setMute(), and Search::toggleMute().
|
protected |
Referenced by Search::Search(), and Search::setMute().
|
protected |
Referenced by Search::customEvent(), Search::dialogAccepted(), Search::keyPressEvent(), and Search::Search().
|
protected |
Referenced by Search::customEvent(), Search::keyPressEvent(), Search::main(), Search::Search(), and Search::setIntensity().
|
staticprotected |
Referenced by Search::keyPressEvent(), and Search::Search().
|
staticprotected |
Referenced by Search::keyPressEvent(), and Search::Search().
|
staticprotected |
Referenced by Search::Search(), and Search::setIntensity().
|
staticprotected |
Referenced by Search::Search(), and Search::setIntensity().
|
protected |
Referenced by Search::customEvent(), Search::dialogAccepted(), and Search::Search().
|
protected |
Referenced by Search::customEvent(), Search::main(), Search::saveEvents(), Search::Search(), and Search::setDuration().
|
staticprotected |
Referenced by Search::Search().
|
staticprotected |
Referenced by Search::Search().
|
staticprotected |
Referenced by Search::Search(), and Search::setDuration().
|
staticprotected |
Referenced by Search::Search(), and Search::setDuration().
|
protected |
Referenced by Search::customEvent(), Search::dialogAccepted(), and Search::Search().
|
protected |
Referenced by Search::customEvent(), Search::main(), Search::saveEvents(), Search::Search(), and Search::setPause().
|
protected |
Referenced by Search::main(), Search::saveEvents(), and Search::Search().
|
staticprotected |
Referenced by Search::Search().
|
staticprotected |
Referenced by Search::Search().
|
staticprotected |
Referenced by Search::Search(), and Search::setPause().
|
staticprotected |
Referenced by Search::Search(), and Search::setPause().
|
protected |
Referenced by Search::customEvent(), Search::dialogAccepted(), Search::keyPressEvent(), and Search::Search().
|
protected |
Referenced by Search::customEvent(), Search::keyPressEvent(), Search::main(), Search::Search(), and Search::setFrequency().
|
protected |
Referenced by Search::customEvent(), Search::main(), Search::Search(), and Search::setFrequency().
|
staticprotected |
Referenced by Search::keyPressEvent(), and Search::Search().
|
staticprotected |
Referenced by Search::keyPressEvent(), and Search::Search().
|
staticprotected |
Referenced by Search::customEvent(), Search::dialogAccepted(), Search::Search(), and Search::setFrequency().
|
staticprotected |
Referenced by Search::Search().
|
protected |
Referenced by Search::customEvent(), Search::main(), Search::Search(), and Search::setWaveform().
|
protected |
Referenced by Search::Search(), and Search::setWaveformButton().
|
protected |
Referenced by Search::Search(), and Search::setWaveformButton().