| 1 | /* OptimalCeilingTier.cpp |
| 2 | * |
| 3 | * Copyright (C) 2015 David Weenink |
| 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 | #include "OptimalCeilingTier.h"cxx . . $ `<file>/dwtools/OptimalCeilingTier.h`/ |
| 20 | |
| 21 | Thing_implementcxx . . $ `sys/Thing.h:65:9`! (OptimalCeilingTier, RealTier, 0); |
| 22 | |
| 23 | autoOptimalCeilingTiercxx . . $ autoOptimalCeilingTier# OptimalCeilingTier_createcxx . . $ OptimalCeilingTier_create(c191ea138d70957d). (double tmin, double tmax) { |
| 24 | try { |
| 25 | autoOptimalCeilingTiercxx . . $ autoOptimalCeilingTier# me = Thing_newcxx . . $ `sys/Thing.h:514:9`! (OptimalCeilingTier); |
| 26 | RealTier_initcxx . . $ RealTier_init(d84c0874d617a544). (me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), tmin, tmax); |
| 27 | return mecxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).; |
| 28 | } catch (MelderErrorcxx . . $ MelderError#) { |
| 29 | Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"OptimalCeilingTier not created."); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | void OptimalCeilingTier_drawcxx . . $ OptimalCeilingTier_draw(6964790b8aef3302). (OptimalCeilingTiercxx . . $ OptimalCeilingTier# me, Graphicscxx . . $ Graphics# g, double tmin, double tmax, |
| 34 | double ymin, double ymax, conststring32cxx . . $ conststring32# method, bool garnish) |
| 35 | { |
| 36 | RealTier_drawcxx . . $ RealTier_draw(91d4c8857589b937). (me, g, tmin, tmax, ymin, ymax, garnish, method, U"Sound pressure (Pa)"); |
| 37 | } |
| 38 | |
| 39 | autoTableOfRealcxx . . $ autoTableOfReal# OptimalCeilingTier_downto_TableOfRealcxx . . $ OptimalCeilingTier_downto_TableOfReal(20e4795c3b70d1d7). (OptimalCeilingTiercxx . . $ OptimalCeilingTier# me) { |
| 40 | autoTableOfRealcxx . . $ autoTableOfReal# thee = RealTier_downto_TableOfRealcxx . . $ RealTier_downto_TableOfReal(94a239d0d7c55341). (me, U"Time (s)", U"Frequency (Hz)"); |
| 41 | return theecxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).; |
| 42 | } |
| 43 | |
| 44 | /* End of file OptimalCeilingTier.cpp */ |