Пример #1
0
void structEEGWindow :: f_preferences (void) {
	Preferences_addBool   (L"EEGWindow.showSelectionViewer",   & s_showSelectionViewer,                      false);   // overridden
	Preferences_addEnum   (L"EEGWindow.sound.scalingStrategy", & s_sound_scalingStrategy, kTimeSoundEditor_scalingStrategy, DEFAULT);   // overridden
	Preferences_addDouble (L"EEGWindow.sound.scaling.height",  & s_sound_scaling_height,                     20e-6);   // overridden
	Preferences_addDouble (L"EEGWindow.sound.scaling.minimum", & s_sound_scaling_minimum,                   -10e-6);   // overridden
	Preferences_addDouble (L"EEGWindow.sound.scaling.maximum", & s_sound_scaling_maximum,                   +10e-6);   // overridden
	Preferences_addBool   (L"EEGWindow.spectrogram.show",               & s_spectrogram.show, false);
	Preferences_addDouble (L"EEGWindow.spectrogram.viewFrom",           & s_spectrogram.viewFrom, 0.0);   // Hz
	Preferences_addDouble (L"EEGWindow.spectrogram.viewTo",             & s_spectrogram.viewTo, 60.0);   // Hz
	Preferences_addDouble (L"EEGWindow.spectrogram.windowLength",       & s_spectrogram.windowLength, 0.5);   // seconds
	Preferences_addDouble (L"EEGWindow.spectrogram.dynamicRange",       & s_spectrogram.dynamicRange, 40.0);   // dB
	Preferences_addLong   (L"EEGWindow.spectrogram.timeSteps",          & s_spectrogram.timeSteps, 1000);
	Preferences_addLong   (L"EEGWindow.spectrogram.frequencySteps",     & s_spectrogram.frequencySteps, 250);
	Preferences_addEnum   (L"EEGWindow.spectrogram.method",             & s_spectrogram.method, kSound_to_Spectrogram_method, DEFAULT);
	Preferences_addEnum   (L"EEGWindow.spectrogram.windowShape",        & s_spectrogram.windowShape, kSound_to_Spectrogram_windowShape, DEFAULT);
	Preferences_addBool   (L"EEGWindow.spectrogram.autoscaling",        & s_spectrogram.autoscaling, true);
	Preferences_addDouble (L"EEGWindow.spectrogram.maximum",            & s_spectrogram.maximum, 100.0);   // dB/Hz
	Preferences_addDouble (L"EEGWindow.spectrogram.preemphasis",        & s_spectrogram.preemphasis, 0.0);   // dB/octave
	Preferences_addDouble (L"EEGWindow.spectrogram.dynamicCompression", & s_spectrogram.dynamicCompression, 0.0);
	Preferences_addBool   (L"EEGWindow.spectrogram.picture.garnish",    & s_spectrogram.picture.garnish, true);
}
Пример #2
0
void FormantGridEditor_prefs (void) {
	Preferences_addDouble (L"FormantGridEditor.formantFloor", & preferences.formantFloor, 0.0);   // Hz
	Preferences_addDouble (L"FormantGridEditor.formantCeiling", & preferences.formantCeiling, 11000.0);   // Hz
	Preferences_addDouble (L"FormantGridEditor.bandwidthFloor", & preferences.bandwidthFloor, 0.0);   // Hz
	Preferences_addDouble (L"FormantGridEditor.bandwidthCeiling", & preferences.bandwidthCeiling, 1000.0);   // Hz
	Preferences_addDouble (L"FormantGridEditor.play.samplingFrequency", & preferences.play.samplingFrequency, 44100.0);   // Hz
	Preferences_addDouble (L"FormantGridEditor.source.pitch.tStart", & preferences.source.pitch.tStart, 0.0);   // relative time
	Preferences_addDouble (L"FormantGridEditor.source.pitch.f0Start", & preferences.source.pitch.f0Start, DEFAULT_F0_START);   // Hz
	Preferences_addDouble (L"FormantGridEditor.source.pitch.tMid", & preferences.source.pitch.tMid, DEFAULT_T_MID);   // relative time
	Preferences_addDouble (L"FormantGridEditor.source.pitch.f0Mid", & preferences.source.pitch.f0Mid, DEFAULT_F0_MID);   // Hz
	Preferences_addDouble (L"FormantGridEditor.source.pitch.tEnd", & preferences.source.pitch.tEnd, 1.0);   // relative time
	Preferences_addDouble (L"FormantGridEditor.source.pitch.f0End", & preferences.source.pitch.f0End, DEFAULT_F0_END);   // Hz
	Preferences_addDouble (L"FormantGridEditor.source.pitch.f0End", & preferences.source.pitch.f0End, DEFAULT_F0_END);   // Hz
	Preferences_addDouble (L"FormantGridEditor.source.phonation.adaptFactor", & preferences.source.phonation.adaptFactor, PointProcess_to_Sound_phonation_DEFAULT_ADAPT_FACTOR);
	Preferences_addDouble (L"FormantGridEditor.source.phonation.maximumPeriod", & preferences.source.phonation.maximumPeriod, PointProcess_to_Sound_phonation_DEFAULT_MAXIMUM_PERIOD);
	Preferences_addDouble (L"FormantGridEditor.source.phonation.openPhase", & preferences.source.phonation.openPhase, PointProcess_to_Sound_phonation_DEFAULT_OPEN_PHASE);
	Preferences_addDouble (L"FormantGridEditor.source.phonation.collisionPhase", & preferences.source.phonation.collisionPhase, PointProcess_to_Sound_phonation_DEFAULT_COLLISION_PHASE);
	Preferences_addDouble (L"FormantGridEditor.source.phonation.power1", & preferences.source.phonation.power1, PointProcess_to_Sound_phonation_DEFAULT_POWER_1);
	Preferences_addDouble (L"FormantGridEditor.source.phonation.power2", & preferences.source.phonation.power2, PointProcess_to_Sound_phonation_DEFAULT_POWER_2);
}
Пример #3
0
void praat_statistics_prefs () {
	Preferences_addLong (U"PraatShell.batchSessions", & statistics.batchSessions, 0);
	Preferences_addLong (U"PraatShell.interactiveSessions", & statistics.interactiveSessions, 0);
	Preferences_addDouble (U"PraatShell.memory", & statistics.memory, 0.0);
	Preferences_addString (U"PraatShell.dateOfFirstSession", & statistics.dateOfFirstSession [0], U"");
}