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.

94 lines
2.9KB

  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 CLOUDS_RESOURCES_H_
  32. #define CLOUDS_RESOURCES_H_
  33. #include "stmlib/stmlib.h"
  34. namespace clouds {
  35. typedef uint8_t ResourceId;
  36. extern const float* src_filter_table[];
  37. extern const int16_t* lookup_table_int16_table[];
  38. extern const float* lookup_table_table[];
  39. extern const float src_filter_1x_2_31[];
  40. extern const float src_filter_1x_2_45[];
  41. extern const float src_filter_1x_2_63[];
  42. extern const float src_filter_1x_2_91[];
  43. extern const int16_t lut_db[];
  44. extern const float lut_sin[];
  45. extern const float lut_window[];
  46. extern const float lut_xfade_in[];
  47. extern const float lut_xfade_out[];
  48. extern const float lut_sine_window_4096[];
  49. extern const float lut_cutoff[];
  50. extern const float lut_grain_size[];
  51. extern const float lut_quantized_pitch[];
  52. #define SRC_FILTER_1X_2_31 0
  53. #define SRC_FILTER_1X_2_31_SIZE 31
  54. #define SRC_FILTER_1X_2_45 1
  55. #define SRC_FILTER_1X_2_45_SIZE 45
  56. #define SRC_FILTER_1X_2_63 2
  57. #define SRC_FILTER_1X_2_63_SIZE 63
  58. #define SRC_FILTER_1X_2_91 3
  59. #define SRC_FILTER_1X_2_91_SIZE 91
  60. #define LUT_DB 0
  61. #define LUT_DB_SIZE 257
  62. #define LUT_SIN 0
  63. #define LUT_SIN_SIZE 1281
  64. #define LUT_WINDOW 1
  65. #define LUT_WINDOW_SIZE 4097
  66. #define LUT_XFADE_IN 2
  67. #define LUT_XFADE_IN_SIZE 17
  68. #define LUT_XFADE_OUT 3
  69. #define LUT_XFADE_OUT_SIZE 17
  70. #define LUT_SINE_WINDOW_4096 4
  71. #define LUT_SINE_WINDOW_4096_SIZE 4096
  72. #define LUT_CUTOFF 5
  73. #define LUT_CUTOFF_SIZE 257
  74. #define LUT_GRAIN_SIZE 6
  75. #define LUT_GRAIN_SIZE_SIZE 257
  76. #define LUT_QUANTIZED_PITCH 7
  77. #define LUT_QUANTIZED_PITCH_SIZE 1025
  78. } // namespace clouds
  79. #endif // CLOUDS_RESOURCES_H_