Draw Long Duration Spectrograms
- Command: DrawLongDurationSpectrograms
- Config file: SpectrogramFalseColourConfig.yml
- Config file2: IndexPropertiesConfig.yml
This command produces a single false-colour (FC) spectrogram, taking as input the spectral indices produced by the Acoustic Indices analysis on a single audio file.
One FC spectrogram is produced per audio file. To learn more about long-duration, false-colour spectrograms, check out our tutorial at https://research.ecosounds.org/research/eadm-towsey/long-duration-audio-recordings-of-the-environment.
Usage
This section describes the command line arguments required to draw a false-colour spectrogram derived from matrices of spectral acoustic indices extracted from single long-duration audio recording.
To run the command, type:
$ AnalysisPrograms.exe DrawLongDurationSpectrograms [options];
The output of this command is a set of false-colour and grey-scale long-duration index spectrograms.
Here is an example of a command line with abbreviated path names:
$ AnalysisPrograms.exe colourSpectrogram –i "path\directoryName1" –o "path\directoryName2" -fcs "path\fileName3.yml" -ip "path\fileName4.yml"
The above four paths are obligatory arguments (the program will return a fatal error if they are not found on the command line).
Options
- -i|--input-data-directory <INPUT_DATA_DIRECTORY> Directory where the input data is located.
- -o|--output-directory <OUTPUT_DIRECTORY> Directory where the output is to go.
- -ip|--index-properties-config <INDEX_PROPERTIES_CONFIG> User specified file containing a list of indices and their properties.
- -fcs|--false-colour-spectrogram-config <FALSE_COLOUR_SPECTROGRAM_CONFIG> Config file specifying directory containing indices.csv files and other parameters.
The --index-properties-config
config file contains a list of indices and their
display properties, including information about the brightness and contrast of
the RGB channels in the FC spectrograms. These values are extremely important in
determining the amount of detail that can be seen in FC spectrograms.
Config file parameters (SpectrogramFalseColourConfig.yml)
The colourSpectrogram config file gives you access to various parameters that control drawing of long-duration false-colour spectrograms. Here are the available parameters with default values.
Here is some additional information about the more important parameters:
ColorMap1
: "ACI-ENT-EVN". You can experiment with various combinations of indices but we find these to work well. See the tutorial at https://eprints.qut.edu.au/110634 for more information about the indices to which abbreviations refer.ColorMap2
: "BGN-PMN-R3D"ColourFilter
: This parameter determines the extent to which low index values are emphasized or de-emphasized in their colour representation. Its purpose is either to give emphasis to low intensity features or to de-emphasise them. This parameter applies a function that lies between y=x^-2 and y=x^2, i.e. between the square-root and the square.- When filterCoeff = 1.0, small values are maximally emphasized, i.e. y=sqrt(x).
- When filterCoeff = 0.0, the matrix remains unchanged, that is, y=x.
- When filterCoeff =-1.0, small values are maximally de-emphasized, i.e. y=x^2.
- Generally, usage suggests that a value of -0.25 is suitable. i.e. a slight de-emphasis.
FreqScale
: "Linear". This sets the type of y-axis or Hertz scale.- Eventual options will be:
- Linear
- Mel
- Linear62Octaves31Nyquist11025
- Linear125Octaves30Nyquist11025
- Octaves24Nyquist32000
- Linear125Octaves28Nyquist32000
- [TODO: Update] Only "Linear", "Mel", and "Linear125Octaves7Tones28Nyquist32000" are available at present.
- Eventual options will be:
YAxisTicInterval
: 1000. Horizontal grid lines will be placed every 1kHz interval. This can be set to 5000, if the recording sample rate is 96 kHz, or to 2000 if the recording sample rate is 44.1 kHz.