Pitch_extensions.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _Pitch_extensions_h_
  2. #define _Pitch_extensions_h_
  3. /* Pitch_extensions.h
  4. *
  5. * Copyright (C) 1993-2017 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. djmw 19970408
  22. djmw 20020813 GPL header
  23. djmw 20110307 Latest modification
  24. */
  25. #include "Pitch.h"
  26. #include "PitchTier.h"
  27. void Pitch_Frame_addPitch (Pitch_Frame me, double f, double strength, int maxnCandidates);
  28. void Pitch_Frame_getPitch (Pitch_Frame me, double *f, double *strength);
  29. void Pitch_Frame_resizeStrengths (Pitch_Frame me, double maxStrength, double unvoicedCriterium);
  30. autoPitch Pitch_scaleTime (Pitch me, double scaleFactor);
  31. /* Scale time domain and pitches:
  32. xmin' = xmin; dx' = dx * scaleFactor; x1' = xmin + 0.5 * dx';
  33. xmax' = xmin + nx * dx';
  34. pitch[i]' = pitch[i]/scaleFactor;
  35. */
  36. autoPitch PitchTier_to_Pitch (PitchTier me, double dt, double pitchFloor, double pitchCeiling);
  37. #endif /* _Pitch_extensions_h_ */