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.

201 lines
6.8KB

  1. // Copyright 2012 Olivier Gillet.
  2. //
  3. // Author: Olivier Gillet (ol.gillet@gmail.com)
  4. //
  5. // Permission is hereby granted, free of charge, to any person obtaining a copy
  6. // of this software and associated documentation files (the "Software"), to deal
  7. // in the Software without restriction, including without limitation the rights
  8. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. // copies of the Software, and to permit persons to whom the Software is
  10. // furnished to do so, subject to the following conditions:
  11. //
  12. // The above copyright notice and this permission notice shall be included in
  13. // all copies or substantial portions of the Software.
  14. //
  15. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21. // THE SOFTWARE.
  22. //
  23. // See http://creativecommons.org/licenses/MIT/ for more information.
  24. //
  25. // -----------------------------------------------------------------------------
  26. //
  27. // Resources definitions.
  28. //
  29. // Automatically generated with:
  30. // make resources
  31. #ifndef BRAIDS_RESOURCES_H_
  32. #define BRAIDS_RESOURCES_H_
  33. #include "stmlib/stmlib.h"
  34. namespace braids {
  35. typedef uint8_t ResourceId;
  36. extern const char* string_table[];
  37. extern const uint16_t* lookup_table_table[];
  38. extern const int16_t* lookup_table_signed_table[];
  39. extern const uint32_t* lookup_table_hr_table[];
  40. extern const int16_t* waveform_table[];
  41. extern const int16_t* waveshaper_table[];
  42. extern const uint8_t* wt_table[];
  43. extern const uint16_t* char_table[];
  44. extern const uint16_t lut_resonator_coefficient[];
  45. extern const uint16_t lut_resonator_scale[];
  46. extern const uint16_t lut_svf_cutoff[];
  47. extern const uint16_t lut_svf_damp[];
  48. extern const uint16_t lut_svf_scale[];
  49. extern const uint16_t lut_granular_envelope[];
  50. extern const uint16_t lut_granular_envelope_rate[];
  51. extern const uint16_t lut_bowing_envelope[];
  52. extern const uint16_t lut_bowing_friction[];
  53. extern const uint16_t lut_blowing_envelope[];
  54. extern const uint16_t lut_flute_body_filter[];
  55. extern const uint16_t lut_fm_frequency_quantizer[];
  56. extern const uint16_t lut_vco_detune[];
  57. extern const uint16_t lut_bell[];
  58. extern const uint16_t lut_env_expo[];
  59. extern const int16_t lut_blowing_jet[];
  60. extern const uint32_t lut_oscillator_increments[];
  61. extern const uint32_t lut_oscillator_delays[];
  62. extern const uint32_t lut_env_portamento_increments[];
  63. extern const int16_t wav_formant_sine[];
  64. extern const int16_t wav_formant_square[];
  65. extern const int16_t wav_sine[];
  66. extern const int16_t wav_bandlimited_comb_0[];
  67. extern const int16_t wav_bandlimited_comb_1[];
  68. extern const int16_t wav_bandlimited_comb_2[];
  69. extern const int16_t wav_bandlimited_comb_3[];
  70. extern const int16_t wav_bandlimited_comb_4[];
  71. extern const int16_t wav_bandlimited_comb_5[];
  72. extern const int16_t wav_bandlimited_comb_6[];
  73. extern const int16_t wav_bandlimited_comb_7[];
  74. extern const int16_t wav_bandlimited_comb_8[];
  75. extern const int16_t wav_bandlimited_comb_9[];
  76. extern const int16_t wav_bandlimited_comb_10[];
  77. extern const int16_t wav_bandlimited_comb_11[];
  78. extern const int16_t wav_bandlimited_comb_12[];
  79. extern const int16_t wav_bandlimited_comb_13[];
  80. extern const int16_t wav_bandlimited_comb_14[];
  81. extern const int16_t ws_moderate_overdrive[];
  82. extern const int16_t ws_violent_overdrive[];
  83. extern const int16_t ws_sine_fold[];
  84. extern const int16_t ws_tri_fold[];
  85. extern const uint8_t wt_waves[];
  86. extern const uint8_t wt_map[];
  87. extern const uint8_t wt_code[];
  88. extern const uint16_t chr_characters[];
  89. #define STR_DUMMY 0 // dummy
  90. #define LUT_RESONATOR_COEFFICIENT 0
  91. #define LUT_RESONATOR_COEFFICIENT_SIZE 129
  92. #define LUT_RESONATOR_SCALE 1
  93. #define LUT_RESONATOR_SCALE_SIZE 129
  94. #define LUT_SVF_CUTOFF 2
  95. #define LUT_SVF_CUTOFF_SIZE 257
  96. #define LUT_SVF_DAMP 3
  97. #define LUT_SVF_DAMP_SIZE 257
  98. #define LUT_SVF_SCALE 4
  99. #define LUT_SVF_SCALE_SIZE 257
  100. #define LUT_GRANULAR_ENVELOPE 5
  101. #define LUT_GRANULAR_ENVELOPE_SIZE 513
  102. #define LUT_GRANULAR_ENVELOPE_RATE 6
  103. #define LUT_GRANULAR_ENVELOPE_RATE_SIZE 257
  104. #define LUT_BOWING_ENVELOPE 7
  105. #define LUT_BOWING_ENVELOPE_SIZE 752
  106. #define LUT_BOWING_FRICTION 8
  107. #define LUT_BOWING_FRICTION_SIZE 257
  108. #define LUT_BLOWING_ENVELOPE 9
  109. #define LUT_BLOWING_ENVELOPE_SIZE 392
  110. #define LUT_FLUTE_BODY_FILTER 10
  111. #define LUT_FLUTE_BODY_FILTER_SIZE 128
  112. #define LUT_FM_FREQUENCY_QUANTIZER 11
  113. #define LUT_FM_FREQUENCY_QUANTIZER_SIZE 129
  114. #define LUT_VCO_DETUNE 12
  115. #define LUT_VCO_DETUNE_SIZE 257
  116. #define LUT_BELL 13
  117. #define LUT_BELL_SIZE 257
  118. #define LUT_ENV_EXPO 14
  119. #define LUT_ENV_EXPO_SIZE 257
  120. #define LUT_BLOWING_JET 0
  121. #define LUT_BLOWING_JET_SIZE 257
  122. #define LUT_OSCILLATOR_INCREMENTS 0
  123. #define LUT_OSCILLATOR_INCREMENTS_SIZE 97
  124. #define LUT_OSCILLATOR_DELAYS 1
  125. #define LUT_OSCILLATOR_DELAYS_SIZE 97
  126. #define LUT_ENV_PORTAMENTO_INCREMENTS 2
  127. #define LUT_ENV_PORTAMENTO_INCREMENTS_SIZE 128
  128. #define WAV_FORMANT_SINE 0
  129. #define WAV_FORMANT_SINE_SIZE 256
  130. #define WAV_FORMANT_SQUARE 1
  131. #define WAV_FORMANT_SQUARE_SIZE 256
  132. #define WAV_SINE 2
  133. #define WAV_SINE_SIZE 257
  134. #define WAV_BANDLIMITED_COMB_0 3
  135. #define WAV_BANDLIMITED_COMB_0_SIZE 257
  136. #define WAV_BANDLIMITED_COMB_1 4
  137. #define WAV_BANDLIMITED_COMB_1_SIZE 257
  138. #define WAV_BANDLIMITED_COMB_2 5
  139. #define WAV_BANDLIMITED_COMB_2_SIZE 257
  140. #define WAV_BANDLIMITED_COMB_3 6
  141. #define WAV_BANDLIMITED_COMB_3_SIZE 257
  142. #define WAV_BANDLIMITED_COMB_4 7
  143. #define WAV_BANDLIMITED_COMB_4_SIZE 257
  144. #define WAV_BANDLIMITED_COMB_5 8
  145. #define WAV_BANDLIMITED_COMB_5_SIZE 257
  146. #define WAV_BANDLIMITED_COMB_6 9
  147. #define WAV_BANDLIMITED_COMB_6_SIZE 257
  148. #define WAV_BANDLIMITED_COMB_7 10
  149. #define WAV_BANDLIMITED_COMB_7_SIZE 257
  150. #define WAV_BANDLIMITED_COMB_8 11
  151. #define WAV_BANDLIMITED_COMB_8_SIZE 257
  152. #define WAV_BANDLIMITED_COMB_9 12
  153. #define WAV_BANDLIMITED_COMB_9_SIZE 257
  154. #define WAV_BANDLIMITED_COMB_10 13
  155. #define WAV_BANDLIMITED_COMB_10_SIZE 257
  156. #define WAV_BANDLIMITED_COMB_11 14
  157. #define WAV_BANDLIMITED_COMB_11_SIZE 257
  158. #define WAV_BANDLIMITED_COMB_12 15
  159. #define WAV_BANDLIMITED_COMB_12_SIZE 257
  160. #define WAV_BANDLIMITED_COMB_13 16
  161. #define WAV_BANDLIMITED_COMB_13_SIZE 257
  162. #define WAV_BANDLIMITED_COMB_14 17
  163. #define WAV_BANDLIMITED_COMB_14_SIZE 257
  164. #define WS_MODERATE_OVERDRIVE 0
  165. #define WS_MODERATE_OVERDRIVE_SIZE 257
  166. #define WS_VIOLENT_OVERDRIVE 1
  167. #define WS_VIOLENT_OVERDRIVE_SIZE 257
  168. #define WS_SINE_FOLD 2
  169. #define WS_SINE_FOLD_SIZE 257
  170. #define WS_TRI_FOLD 3
  171. #define WS_TRI_FOLD_SIZE 257
  172. #define WT_WAVES 0
  173. #define WT_WAVES_SIZE 33024
  174. #define WT_MAP 1
  175. #define WT_MAP_SIZE 256
  176. #define WT_CODE 2
  177. #define WT_CODE_SIZE 1064
  178. #define CHR_CHARACTERS 0
  179. #define CHR_CHARACTERS_SIZE 256
  180. } // namespace braids
  181. #endif // BRAIDS_RESOURCES_H_