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.

125 lines
4.0KB

  1. // Copyright 2014 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 ELEMENTS_RESOURCES_H_
  32. #define ELEMENTS_RESOURCES_H_
  33. #include "stmlib/stmlib.h"
  34. namespace elements {
  35. typedef uint8_t ResourceId;
  36. extern const int16_t* lookup_table_int16_table[];
  37. extern const uint32_t* lookup_table_uint32_table[];
  38. extern const float* lookup_table_table[];
  39. extern const int16_t* sample_table[];
  40. extern const size_t* sample_boundary_table[];
  41. extern const int16_t lut_db_led_brightness[];
  42. extern const float lut_sine[];
  43. extern const float lut_approx_svf_gain[];
  44. extern const float lut_approx_svf_g[];
  45. extern const float lut_approx_svf_r[];
  46. extern const float lut_approx_svf_h[];
  47. extern const float lut_4_decades[];
  48. extern const float lut_accent_gain_coarse[];
  49. extern const float lut_accent_gain_fine[];
  50. extern const float lut_stiffness[];
  51. extern const float lut_env_increments[];
  52. extern const float lut_env_linear[];
  53. extern const float lut_env_expo[];
  54. extern const float lut_env_quartic[];
  55. extern const float lut_midi_to_f_high[];
  56. extern const float lut_midi_to_increment_high[];
  57. extern const float lut_midi_to_f_low[];
  58. extern const float lut_fm_frequency_quantizer[];
  59. extern const float lut_detune_quantizer[];
  60. extern const int16_t smp_sample_data[];
  61. extern const int16_t smp_noise_sample[];
  62. extern const size_t smp_boundaries[];
  63. #define LUT_DB_LED_BRIGHTNESS 0
  64. #define LUT_DB_LED_BRIGHTNESS_SIZE 513
  65. #define LUT_SINE 0
  66. #define LUT_SINE_SIZE 4097
  67. #define LUT_APPROX_SVF_GAIN 1
  68. #define LUT_APPROX_SVF_GAIN_SIZE 257
  69. #define LUT_APPROX_SVF_G 2
  70. #define LUT_APPROX_SVF_G_SIZE 257
  71. #define LUT_APPROX_SVF_R 3
  72. #define LUT_APPROX_SVF_R_SIZE 257
  73. #define LUT_APPROX_SVF_H 4
  74. #define LUT_APPROX_SVF_H_SIZE 257
  75. #define LUT_4_DECADES 5
  76. #define LUT_4_DECADES_SIZE 257
  77. #define LUT_ACCENT_GAIN_COARSE 6
  78. #define LUT_ACCENT_GAIN_COARSE_SIZE 257
  79. #define LUT_ACCENT_GAIN_FINE 7
  80. #define LUT_ACCENT_GAIN_FINE_SIZE 257
  81. #define LUT_STIFFNESS 8
  82. #define LUT_STIFFNESS_SIZE 257
  83. #define LUT_ENV_INCREMENTS 9
  84. #define LUT_ENV_INCREMENTS_SIZE 258
  85. #define LUT_ENV_LINEAR 10
  86. #define LUT_ENV_LINEAR_SIZE 258
  87. #define LUT_ENV_EXPO 11
  88. #define LUT_ENV_EXPO_SIZE 258
  89. #define LUT_ENV_QUARTIC 12
  90. #define LUT_ENV_QUARTIC_SIZE 258
  91. #define LUT_MIDI_TO_F_HIGH 13
  92. #define LUT_MIDI_TO_F_HIGH_SIZE 256
  93. #define LUT_MIDI_TO_INCREMENT_HIGH 14
  94. #define LUT_MIDI_TO_INCREMENT_HIGH_SIZE 256
  95. #define LUT_MIDI_TO_F_LOW 15
  96. #define LUT_MIDI_TO_F_LOW_SIZE 256
  97. #define LUT_FM_FREQUENCY_QUANTIZER 16
  98. #define LUT_FM_FREQUENCY_QUANTIZER_SIZE 129
  99. #define LUT_DETUNE_QUANTIZER 17
  100. #define LUT_DETUNE_QUANTIZER_SIZE 65
  101. #define SMP_SAMPLE_DATA 0
  102. #define SMP_SAMPLE_DATA_SIZE 128013
  103. #define SMP_NOISE_SAMPLE 1
  104. #define SMP_NOISE_SAMPLE_SIZE 40963
  105. #define SMP_BOUNDARIES 0
  106. #define SMP_BOUNDARIES_SIZE 10
  107. } // namespace elements
  108. #endif // ELEMENTS_RESOURCES_H_