LineSpectralFrequencies.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef _LineSpectralFrequencies_h_
  2. #define _LineSpectralFrequencies_h_
  3. /* LineSpectralFrequencies.h
  4. *
  5. * Copyright (C) 2016-2018 David Weenink
  6. *
  7. * This program 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 program 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 program; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. #include "LPC.h"
  22. #include "Matrix.h"
  23. #include "Graphics.h"
  24. #include "LineSpectralFrequencies_def.h"
  25. /*
  26. From Sampled:
  27. xmin, xmax : range of time (s)
  28. x1 : position of first frame (s)
  29. dx : step size (s)
  30. nx : number of frames
  31. */
  32. void LineSpectralFrequencies_init (LineSpectralFrequencies me, double tmin, double tmax, integer nt, double dt, double t1, integer numberOfFrequencies, double maximumFrequency);
  33. autoLineSpectralFrequencies LineSpectralFrequencies_create (double tmin, double tmax, integer nt, double dt, double t1, integer numberOfFrequencies, double maximumFrequency);
  34. void LineSpectralFrequencies_drawFrequencies (LineSpectralFrequencies me, Graphics g, double fromTime, double toTime, double fmin, double fmax, bool garnish);
  35. autoMatrix LineSpectralFrequencies_downto_Matrix (LineSpectralFrequencies me);
  36. /******************* Frames ************************************************/
  37. void LineSpectralFrequencies_Frame_init (LineSpectralFrequencies_Frame me, integer numberOfFrequencies);
  38. #endif /* _LineSpectralFrequencies_h_ */