AmplitudeTier.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef _AmplitudeTier_h_
  2. #define _AmplitudeTier_h_
  3. /* AmplitudeTier.h
  4. *
  5. * Copyright (C) 2003-2011,2015,2017 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. #include "IntensityTier.h"
  21. #include "TableOfReal.h"
  22. #include "Sound.h"
  23. /********** class AmplitudeTier **********/
  24. Thing_define (AmplitudeTier, RealTier) {
  25. int v_domainQuantity ()
  26. override { return MelderQuantity_TIME_SECONDS; }
  27. };
  28. autoAmplitudeTier AmplitudeTier_create (double tmin, double tmax);
  29. void AmplitudeTier_draw (AmplitudeTier me, Graphics g, double tmin, double tmax,
  30. double ymin, double ymax, conststring32 method, bool garnish);
  31. autoAmplitudeTier PointProcess_upto_AmplitudeTier (PointProcess me, double soundPressure);
  32. autoAmplitudeTier IntensityTier_to_AmplitudeTier (IntensityTier me);
  33. autoIntensityTier AmplitudeTier_to_IntensityTier (AmplitudeTier me, double threshold_dB);
  34. autoTableOfReal AmplitudeTier_downto_TableOfReal (AmplitudeTier me);
  35. void Sound_AmplitudeTier_multiply_inplace (Sound me, AmplitudeTier intensity);
  36. autoSound Sound_AmplitudeTier_multiply (Sound me, AmplitudeTier intensity);
  37. autoAmplitudeTier PointProcess_Sound_to_AmplitudeTier_point (PointProcess me, Sound thee);
  38. autoAmplitudeTier PointProcess_Sound_to_AmplitudeTier_period (PointProcess me, Sound thee,
  39. double tmin, double tmax, double shortestPeriod, double longestPeriod, double maximumPeriodFactor);
  40. double AmplitudeTier_getShimmer_local (AmplitudeTier me, double shortestPeriod, double longestPeriod, double maximumAmplitudeFactor);
  41. double AmplitudeTier_getShimmer_local_dB (AmplitudeTier me, double shortestPeriod, double longestPeriod, double maximumAmplitudeFactor);
  42. double AmplitudeTier_getShimmer_apq3 (AmplitudeTier me, double shortestPeriod, double longestPeriod, double maximumAmplitudeFactor);
  43. double AmplitudeTier_getShimmer_apq5 (AmplitudeTier me, double shortestPeriod, double longestPeriod, double maximumAmplitudeFactor);
  44. double AmplitudeTier_getShimmer_apq11 (AmplitudeTier me, double shortestPeriod, double longestPeriod, double maximumAmplitudeFactor);
  45. double AmplitudeTier_getShimmer_dda (AmplitudeTier me, double shortestPeriod, double longestPeriod, double maximumAmplitudeFactor);
  46. autoSound AmplitudeTier_to_Sound (AmplitudeTier me, double samplingFrequency, integer interpolationDepth);
  47. /* End of file AmplitudeTier.h */
  48. #endif