| 1 | #cxx . . $ `<file>/fon/SpectrumTier.h`/ifndef _SpectrumTier_h_ |
| 2 | #define _SpectrumTier_h_cxx . . $ `fon/SpectrumTier.h:2:9`! |
| 3 | /* SpectrumTier.h |
| 4 | * |
| 5 | * Copyright (C) 2007,2010-2012,2014-2018,2020,2022-2024 Paul Boersma |
| 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. |
| 15 | * See the GNU 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 "RealTier.h"cxx . . $ `<file>/fon/RealTier.h`/ |
| 22 | #include "Graphics.h"cxx . . $ `<file>/sys/Graphics.h`/ |
| 23 | #include "Spectrum.h"cxx . . $ `<file>/fon/Spectrum.h`/ |
| 24 | |
| 25 | /********** class SpectrumTier **********/ |
| 26 | |
| 27 | Thing_definecxx . . $ SpectrumTier_Parent# (SpectrumTier, RealTier) { |
| 28 | void v1_infocxx . . $ structSpectrumTier#v1_info(49f6e7a06ebc5aa8). () |
| 29 | override; |
| 30 | int v_domainQuantitycxx . . $ structSpectrumTier#v_domainQuantity(455f465bc33b4cdf). () const |
| 31 | override { return MelderQuantity_FREQUENCY_HERTZcxx . . $ `melder/melder_quantity.h:23:9`!; } |
| 32 | conststring32cxx . . $ conststring32# v_getUnitTextcxx . . $ structSpectrumTier#v_getUnitText(4575e0692fb152c1). (integercxx . . $ integer# /* level */, int /* unit */, uint32cxx . . $ uint32# /* flags */) const |
| 33 | override { return U"Frequency (Hz)"; } |
| 34 | }; |
| 35 | |
| 36 | autoSpectrumTiercxx . . $ autoSpectrumTier# SpectrumTier_createcxx . . $ SpectrumTier_create(f37a4ac803fe2850). (double fmin, double fmax); |
| 37 | /* |
| 38 | Postconditions: |
| 39 | result -> xmin == fmin; |
| 40 | result -> xmax == fmax; |
| 41 | result -> points.size == 0; |
| 42 | */ |
| 43 | |
| 44 | void SpectrumTier_drawcxx . . $ SpectrumTier_draw(f3044d768d4ea5f5). (SpectrumTiercxx . . $ SpectrumTier# me, Graphicscxx . . $ Graphics# g, double fmin, double fmax, |
| 45 | double pmin, double pmax, bool garnish, conststring32cxx . . $ conststring32# method); |
| 46 | |
| 47 | void SpectrumTier_listcxx . . $ SpectrumTier_list(10c18286bcc555d5). (SpectrumTiercxx . . $ SpectrumTier# me, bool includeIndexes, bool includeFrequency, bool includePowerDensity); |
| 48 | |
| 49 | autoTablecxx . . $ autoTable# SpectrumTier_downto_Tablecxx . . $ SpectrumTier_downto_Table(37cd45cfbe4b728f). (SpectrumTiercxx . . $ SpectrumTier# me, bool includeIndexes, bool includeFrequency, bool includePowerDensity); |
| 50 | |
| 51 | autoSpectrumTiercxx . . $ autoSpectrumTier# Spectrum_to_SpectrumTier_peakscxx . . $ Spectrum_to_SpectrumTier_peaks(b46e03f03e7d3bf6). (Spectrumcxx . . $ Spectrum# me); |
| 52 | |
| 53 | /* End of file SpectrumTier.h */ |
| 54 | #endif |