Tube.h 1.9 KB

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