| 1 | #cxx . . $ `<file>/dwtools/ConstantQSpectrograms.h`/ifndef _ConstantQSpectrograms_h_ |
| 2 | #define _ConstantQSpectrograms_h_cxx . . $ `dwtools/ConstantQSpectrograms.h:2:9`! |
| 3 | /* ConstantQSpectrograms.h |
| 4 | * |
| 5 | * Copyright (C) 2021-2022 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 | #include "Graphics.h"cxx . . $ `<file>/sys/Graphics.h`/ |
| 22 | #include "Matrix.h"cxx . . $ `<file>/fon/Matrix.h`/ |
| 23 | #include "MultiSampledSpectrogram.h"cxx . . $ `<file>/dwtools/MultiSampledSpectrogram.h`/ |
| 24 | #include "melder.h"cxx . . $ `<file>/melder/melder.h`/ |
| 25 | |
| 26 | Thing_definecxx . . $ structConstantQLog2FSpectrogram# (ConstantQLog2FSpectrogram, MultiSampledSpectrogram) { |
| 27 | void v1_infocxx . . $ structConstantQLog2FSpectrogram#v1_info(49f6e7a06ebc5aa8). () |
| 28 | override; |
| 29 | double v_getValueAtSamplecxx . . $ structConstantQLog2FSpectrogram#v_getValueAtSample(8bbfc6ce471470c9). (integercxx . . $ integer# ifreq, integercxx . . $ integer# iframe, int unit) const |
| 30 | override; |
| 31 | double v_myFrequencyUnitToHertzcxx . . $ structConstantQLog2FSpectrogram#v_myFrequencyUnitToHertz(7e3a3c6b59947c6d). (double log2_f) const |
| 32 | override; |
| 33 | double v_hertzToMyFrequencyUnitcxx . . $ structConstantQLog2FSpectrogram#v_hertzToMyFrequencyUnit(7e3a3c6b59947c6d). (double f_hz) const |
| 34 | override; |
| 35 | }; |
| 36 | |
| 37 | autoConstantQLog2FSpectrogramcxx . . $ autoConstantQLog2FSpectrogram# ConstantQLog2FSpectrogram_createcxx . . $ ConstantQLog2FSpectrogram_create(ec02a1924e4f27e8). (double tmin, double tmax, double f1, double fmax, integercxx . . $ integer# numberOfBinsPerOctave, double frequencyResolutionInBins); |
| 38 | |
| 39 | void ConstantQLog2FSpectrogram_paintcxx . . $ ConstantQLog2FSpectrogram_paint(7044c70a4c992fd2). (ConstantQLog2FSpectrogramcxx . . $ ConstantQLog2FSpectrogram# me, Graphicscxx . . $ Graphics# g, double tmin, double tmax, double fmin, double fmax, double dBRange, bool garnish); |
| 40 | |
| 41 | double ConstantQLog2FSpectrogram_getQualityFactorcxx . . $ ConstantQLog2FSpectrogram_getQualityFactor(bdefd67d161a979e). (ConstantQLog2FSpectrogramcxx . . $ ConstantQLog2FSpectrogram# me); |
| 42 | |
| 43 | void ConstantQLog2FSpectrogram_formulacxx . . $ ConstantQLog2FSpectrogram_formula(d1edde02b20c8ead). (ConstantQLog2FSpectrogramcxx . . $ ConstantQLog2FSpectrogram# me, conststring32cxx . . $ conststring32# formula, Interpretercxx . . $ Interpreter# interpreter); |
| 44 | |
| 45 | void ConstantQLog2FSpectrogram_formula_partcxx . . $ ConstantQLog2FSpectrogram_formula_part(d93b2f8b39da4198). (ConstantQLog2FSpectrogramcxx . . $ ConstantQLog2FSpectrogram# me, double fromTime, double toTime, double fromFrequency, double toFrequency, conststring32cxx . . $ conststring32# formula, Interpretercxx . . $ Interpreter# interpreter); |
| 46 | |
| 47 | autoConstantQLog2FSpectrogramcxx . . $ autoConstantQLog2FSpectrogram# ConstantQLog2FSpectrogram_translateSpectrumcxx . . $ ConstantQLog2FSpectrogram_translateSpectrum(decf33055da53aef). (ConstantQLog2FSpectrogramcxx . . $ ConstantQLog2FSpectrogram# me, double fromTime, double toTime, double fromFrequency, double shiftNumberOfBins); |
| 48 | |
| 49 | Thing_definecxx . . $ autoGaborSpectrogram# (GaborSpectrogram, MultiSampledSpectrogram) { |
| 50 | void v1_infocxx . . $ structGaborSpectrogram#v1_info(49f6e7a06ebc5aa8). () |
| 51 | override; |
| 52 | double v_myFrequencyUnitToHertzcxx . . $ structGaborSpectrogram#v_myFrequencyUnitToHertz(7e3a3c6b59947c6d). (double f) const |
| 53 | override { return f; } |
| 54 | double v_hertzToMyFrequencyUnitcxx . . $ structGaborSpectrogram#v_hertzToMyFrequencyUnit(7e3a3c6b59947c6d). (double f) const |
| 55 | override { return f; } |
| 56 | }; |
| 57 | |
| 58 | void GaborSpectrogram_paintcxx . . $ GaborSpectrogram_paint(943fc4f4780261aa). (GaborSpectrogramcxx . . $ GaborSpectrogram# me, Graphicscxx . . $ Graphics# g, double tmin, double tmax, double fmin, double fmax, double dBRange, bool garnish); |
| 59 | |
| 60 | autoGaborSpectrogramcxx . . $ autoGaborSpectrogram# GaborSpectrogram_createcxx . . $ GaborSpectrogram_create(25d0239ed9e3fa48). (double tmin, double tmax, double fmax, double frequencyResolution, double df); |
| 61 | |
| 62 | #endif /* ConstantQSpectrograms_h_ */ |