LFCC.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* LFCC.cpp
  2. *
  3. * Linear Frequency Cepstral Coefficients class.
  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 20001228
  22. djmw 20020813 GPL header
  23. djmw 20110304 Thing_new
  24. */
  25. #include "LFCC.h"
  26. Thing_implement (LFCC, CC, 1);
  27. autoLFCC LFCC_create (double tmin, double tmax, integer nt, double dt, double t1, integer maximumNumberOfCoefficients, double fmin, double fmax) {
  28. try {
  29. autoLFCC me = Thing_new (LFCC);
  30. CC_init (me.get(), tmin, tmax, nt, dt, t1, maximumNumberOfCoefficients, fmin, fmax);
  31. return me;
  32. } catch (MelderError) {
  33. Melder_throw (U"LFCC not created.");
  34. }
  35. }
  36. /* End of file LFCC.cpp */