| 1 | /* SoundAnalysisArea_prefs.h |
| 2 | * |
| 3 | * Copyright (C) 2013,2015-2017,2020,2022-2024,2026 Paul Boersma, 2026 yjzxkxdn (spectrogram colour schemes) |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | * See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | Prefs_begin (SoundAnalysisArea) |
| 20 | |
| 21 | InstancePrefs_addDouble (SoundAnalysisArea, longestAnalysis, 1, U"10.0") // seconds |
| 22 | InstancePrefs_addEnum (SoundAnalysisArea, timeStepStrategy, 1, kSoundAnalysisArea_timeStepStrategy, DEFAULT) |
| 23 | InstancePrefs_addDouble (SoundAnalysisArea, fixedTimeStep, 1, U"0.01") // seconds |
| 24 | InstancePrefs_addInteger (SoundAnalysisArea, numberOfTimeStepsPerView, 1, U"100") |
| 25 | InstancePrefs_addBool (SoundAnalysisArea, spectrogram_show, 1, true) |
| 26 | InstancePrefs_addDouble (SoundAnalysisArea, spectrogram_viewFrom, 2, U"0.0") // Hz |
| 27 | InstancePrefs_addDouble (SoundAnalysisArea, spectrogram_viewTo, 2, U"5000.0") // Hz |
| 28 | InstancePrefs_addDouble (SoundAnalysisArea, spectrogram_windowLength, 2, U"0.005") // seconds |
| 29 | InstancePrefs_addDouble (SoundAnalysisArea, spectrogram_dynamicRange, 2, U"70.0") // dB |
| 30 | InstancePrefs_addInteger (SoundAnalysisArea, spectrogram_timeSteps, 3, U"1500") |
| 31 | InstancePrefs_addInteger (SoundAnalysisArea, spectrogram_frequencySteps, 3, U"500") |
| 32 | InstancePrefs_addEnum (SoundAnalysisArea, spectrogram_method, 2, kSound_to_Spectrogram_method, DEFAULT) |
| 33 | InstancePrefs_addEnum (SoundAnalysisArea, spectrogram_windowShape, 2, kSound_to_Spectrogram_windowShape, DEFAULT) |
| 34 | InstancePrefs_addBool (SoundAnalysisArea, spectrogram_autoscaling, 2, true) |
| 35 | InstancePrefs_addDouble (SoundAnalysisArea, spectrogram_maximum, 2, U"100.0") // dB/Hz |
| 36 | InstancePrefs_addDouble (SoundAnalysisArea, spectrogram_preemphasis, 2, U"6.0") // dB/octave |
| 37 | InstancePrefs_addDouble (SoundAnalysisArea, spectrogram_dynamicCompression, 2, U"0.0") // 0..1 |
| 38 | InstancePrefs_addBool (SoundAnalysisArea, spectrogram_picture_garnish, 1, true) |
| 39 | InstancePrefs_addEnum (SoundAnalysisArea, spectrogram_colourMap, 1, kSpectrogram_colourMap, GREY) |
| 40 | InstancePrefs_addBool (SoundAnalysisArea, spectrogram_invertColours, 1, false) |
| 41 | InstancePrefs_addBool (SoundAnalysisArea, spectrogram_threeChannelsIsRGB, 1, true) |
| 42 | InstancePrefs_addBool (SoundAnalysisArea, pitch_show, 1, true) |
| 43 | InstancePrefs_addEnum (SoundAnalysisArea, pitch_method, 2, kSoundAnalysisArea_pitch_analysisMethod, DEFAULT) |
| 44 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredAC_floor, 1, U"50.0") // Hz |
| 45 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredAC_top, 1, U"800.0") // Hz |
| 46 | InstancePrefs_addEnum (SoundAnalysisArea, pitch_filteredAC_unit, 1, kPitch_unit, HERTZ_LOGARITHMIC) |
| 47 | InstancePrefs_addEnum (SoundAnalysisArea, pitch_filteredAC_drawingMethod, 1, kSoundAnalysisArea_pitch_drawingMethod, DEFAULT) |
| 48 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredAC_viewFrom, 1, U"0.0 (= auto)") // units |
| 49 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredAC_viewTo, 1, U"0.0 (= auto)") // units |
| 50 | InstancePrefs_addInteger (SoundAnalysisArea, pitch_filteredAC_maximumNumberOfCandidates, 1, U"15") |
| 51 | InstancePrefs_addBool (SoundAnalysisArea, pitch_filteredAC_veryAccurate, 1, false) |
| 52 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredAC_attenuationAtTop, 1, U"0.03") |
| 53 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredAC_silenceThreshold, 1, U"0.09") |
| 54 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredAC_voicingThreshold, 1, U"0.50") |
| 55 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredAC_octaveCost, 1, U"0.055") |
| 56 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredAC_octaveJumpCost, 1, U"0.35") |
| 57 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredAC_voicedUnvoicedCost, 1, U"0.14") |
| 58 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawCC_floor, 1, U"75.0") // Hz |
| 59 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawCC_ceiling, 1, U"600.0") // Hz |
| 60 | InstancePrefs_addEnum (SoundAnalysisArea, pitch_rawCC_unit, 2, kPitch_unit, HERTZ) |
| 61 | InstancePrefs_addEnum (SoundAnalysisArea, pitch_rawCC_drawingMethod, 1, kSoundAnalysisArea_pitch_drawingMethod, DEFAULT) |
| 62 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawCC_viewFrom, 1, U"0.0 (= auto)") // units |
| 63 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawCC_viewTo, 1, U"0.0 (= auto)") // units |
| 64 | InstancePrefs_addInteger (SoundAnalysisArea, pitch_rawCC_maximumNumberOfCandidates, 1, U"15") |
| 65 | InstancePrefs_addBool (SoundAnalysisArea, pitch_rawCC_veryAccurate, 1, false) |
| 66 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawCC_silenceThreshold, 1, U"0.03") |
| 67 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawCC_voicingThreshold, 1, U"0.45") |
| 68 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawCC_octaveCost, 1, U"0.01") |
| 69 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawCC_octaveJumpCost, 1, U"0.35") |
| 70 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawCC_voicedUnvoicedCost, 1, U"0.14") |
| 71 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawAC_floor, 1, U"75.0") // Hz |
| 72 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawAC_ceiling, 1, U"600.0") // Hz |
| 73 | InstancePrefs_addEnum (SoundAnalysisArea, pitch_rawAC_unit, 2, kPitch_unit, HERTZ) |
| 74 | InstancePrefs_addEnum (SoundAnalysisArea, pitch_rawAC_drawingMethod, 1, kSoundAnalysisArea_pitch_drawingMethod, DEFAULT) |
| 75 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawAC_viewFrom, 1, U"0.0 (= auto)") // units |
| 76 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawAC_viewTo, 1, U"0.0 (= auto)") // units |
| 77 | InstancePrefs_addInteger (SoundAnalysisArea, pitch_rawAC_maximumNumberOfCandidates, 1, U"15") |
| 78 | InstancePrefs_addBool (SoundAnalysisArea, pitch_rawAC_veryAccurate, 1, false) |
| 79 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawAC_silenceThreshold, 1, U"0.03") |
| 80 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawAC_voicingThreshold, 1, U"0.45") |
| 81 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawAC_octaveCost, 1, U"0.01") |
| 82 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawAC_octaveJumpCost, 1, U"0.35") |
| 83 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_rawAC_voicedUnvoicedCost, 1, U"0.14") |
| 84 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredCC_floor, 1, U"50.0") // Hz |
| 85 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredCC_top, 1, U"800.0") // Hz |
| 86 | InstancePrefs_addEnum (SoundAnalysisArea, pitch_filteredCC_unit, 1, kPitch_unit, HERTZ_LOGARITHMIC) |
| 87 | InstancePrefs_addEnum (SoundAnalysisArea, pitch_filteredCC_drawingMethod, 1, kSoundAnalysisArea_pitch_drawingMethod, DEFAULT) |
| 88 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredCC_viewFrom, 1, U"0.0 (= auto)") // units |
| 89 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredCC_viewTo, 1, U"0.0 (= auto)") // units |
| 90 | InstancePrefs_addInteger (SoundAnalysisArea, pitch_filteredCC_maximumNumberOfCandidates, 1, U"15") |
| 91 | InstancePrefs_addBool (SoundAnalysisArea, pitch_filteredCC_veryAccurate, 1, false) |
| 92 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredCC_attenuationAtTop, 1, U"0.03") |
| 93 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredCC_silenceThreshold, 1, U"0.09") |
| 94 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredCC_voicingThreshold, 1, U"0.50") |
| 95 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredCC_octaveCost, 1, U"0.055") |
| 96 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredCC_octaveJumpCost, 1, U"0.35") |
| 97 | InstancePrefs_addDouble (SoundAnalysisArea, pitch_filteredCC_voicedUnvoicedCost, 1, U"0.14") |
| 98 | InstancePrefs_addBool (SoundAnalysisArea, pitch_picture_speckle, 1, false) |
| 99 | InstancePrefs_addBool (SoundAnalysisArea, pitch_picture_garnish, 1, true) |
| 100 | InstancePrefs_addBool (SoundAnalysisArea, intensity_show, 1, false) |
| 101 | InstancePrefs_addDouble (SoundAnalysisArea, intensity_viewFrom, 1, U"50.0") // dB |
| 102 | InstancePrefs_addDouble (SoundAnalysisArea, intensity_viewTo, 1, U"100.0") // dB |
| 103 | InstancePrefs_addEnum (SoundAnalysisArea, intensity_averagingMethod, 1, kSoundAnalysisArea_intensity_averagingMethod, DEFAULT) |
| 104 | InstancePrefs_addBool (SoundAnalysisArea, intensity_subtractMeanPressure, 1, true) |
| 105 | InstancePrefs_addBool (SoundAnalysisArea, intensity_picture_garnish, 1, true) |
| 106 | InstancePrefs_addBool (SoundAnalysisArea, formant_show, 1, false) |
| 107 | InstancePrefs_addDouble (SoundAnalysisArea, formant_ceiling, 1, U"5500.0") // Hz |
| 108 | InstancePrefs_addDouble (SoundAnalysisArea, formant_numberOfFormants, 1, U"5.0") |
| 109 | InstancePrefs_addDouble (SoundAnalysisArea, formant_windowLength, 1, U"0.025") // seconds |
| 110 | InstancePrefs_addDouble (SoundAnalysisArea, formant_dynamicRange, 1, U"30.0") // dB |
| 111 | InstancePrefs_addDouble (SoundAnalysisArea, formant_dotSize, 1, U"1.0") // mm |
| 112 | InstancePrefs_addEnum (SoundAnalysisArea, formant_method, 1, kSoundAnalysisArea_formant_analysisMethod, BURG) |
| 113 | InstancePrefs_addDouble (SoundAnalysisArea, formant_preemphasisFrom, 1, U"50.0") // Hz |
| 114 | InstancePrefs_addBool (SoundAnalysisArea, formant_picture_garnish, 1, true) |
| 115 | InstancePrefs_addBool (SoundAnalysisArea, pulses_show, 1, false) |
| 116 | InstancePrefs_addDouble (SoundAnalysisArea, pulses_maximumPeriodFactor, 1, U"1.3") |
| 117 | InstancePrefs_addDouble (SoundAnalysisArea, pulses_maximumAmplitudeFactor, 1, U"1.6") |
| 118 | InstancePrefs_addBool (SoundAnalysisArea, pulses_picture_garnish, 1, true) |
| 119 | InstancePrefs_addBool (SoundAnalysisArea, log1_toInfoWindow, 1, true) |
| 120 | InstancePrefs_addBool (SoundAnalysisArea, log1_toLogFile, 1, true) |
| 121 | InstancePrefs_addBool (SoundAnalysisArea, log2_toInfoWindow, 1, true) |
| 122 | InstancePrefs_addBool (SoundAnalysisArea, log2_toLogFile, 1, true) |
| 123 | InstancePrefs_addString (SoundAnalysisArea, log1_fileName, 1, U"~/Desktop/pitchLog.txt") |
| 124 | InstancePrefs_addString (SoundAnalysisArea, log2_fileName, 1, U"~/Desktop/formantLog.txt") |
| 125 | InstancePrefs_addString (SoundAnalysisArea, logScript3, 1, U"~/Desktop/log3.praat") |
| 126 | InstancePrefs_addString (SoundAnalysisArea, logScript4, 1, U"~/Desktop/log4.praat") |
| 127 | InstancePrefs_addString (SoundAnalysisArea, log1_format, 1, U"Time 'time:6' seconds, pitch 'f0:2' Hz") |
| 128 | InstancePrefs_addString (SoundAnalysisArea, log2_format, 1, U"'t1:4''tab$''t2:4''tab$''f1:0''tab$''f2:0''tab$''f3:0'") |
| 129 | |
| 130 | Prefs_end (SoundAnalysisArea) |
| 131 | |
| 132 | /* End of file SoundAnalysisArea_prefs.h */ |