LPC.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef _LPC_h_
  2. #define _LPC_h_
  3. /* LPC.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. #include "Matrix.h"
  21. #include "Graphics.h"
  22. #include "LPC_def.h"
  23. /*
  24. From Sampled:
  25. xmin, xmax : range of time (s)
  26. x1 : position of first frame (s)
  27. dx : step size (s)
  28. nx : number of frames
  29. */
  30. void LPC_init (LPC me, double tmin, double tmax, integer nt, double dt, double t1, integer predictionOrder, double samplingPeriod);
  31. autoLPC LPC_create (double tmin, double tmax, integer nt, double dt, double t1, integer predictionOrder, double samplingPeriod);
  32. void LPC_drawGain (LPC me, Graphics g, double t1, double t2, double gmin, double gmax, bool garnish);
  33. void LPC_drawPoles (LPC me, Graphics g, double time, bool garnish);
  34. autoMatrix LPC_downto_Matrix_lpc (LPC me);
  35. autoMatrix LPC_downto_Matrix_rc (LPC me);
  36. autoMatrix LPC_downto_Matrix_area (LPC me);
  37. /******************* Frames ************************************************/
  38. void LPC_Frame_init (LPC_Frame me, integer nCoefficients);
  39. #endif /* _LPC_h_ */