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.

187 lines
6.6KB

  1. // Copyright 2013 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 TIDES_RESOURCES_H_
  32. #define TIDES_RESOURCES_H_
  33. #include "stmlib/stmlib.h"
  34. namespace tides {
  35. typedef uint8_t ResourceId;
  36. extern const uint16_t* lookup_table_table[];
  37. extern const uint32_t* lookup_table_32_table[];
  38. extern const int16_t* waveform_table[];
  39. extern const int16_t* wavetable_table[];
  40. extern const int16_t* waveshaper_table[];
  41. extern const uint16_t lut_attenuverter_curve[];
  42. extern const uint16_t lut_slope_compression[];
  43. extern const uint32_t lut_increments[];
  44. extern const uint32_t lut_cutoff[];
  45. extern const int16_t wav_sine1024[];
  46. extern const int16_t wav_sine128[];
  47. extern const int16_t wav_sine64[];
  48. extern const int16_t wav_sine16[];
  49. extern const int16_t wav_bandlimited_parabola_0[];
  50. extern const int16_t wav_bandlimited_parabola_1[];
  51. extern const int16_t wav_bandlimited_parabola_2[];
  52. extern const int16_t wav_bandlimited_parabola_3[];
  53. extern const int16_t wav_bandlimited_parabola_4[];
  54. extern const int16_t wav_bandlimited_parabola_5[];
  55. extern const int16_t wav_bandlimited_parabola_6[];
  56. extern const int16_t wav_bandlimited_parabola_7[];
  57. extern const int16_t wav_bandlimited_parabola_8[];
  58. extern const int16_t wav_bandlimited_parabola_9[];
  59. extern const int16_t wav_bandlimited_parabola_10[];
  60. extern const int16_t wav_bandlimited_parabola_11[];
  61. extern const int16_t wav_bandlimited_parabola_12[];
  62. extern const int16_t wav_bandlimited_parabola_13[];
  63. extern const int16_t wav_bandlimited_parabola_14[];
  64. extern const int16_t wav_bandlimited_parabola_15[];
  65. extern const int16_t wav_inverse_tan_audio[];
  66. extern const int16_t wav_inverse_sin_audio[];
  67. extern const int16_t wav_linear_audio[];
  68. extern const int16_t wav_sin_audio[];
  69. extern const int16_t wav_tan_audio[];
  70. extern const int16_t wav_reversed_control[];
  71. extern const int16_t wav_spiky_exp_control[];
  72. extern const int16_t wav_spiky_control[];
  73. extern const int16_t wav_linear_control[];
  74. extern const int16_t wav_bump_control[];
  75. extern const int16_t wav_bump_exp_control[];
  76. extern const int16_t wav_normal_control[];
  77. extern const int16_t wav_bipolar_fold[];
  78. extern const int16_t wav_unipolar_fold[];
  79. extern const int16_t wt_waves[];
  80. extern const int16_t ws_smooth_bipolar_fold[] IN_RAM;
  81. #define LUT_ATTENUVERTER_CURVE 0
  82. #define LUT_ATTENUVERTER_CURVE_SIZE 257
  83. #define LUT_SLOPE_COMPRESSION 1
  84. #define LUT_SLOPE_COMPRESSION_SIZE 257
  85. #define LUT_INCREMENTS 0
  86. #define LUT_INCREMENTS_SIZE 97
  87. #define LUT_CUTOFF 1
  88. #define LUT_CUTOFF_SIZE 513
  89. #define WAV_SINE1024 0
  90. #define WAV_SINE1024_SIZE 1025
  91. #define WAV_SINE128 1
  92. #define WAV_SINE128_SIZE 129
  93. #define WAV_SINE64 2
  94. #define WAV_SINE64_SIZE 65
  95. #define WAV_SINE16 3
  96. #define WAV_SINE16_SIZE 17
  97. #define WAV_BANDLIMITED_PARABOLA_0 4
  98. #define WAV_BANDLIMITED_PARABOLA_0_SIZE 1025
  99. #define WAV_BANDLIMITED_PARABOLA_1 5
  100. #define WAV_BANDLIMITED_PARABOLA_1_SIZE 1025
  101. #define WAV_BANDLIMITED_PARABOLA_2 6
  102. #define WAV_BANDLIMITED_PARABOLA_2_SIZE 1025
  103. #define WAV_BANDLIMITED_PARABOLA_3 7
  104. #define WAV_BANDLIMITED_PARABOLA_3_SIZE 1025
  105. #define WAV_BANDLIMITED_PARABOLA_4 8
  106. #define WAV_BANDLIMITED_PARABOLA_4_SIZE 1025
  107. #define WAV_BANDLIMITED_PARABOLA_5 9
  108. #define WAV_BANDLIMITED_PARABOLA_5_SIZE 1025
  109. #define WAV_BANDLIMITED_PARABOLA_6 10
  110. #define WAV_BANDLIMITED_PARABOLA_6_SIZE 1025
  111. #define WAV_BANDLIMITED_PARABOLA_7 11
  112. #define WAV_BANDLIMITED_PARABOLA_7_SIZE 1025
  113. #define WAV_BANDLIMITED_PARABOLA_8 12
  114. #define WAV_BANDLIMITED_PARABOLA_8_SIZE 1025
  115. #define WAV_BANDLIMITED_PARABOLA_9 13
  116. #define WAV_BANDLIMITED_PARABOLA_9_SIZE 1025
  117. #define WAV_BANDLIMITED_PARABOLA_10 14
  118. #define WAV_BANDLIMITED_PARABOLA_10_SIZE 1025
  119. #define WAV_BANDLIMITED_PARABOLA_11 15
  120. #define WAV_BANDLIMITED_PARABOLA_11_SIZE 1025
  121. #define WAV_BANDLIMITED_PARABOLA_12 16
  122. #define WAV_BANDLIMITED_PARABOLA_12_SIZE 1025
  123. #define WAV_BANDLIMITED_PARABOLA_13 17
  124. #define WAV_BANDLIMITED_PARABOLA_13_SIZE 1025
  125. #define WAV_BANDLIMITED_PARABOLA_14 18
  126. #define WAV_BANDLIMITED_PARABOLA_14_SIZE 1025
  127. #define WAV_BANDLIMITED_PARABOLA_15 19
  128. #define WAV_BANDLIMITED_PARABOLA_15_SIZE 1025
  129. #define WAV_BANDLIMITED_PARABOLA_16 20
  130. #define WAV_BANDLIMITED_PARABOLA_16_SIZE 1025
  131. #define WAV_BANDLIMITED_PARABOLA_17 21
  132. #define WAV_BANDLIMITED_PARABOLA_17_SIZE 1025
  133. #define WAV_BANDLIMITED_PARABOLA_18 22
  134. #define WAV_BANDLIMITED_PARABOLA_18_SIZE 1025
  135. #define WAV_BANDLIMITED_PARABOLA_19 23
  136. #define WAV_BANDLIMITED_PARABOLA_19_SIZE 1025
  137. #define WAV_INVERSE_TAN_AUDIO 24
  138. #define WAV_INVERSE_TAN_AUDIO_SIZE 2049
  139. #define WAV_INVERSE_SIN_AUDIO 25
  140. #define WAV_INVERSE_SIN_AUDIO_SIZE 2049
  141. #define WAV_LINEAR_AUDIO 26
  142. #define WAV_LINEAR_AUDIO_SIZE 2049
  143. #define WAV_SIN_AUDIO 27
  144. #define WAV_SIN_AUDIO_SIZE 2049
  145. #define WAV_TAN_AUDIO 28
  146. #define WAV_TAN_AUDIO_SIZE 2049
  147. #define WAV_REVERSED_CONTROL 29
  148. #define WAV_REVERSED_CONTROL_SIZE 1025
  149. #define WAV_SPIKY_EXP_CONTROL 30
  150. #define WAV_SPIKY_EXP_CONTROL_SIZE 1025
  151. #define WAV_SPIKY_CONTROL 31
  152. #define WAV_SPIKY_CONTROL_SIZE 1025
  153. #define WAV_LINEAR_CONTROL 32
  154. #define WAV_LINEAR_CONTROL_SIZE 1025
  155. #define WAV_BUMP_CONTROL 33
  156. #define WAV_BUMP_CONTROL_SIZE 1025
  157. #define WAV_BUMP_EXP_CONTROL 34
  158. #define WAV_BUMP_EXP_CONTROL_SIZE 1025
  159. #define WAV_NORMAL_CONTROL 35
  160. #define WAV_NORMAL_CONTROL_SIZE 1025
  161. #define WAV_BIPOLAR_FOLD 36
  162. #define WAV_BIPOLAR_FOLD_SIZE 1025
  163. #define WAV_UNIPOLAR_FOLD 37
  164. #define WAV_UNIPOLAR_FOLD_SIZE 1025
  165. #define WT_WAVES 0
  166. #define WT_WAVES_SIZE 45746
  167. #define WS_SMOOTH_BIPOLAR_FOLD 0
  168. #define WS_SMOOTH_BIPOLAR_FOLD_SIZE 1025
  169. } // namespace tides
  170. #endif // TIDES_RESOURCES_H_