Sound_and_LPC_robust.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _Sound_and_LPC_robust_h_
  2. #define _Sound_and_LPC_robust_h_
  3. /* Sound_and_LPC_robust.h
  4. *
  5. * Copyright (C) 1993-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. djmw 20030815 GPL header
  22. */
  23. #include "LPC.h"
  24. #include "Formant.h"
  25. #include "Sound.h"
  26. void LPC_Frames_Sound_huber (LPC_Frame me, Sound thee, LPC_Frame him, struct huber_struct *hs);
  27. /*int LPC_Frames_Sound_huber (LPC_Frame me, Sound thee, LPC_Frame him, void *huber);
  28. The gnu c compiler (version 3.3.1) complaints about having two LPC_Frame types
  29. in the argument list:
  30. error: two or more data types in declaration of `LPC_Frame_Sound_into_LPC_Frame_huber
  31. By defining a void pointer we circumvent the complaint.
  32. */
  33. autoLPC LPC_Sound_to_LPC_robust (LPC thee, Sound me, double analysisWidth,
  34. double preEmphasisFrequency, double k_stdev, int itermax, double tol, bool wantlocation);
  35. autoFormant Sound_to_Formant_robust (Sound me, double dt_in, double numberOfFormants, double maximumFrequency,
  36. double halfdt_window, double preemphasisFrequency, double safetyMargin, double k, int itermax, double tol, bool wantlocation);
  37. #endif /* _Sound_and_LPC_robust_h_ */