texture1.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. //REMOVED functions that are now LOCAL STATIC
  22. //int initialise_texture_structure(dataptr dz);
  23. //int set_up_and_fill_insample_buffers(insamptr **insound,dataptr dz);
  24. //int setup_texflag(texptr tex,dataptr dz);
  25. //int preset_some_internal_texture_params(dataptr dz);
  26. //int install_the_internal_flags(int total_flags,int internal_flags,dataptr dz);
  27. //int get_the_notedata(texptr tex,dataptr dz);
  28. int attenuate_input_sounds(dataptr dz);
  29. //int extend_timeset(dataptr dz);
  30. //int generate_timeset(dataptr dz);
  31. //int do_prespace(motifptr tset,dataptr dz);
  32. //int pre_space(noteptr thisnote,dataptr dz);
  33. //int assign_timeset_hfset_motifsets(dataptr dz);
  34. //int massage_params(dataptr dz);
  35. int prepare_texture_parameters(dataptr dz);
  36. int make_texture(dataptr dz);
  37. void upsort(double *scti,int scatcnt);
  38. double quantise(double thistime,double timegrid);
  39. int initperm(int ***permm,dataptr dz);
  40. int make_new_note(noteptr *thisnote);
  41. void swap(double *a,double *b);
  42. void iswap(int *a,int *b);
  43. //int get_the_notedatafile(char *str,dataptr dz);
  44. double octadjust(double thispitch);
  45. int do_amp_instr_dur(double *thisamp,unsigned char *thisinstr,double *thisdur,
  46. noteptr tsetnote,double thistime,dataptr dz);
  47. int make_shadow(motifptr tset,int *shadowsize,noteptr **shadow);
  48. int erase_shadow(int shadowsize,noteptr *shadow,motifptr tset);
  49. void setup_decor(double *pptop,double *ppbot,int *shadindex,noteptr *tsetnote,dataptr dz);
  50. int setup_ornament
  51. (double *timeadjust,double *thistime,int *gpsize,noteptr *phrlastnote,
  52. double multiplier,noteptr *phrasenote,int phrno,dataptr dz);
  53. int set_motif_amp
  54. (noteptr tsetnote,double *thisamp,int gpsize,double ampstep,noteptr phrasenote,
  55. double rangemult,double *phraseamp,int phrno,unsigned char amptype);
  56. int set_ornament_amp
  57. (double *phraseamp,noteptr *phrlastnote,double *thisamp,noteptr phrasenote,int phrno,
  58. noteptr tsetnote,double ampstep,double rangemult,int gpsize,dataptr dz);
  59. int set_group_params(noteptr tsetnote,noteptr thisnote,double gpdense,double ampstep,double *thisamp,
  60. double *thistime,double thisdur,dataptr dz);
  61. int check_next_phrasenote_exists(noteptr *phrasenote,int texflag,dataptr dz);
  62. noteptr getnextevent_to_decorate(noteptr tsetnote,int *shaddoindex,dataptr dz);
  63. double getnotetime(noteptr phrasenote,double time,double multiplier,double timeadjust,dataptr dz);
  64. int getmtfdur(noteptr tsetnote,noteptr phrasenote,double *dur,double multiplier,dataptr dz);
  65. int orn_or_mtf_amp_setup
  66. (int ampdirected,double *phrange,int phrno,double thisamp,int gpsize,double *rangemult,
  67. double *ampstep,unsigned char *amptype,unsigned char amptypestor,unsigned char amptypecnt,dataptr dz);
  68. int init_group_spatialisation
  69. (noteptr tsetnote,int shaddoindex,noteptr *shadow,int shadowsize,dataptr dz);
  70. int setspace(noteptr tsetnote,noteptr thisnote,int gpsize,dataptr dz);
  71. int do_mtf_params
  72. (noteptr thisnote,double thisamp,noteptr phrasenote,noteptr tsetnote,
  73. double ampdif,double notetime,double multiplier,dataptr dz);
  74. int setup_motif_or_ornament
  75. (double thistime,double *multiplier,int *phrno,noteptr *phrasenote,
  76. motifptr *phrase,dataptr dz);
  77. int position_and_size_decoration
  78. (double *thistime,double tsettime,double gpdense,int *gpsize,dataptr dz);
  79. int set_decor_amp
  80. (int ampdirected,double *thisamp,double *ampstep,int gpsize,unsigned char *amptype,
  81. unsigned char amptypecnt,unsigned char amptypestor,dataptr dz);
  82. int set_group_amp
  83. (noteptr tsetnote,double *thisamp,unsigned char *amptype, double *ampstep,int gpsize,
  84. unsigned char amptypecnt,unsigned char amptypestor,dataptr dz);
  85. int getvalue(int paramhi,int paramlo,double time,int z,double *val,dataptr dz);
  86. int igetvalue(int paramhi,int paramlo,double time,int z,int *ival,dataptr dz);
  87. int doperm(int k,int pindex,int *val,dataptr dz);
  88. noteptr gethipitch(noteptr tsetnote,int *shaddoindex);
  89. int do_grp_ins(unsigned char thisinstr,unsigned char *val,dataptr dz);
  90. int pscatx(double range,double bottom,int pindex,double *val,dataptr dz);
  91. int gettritype(int k,unsigned stor,unsigned char *val);
  92. int get_density_val(double thistime,double *gpdense,dataptr dz);
  93. int set_motifs(int phrcount,motifptr *phrase,int *phrnotecnt,double *phraseamp,
  94. double *phrange,noteptr *phrlastnote);
  95. int make_new_note(noteptr *thisnote);
  96. void del_note(noteptr thisnote,motifptr thismotif);
  97. int arrange_notes_in_timeorder(motifptr mtf);
  98. int do_texture(dataptr dz);
  99. int do_simple_hftexture(dataptr dz);
  100. int do_clumped_hftexture(dataptr dz);
  101. int produce_texture_sound(dataptr dz);
  102. //int texture_pconsistency(dataptr dz);