edit.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (c) 1983-2013 Trevor Wishart and Composers Desktop Project Ltd
  3. * http://www.trevorwishart.co.uk
  4. * http://www.composersdesktop.com
  5. *
  6. This file is part of the CDP System.
  7. The CDP System is free software; you can redistribute it
  8. and/or modify it under the terms of the GNU Lesser General Public
  9. License as published by the Free Software Foundation; either
  10. version 2.1 of the License, or (at your option) any later version.
  11. The CDP System is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU Lesser General Public License for more details.
  15. You should have received a copy of the GNU Lesser General Public
  16. License along with the CDP System; if not, write to the Free Software
  17. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  18. 02111-1307 USA
  19. *
  20. */
  21. #define IS_GROUCHO_COMPILE (1)
  22. #define EDIT_SPLICELEN (15.0)
  23. #define EDIT_SPLICEMAX (5000.0)
  24. #define EDIT_MAXGAIN (128.0)
  25. #define MINOUTDUR (0.05)
  26. #define MIN_SUPRESS (1000)
  27. int create_edit_buffers(dataptr dz);
  28. int create_twixt_buffers(dataptr dz);
  29. int edit_pconsistency(dataptr dz);
  30. int edit_preprocess(dataptr dz);
  31. int twixt_preprocess(dataptr dz);
  32. int sphinx_preprocess(dataptr dz);
  33. int do_cut(dataptr dz);
  34. int do_zcut(dataptr dz);
  35. int do_excise(dataptr dz);
  36. int do_insert(dataptr dz);
  37. int do_insertsil_many(dataptr dz);
  38. int do_joining(dataptr dz);
  39. int do_patterned_joining(dataptr dz); /*TW March 2004 */
  40. int do_randcuts(dataptr dz);
  41. int do_randchunks(dataptr dz);
  42. int do_twixt(dataptr dz);
  43. int get_switchtime_data(char *filename,dataptr dz);
  44. int get_multi_switchtime_data(char *filename,dataptr dz);
  45. int cut_many(dataptr dz);
  46. int do_noise_suppression(dataptr dz);
  47. int do_syllabs(dataptr dz); /*TW March 2004 */
  48. int do_many_zcuts(dataptr dz);
  49. #define SPLICELEN (dz->ringsize) /* dz->ringsize being used to store SPLICELEN */
  50. /* danger, don't use RING functions anywhere in sfedit functions !! */