| 1 |
#ifndef _Tube_h_ |
| 2 |
#define _Tube_h_ |
| 3 |
/* Tube.h |
| 4 |
* |
| 5 |
* Copyright (C) 1994-2018 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 "Sampled.h" |
| 22 |
|
| 23 |
#include "Tube_def.h" |
| 24 |
|
| 25 |
/* |
| 26 |
Tube's as a function of time. |
| 27 |
Tube_frame: c [1] -> mouth |
| 28 |
c [numberOfSegments] -> glottis. |
| 29 |
*/ |
| 30 |
|
| 31 |
void Tube_Frame_init (Tube_Frame me, integer numberOfSegments, double length); |
| 32 |
|
| 33 |
void Tube_Frame_free (Tube_Frame me); |
| 34 |
|
| 35 |
void Tube_Frames_rc_into_area (Tube_Frame me, Tube_Frame thee); |
| 36 |
|
| 37 |
void Tube_init (Tube me, double tmin, double tmax, integer nt, double dt, double t1, integer maxNumberOfSegments, double defaultLength); |
| 38 |
|
| 39 |
Thing_define (Area, Tube) { |
| 40 |
}; |
| 41 |
|
| 42 |
/* |
| 43 |
Areas as a function of time. |
| 44 |
units in m^2. |
| 45 |
*/ |
| 46 |
|
| 47 |
void Area_init (Area me, double tmin, double tmax, integer nt, double dt, double t1, integer maxNumberOfSegments, double defaultLength); |
| 48 |
|
| 49 |
autoArea Area_create (double tmin, double tmax, integer nt, double dt, double t1, integer maxNumberOfSegments, double defaultLength); |
| 50 |
|
| 51 |
Thing_define (RC, Tube) { |
| 52 |
}; |
| 53 |
|
| 54 |
// Reflection Coefficients as a function of time. |
| 55 |
|
| 56 |
void RC_init (RC me, double tmin, double tmax, integer nt, double dt, double t1, integer maxnCoefficients, double defaultLength); |
| 57 |
|
| 58 |
autoRC RC_create (double tmin, double tmax, integer nt, double dt, double t1, integer maxnCoefficients, double defaultLength); |
| 59 |
|
| 60 |
#endif // _Tube_h_ |