grain1.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. /* GRAIN1.H */
  22. /*RWD 6:2001 purged decls of local statics */
  23. int process_grains(dataptr dz);
  24. int copygrain(int start,int end,int bufno,int *obufposition,dataptr dz);
  25. int crosbuf_grain_type3(int grainstart,int grainend,int bufno,int *obufpos,dataptr dz);
  26. int do_the_grain(int ibufpos,int *graincnt,int bufno,int gapcnt,int *obufpos,int grainstart,
  27. int crosbuf,int chans,int *grainadjusted,double samptotime,int *is_first_grain,dataptr dz);
  28. //TW REVISED
  29. int deal_with_last_grains(int ibufpos,int bufno,int *graincnt,int grainstart,int *grainadjusted,
  30. int *obufpos,int crosbuf,int chans,double samptotime,int *is_first_grain,dataptr dz);
  31. int swap_to_otherfile_and_readjust_counters(dataptr dz);
  32. int timestretch_iterative(dataptr dz);
  33. int assess_grains(dataptr dz);
  34. int grain_preprocess(int gate_paramno,dataptr dz);
  35. int timestretch_iterative2(dataptr dz);
  36. int timestretch_iterative3(dataptr dz);
  37. int grab_noise_and_expand(dataptr dz);
  38. int grev(dataptr dz);