cdparams.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. /* floats version */
  22. #define CHECKBUTTON (0)
  23. #define SWITCHED (1)
  24. #define LINEAR (2)
  25. #define LOG (3)
  26. #define PLOG (4)
  27. #define FILE_OR_VAL (5)
  28. #define FILENAME (6)
  29. #define NUMERIC (7)
  30. #define GENERIC_FILENAME (8)
  31. #define STRING_A (10)
  32. #define STRING_B (11)
  33. #define STRING_C (12)
  34. #define STRING_D (13)
  35. #define TIMETYPE (14)
  36. #define SRATE (15)
  37. #define TWOFAC (16)
  38. #define WAVETYPE (17)
  39. #define POWTWO (18)
  40. #define MIDI (19)
  41. #define OCTAVES (20)
  42. #define CHORDSORT (21)
  43. #define DENSESORT (22)
  44. #define LOGNUMERIC (23)
  45. #define FILE_OR_VOWELS (24)
  46. /*GNU doesn't like duplcate definitions */
  47. #ifndef _STRUCTURES_H_INCLUDED
  48. #error cdparams.h: requires structures.h
  49. #endif
  50. //typedef struct applic *aplptr;
  51. int cdparams(int process,int mode,int filetype,int infilesize,int insams,int srate,
  52. int channels,int wanted,int wlength,int linecnt,float arate,float frametime,
  53. double nyquist,double duration);
  54. int parse_indata(int argc,char *argv[],int *process,int *mode,int *infilecnt,int *filetype,int *infilesize,
  55. int *insams,int *srate,int *channels,int *wanted,int *wlength,int *linecnt,
  56. float *arate,float *frametime,double *nyquist,double *duration);
  57. int set_legal_param_structure(int application_no,int mode, aplptr ap);
  58. int set_legal_option_and_variant_structure(int process,int mode,aplptr ap);
  59. int does_process_accept_conflicting_srates(int process);
  60. int deal_with_formants(int process,int mode,int channels,aplptr ap);
  61. int deal_with_special_data(int process,int mode,int srate,double duration,double nyquist,int wlength,int channels,aplptr ap);
  62. int get_param_names(int process,int mode,int total_params,aplptr ap);
  63. int get_param_ranges(int process,int mode,int total_params,double nyquist,float frametime,
  64. float arate,int srate,int wlength,int insams,
  65. int channels,int wanted,int filetype,int linecnt,double duration,aplptr ap);
  66. int setup_flagnames(int process,int mode,int bare_flags,aplptr ap);
  67. void mp_message(int process,int mode);
  68. int establish_display(int process,int mode,int total_params,float frametime,double duration,aplptr ap);