| 1 | #cxx . . $ `<file>/dwtools/Sound_and_Spectrogram_extensions.h`/ifndef _Sound_and_Spectrogram_extensions_h_ |
| 2 | #define _Sound_and_Spectrogram_extensions_h_cxx . . $ `dwtools/Sound_and_Spectrogram_extensions.h:2:9`! |
| 3 | /* Sound_and_Spectrogram_extensions.h |
| 4 | * |
| 5 | * Copyright (C) 2014-2015,2023 David Weenink |
| 6 | * |
| 7 | * This code is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or (at |
| 10 | * your option) any later version. |
| 11 | * |
| 12 | * This code is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | /* |
| 22 | djmw 20140914 |
| 23 | */ |
| 24 | |
| 25 | #include "Spectrogram_extensions.h"cxx . . $ `<file>/dwtools/Spectrogram_extensions.h`/ |
| 26 | #include "Pitch.h"cxx . . $ `<file>/fon/Pitch.h`/ |
| 27 | #include "Sound.h"cxx . . $ `<file>/fon/Sound.h`/ |
| 28 | |
| 29 | autoBarkSpectrogramcxx . . $ autoBarkSpectrogram# Sound_to_BarkSpectrogramcxx . . $ Sound_to_BarkSpectrogram(2a7e1fd26093cab). (Soundcxx . . $ Sound# me, double analysisWidth, double dt, |
| 30 | double f1_bark, double fmax_bark, double df_bark); |
| 31 | /* |
| 32 | Filtering with filters on a Bark scale as defined by |
| 33 | Andrew Sekey & Brian Hanson (1984), "Improved 1-Bark bandwidth |
| 34 | "auditory filter", Jasa 75, 1902-1904. |
| 35 | Although not explicitly stated the filter function is defined in the |
| 36 | power domain. |
| 37 | 10 log F(z) = 15.8 + 7.5(z + 0.5) - 17.5 * sqrt(1 + (z + 0.5)^2) |
| 38 | */ |
| 39 | |
| 40 | autoMelSpectrogramcxx . . $ autoMelSpectrogram# Sound_to_MelSpectrogramcxx . . $ Sound_to_MelSpectrogram(528140ad90e7d0ad). (Soundcxx . . $ Sound# me, double analysisWidth, double dt, |
| 41 | double f1_mel, double fmax_mel, double df_mel); |
| 42 | |
| 43 | autoSpectrogramcxx . . $ autoSpectrogram# Sound_to_Spectrogram_pitchDependentcxx . . $ Sound_to_Spectrogram_pitchDependent(2be3a662e82e66d1). (Soundcxx . . $ Sound# me, double analysisWidth, |
| 44 | double dt, double f1_hz, double fmax_hz, double df_hz, double relative_bw, |
| 45 | double pitchFloor, double pitchCeiling); |
| 46 | |
| 47 | autoSpectrogramcxx . . $ autoSpectrogram# Sound_Pitch_to_Spectrogramcxx . . $ Sound_Pitch_to_Spectrogram(2f4bc0119ecc15c8). (Soundcxx . . $ Sound# me, Pitchcxx . . $ Pitch# thee, |
| 48 | double analysisWidth, double dt, double f1_hz, double fmax_hz, |
| 49 | double df_hz, double relative_bw); |
| 50 | |
| 51 | autoSoundcxx . . $ autoSound# BandFilterSpectrograms_crossCorrelatecxx . . $ BandFilterSpectrograms_crossCorrelate(16c861ee153843f6). (BandFilterSpectrogramcxx . . $ BandFilterSpectrogram# me, BandFilterSpectrogramcxx . . $ BandFilterSpectrogram# thee, enum kSounds_convolve_scalingcxx . . $ kSounds_convolve_scaling# scaling, enum kSounds_convolve_signalOutsideTimeDomaincxx . . $ kSounds_convolve_signalOutsideTimeDomain# signalOutsideTimeDomain); |
| 52 | |
| 53 | autoSoundcxx . . $ autoSound# BandFilterSpectrograms_convolvecxx . . $ BandFilterSpectrograms_convolve(16c861ee153843f6). (BandFilterSpectrogramcxx . . $ BandFilterSpectrogram# me, BandFilterSpectrogramcxx . . $ BandFilterSpectrogram# thee, enum kSounds_convolve_scalingcxx . . $ kSounds_convolve_scaling# scaling, enum kSounds_convolve_signalOutsideTimeDomaincxx . . $ kSounds_convolve_signalOutsideTimeDomain# signalOutsideTimeDomain); |
| 54 | |
| 55 | |
| 56 | #endif /* _Sound_and_Spectrogram_extensions_h_ */ |