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.1KB

  1. // Copyright 2016 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 PLAITS_RESOURCES_H_
  32. #define PLAITS_RESOURCES_H_
  33. #include "stmlib/stmlib.h"
  34. namespace plaits {
  35. typedef uint8_t ResourceId;
  36. extern const float* lookup_table_table[];
  37. extern const int16_t* lookup_table_i16_table[];
  38. extern const int8_t* lookup_table_i8_table[];
  39. extern const int16_t* wavetables_table[];
  40. extern const float lut_sine[];
  41. extern const float lut_fm_frequency_quantizer[];
  42. extern const float lut_fold[];
  43. extern const float lut_fold_2[];
  44. extern const float lut_stiffness[];
  45. extern const float lut_svf_shift[];
  46. extern const int16_t lut_ws_inverse_tan[];
  47. extern const int16_t lut_ws_inverse_sin[];
  48. extern const int16_t lut_ws_linear[];
  49. extern const int16_t lut_ws_bump[];
  50. extern const int16_t lut_ws_double_bump[];
  51. extern const int8_t lut_lpc_excitation_pulse[];
  52. extern const int16_t wav_integrated_waves[];
  53. #define LUT_SINE 0
  54. #define LUT_SINE_SIZE 1281
  55. #define LUT_FM_FREQUENCY_QUANTIZER 1
  56. #define LUT_FM_FREQUENCY_QUANTIZER_SIZE 129
  57. #define LUT_FOLD 2
  58. #define LUT_FOLD_SIZE 516
  59. #define LUT_FOLD_2 3
  60. #define LUT_FOLD_2_SIZE 516
  61. #define LUT_STIFFNESS 4
  62. #define LUT_STIFFNESS_SIZE 65
  63. #define LUT_SVF_SHIFT 5
  64. #define LUT_SVF_SHIFT_SIZE 257
  65. #define LUT_WS_INVERSE_TAN 0
  66. #define LUT_WS_INVERSE_TAN_SIZE 257
  67. #define LUT_WS_INVERSE_SIN 1
  68. #define LUT_WS_INVERSE_SIN_SIZE 257
  69. #define LUT_WS_LINEAR 2
  70. #define LUT_WS_LINEAR_SIZE 257
  71. #define LUT_WS_BUMP 3
  72. #define LUT_WS_BUMP_SIZE 257
  73. #define LUT_WS_DOUBLE_BUMP 4
  74. #define LUT_WS_DOUBLE_BUMP_SIZE 257
  75. #define LUT_WS_DOUBLE_BUMP_SENTINEL 5
  76. #define LUT_WS_DOUBLE_BUMP_SENTINEL_SIZE 257
  77. #define LUT_LPC_EXCITATION_PULSE 0
  78. #define LUT_LPC_EXCITATION_PULSE_SIZE 640
  79. #define WAV_INTEGRATED_WAVES 0
  80. #define WAV_INTEGRATED_WAVES_SIZE 49920
  81. } // namespace plaits
  82. #endif // PLAITS_RESOURCES_H_