You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
3.9KB

  1. /* sndins.h -- Sndins for Snd/CLM
  2. *
  3. * Copyright (c) 2003-2012 Michael Scholz <mi-scholz@users.sourceforge.net>
  4. * All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. * 1. Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. * 2. Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the distribution.
  14. *
  15. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  16. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  17. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  18. * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  19. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  20. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  21. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  22. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  23. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  24. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  25. * SUCH DAMAGE.
  26. */
  27. #ifndef _SNDINS_H_
  28. #define _SNDINS_H_
  29. #undef __BEGIN_DECLS
  30. #undef __END_DECLS
  31. #ifdef __cplusplus
  32. #define __BEGIN_DECLS extern "C" {
  33. #define __END_DECLS }
  34. #else
  35. #define __BEGIN_DECLS
  36. #define __END_DECLS
  37. #endif
  38. __BEGIN_DECLS
  39. mus_any *mus_make_fcomb(mus_float_t scaler, int size,
  40. mus_float_t a0, mus_float_t a1);
  41. int mus_fcomb_p(mus_any *ptr);
  42. mus_float_t mus_fcomb(mus_any *ptr, mus_float_t input, mus_float_t ignored);
  43. mus_long_t ins_fm_violin(mus_float_t start, mus_float_t dur,
  44. mus_float_t freq, mus_float_t amp, mus_float_t fm_index,
  45. mus_float_t *amp_env, int amp_len,
  46. mus_float_t periodic_vibrato_rate,
  47. mus_float_t periodic_vibrato_amp,
  48. mus_float_t random_vibrato_rate,
  49. mus_float_t random_vibrato_amp, mus_float_t noise_freq,
  50. mus_float_t noise_amount, mus_float_t ind_noise_freq,
  51. mus_float_t ind_noise_amount, mus_float_t amp_noise_freq,
  52. mus_float_t amp_noise_amount, mus_float_t *gliss_env,
  53. int gliss_len, mus_float_t gliss_amount,
  54. mus_float_t *fm1_env, int fm1_len,
  55. mus_float_t *fm2_env, int fm2_len,
  56. mus_float_t *fm3_env, int fm3_len,
  57. mus_float_t fm1_rat, mus_float_t fm2_rat,
  58. mus_float_t fm3_rat, mus_float_t fm1_index,
  59. mus_float_t fm2_index, mus_float_t fm3_index,
  60. mus_float_t base, mus_float_t degree,
  61. mus_float_t distance, mus_float_t reverb_amount,
  62. bool index_type, bool no_waveshaping, mus_any *out,
  63. mus_any *rev, mus_interp_t mode);
  64. mus_long_t ins_jc_reverb(mus_float_t start, mus_float_t dur,
  65. mus_float_t volume, bool low_pass, bool doubled,
  66. mus_float_t delay1, mus_float_t delay2,
  67. mus_float_t delay3, mus_float_t delay4,
  68. mus_float_t *amp_env, int amp_len,
  69. mus_any *out, mus_any *rev);
  70. mus_long_t ins_nrev(mus_float_t start, mus_float_t dur,
  71. mus_float_t reverb_factor, mus_float_t lp_coeff,
  72. mus_float_t lp_out_coeff, mus_float_t output_scale,
  73. mus_float_t volume, mus_float_t *amp_env, int amp_len,
  74. mus_any *out, mus_any *rev);
  75. mus_long_t ins_freeverb(mus_float_t start, mus_float_t dur,
  76. mus_float_t room_decay, mus_float_t damping,
  77. mus_float_t global, mus_float_t predelay,
  78. mus_float_t output_gain, mus_float_t scale_room_decay,
  79. mus_float_t offset_room_decay, mus_float_t scale_damping,
  80. mus_float_t stereo_spread, int *combtuning, int comb_len,
  81. int *allpasstuning, int all_len, mus_any *output_mixer,
  82. mus_any *out, mus_any *rev);
  83. void Init_sndins(void);
  84. __END_DECLS
  85. #endif /* _SNDINS_H_ */
  86. /*
  87. * sndins.h ends here
  88. */