Debian Codegraph @

fon/Spectrum_def.h

raw
1 /* Spectrum_def.h
2 *
3 * Copyright (C) 2002-2005,2011,2015-2018,2022,2023 Paul Boersma
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 2 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
20 #define ooSTRUCT Spectrum
21 oo_DEFINE_CLASS (Spectrum, Matrix)
22
23 #if oo_READING
24 oo_VERSION_UNTIL (1)
25 for (integer i = 1; i <= our nx; i ++)
26 our z [2] [i] = - our z [2] [i];
27 oo_VERSION_END
28 #endif
29
30 #if oo_DECLARING
31 void v1_info ()
32 override;
33 int v_domainQuantity () const
34 override { return MelderQuantity_FREQUENCY_HERTZ; }
35 double v_getValueAtSample (integer isamp, integer which, int units) const
36 override;
37 #endif
38
39 oo_END_CLASS (Spectrum)
40 #undef ooSTRUCT
41
42
43 /* End of file Spectrum_def.h */