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.

138 lines
3.9KB

  1. // Copyright 2012 Olivier Gillet.
  2. //
  3. // Author: Olivier Gillet (olivier@mutable-instruments.net)
  4. //
  5. // This program is free software: you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License as published by
  7. // the Free Software Foundation, either version 3 of the License, or
  8. // (at your option) any later version.
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. // You should have received a copy of the GNU General Public License
  14. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. //
  16. // -----------------------------------------------------------------------------
  17. //
  18. // Resources definitions.
  19. //
  20. // Automatically generated with:
  21. // make resources
  22. #ifndef GRIDS_RESOURCES_H_
  23. #define GRIDS_RESOURCES_H_
  24. #include "avrlib/base.h"
  25. #include <avr/pgmspace.h>
  26. #include "avrlib/resources_manager.h"
  27. namespace grids {
  28. typedef uint8_t ResourceId;
  29. extern const prog_char* const string_table[];
  30. extern const prog_uint16_t* const lookup_table_table[];
  31. extern const prog_uint32_t* const lookup_table32_table[];
  32. extern const prog_uint8_t* const node_table[];
  33. extern const prog_uint32_t lut_res_euclidean[] PROGMEM;
  34. extern const prog_uint32_t lut_res_tempo_phase_increment[] PROGMEM;
  35. extern const prog_uint8_t node_0[] PROGMEM;
  36. extern const prog_uint8_t node_1[] PROGMEM;
  37. extern const prog_uint8_t node_2[] PROGMEM;
  38. extern const prog_uint8_t node_3[] PROGMEM;
  39. extern const prog_uint8_t node_4[] PROGMEM;
  40. extern const prog_uint8_t node_5[] PROGMEM;
  41. extern const prog_uint8_t node_6[] PROGMEM;
  42. extern const prog_uint8_t node_7[] PROGMEM;
  43. extern const prog_uint8_t node_8[] PROGMEM;
  44. extern const prog_uint8_t node_9[] PROGMEM;
  45. extern const prog_uint8_t node_10[] PROGMEM;
  46. extern const prog_uint8_t node_11[] PROGMEM;
  47. extern const prog_uint8_t node_12[] PROGMEM;
  48. extern const prog_uint8_t node_13[] PROGMEM;
  49. extern const prog_uint8_t node_14[] PROGMEM;
  50. extern const prog_uint8_t node_15[] PROGMEM;
  51. extern const prog_uint8_t node_16[] PROGMEM;
  52. extern const prog_uint8_t node_17[] PROGMEM;
  53. extern const prog_uint8_t node_18[] PROGMEM;
  54. extern const prog_uint8_t node_19[] PROGMEM;
  55. extern const prog_uint8_t node_20[] PROGMEM;
  56. extern const prog_uint8_t node_21[] PROGMEM;
  57. extern const prog_uint8_t node_22[] PROGMEM;
  58. extern const prog_uint8_t node_23[] PROGMEM;
  59. extern const prog_uint8_t node_24[] PROGMEM;
  60. #define STR_RES_DUMMY 0 // dummy
  61. #define LUT_RES_EUCLIDEAN 0
  62. #define LUT_RES_EUCLIDEAN_SIZE 1024
  63. #define LUT_RES_TEMPO_PHASE_INCREMENT 1
  64. #define LUT_RES_TEMPO_PHASE_INCREMENT_SIZE 512
  65. #define NODE_0 0
  66. #define NODE_0_SIZE 96
  67. #define NODE_1 1
  68. #define NODE_1_SIZE 96
  69. #define NODE_2 2
  70. #define NODE_2_SIZE 96
  71. #define NODE_3 3
  72. #define NODE_3_SIZE 96
  73. #define NODE_4 4
  74. #define NODE_4_SIZE 96
  75. #define NODE_5 5
  76. #define NODE_5_SIZE 96
  77. #define NODE_6 6
  78. #define NODE_6_SIZE 96
  79. #define NODE_7 7
  80. #define NODE_7_SIZE 96
  81. #define NODE_8 8
  82. #define NODE_8_SIZE 96
  83. #define NODE_9 9
  84. #define NODE_9_SIZE 96
  85. #define NODE_10 10
  86. #define NODE_10_SIZE 96
  87. #define NODE_11 11
  88. #define NODE_11_SIZE 96
  89. #define NODE_12 12
  90. #define NODE_12_SIZE 96
  91. #define NODE_13 13
  92. #define NODE_13_SIZE 96
  93. #define NODE_14 14
  94. #define NODE_14_SIZE 96
  95. #define NODE_15 15
  96. #define NODE_15_SIZE 96
  97. #define NODE_16 16
  98. #define NODE_16_SIZE 96
  99. #define NODE_17 17
  100. #define NODE_17_SIZE 96
  101. #define NODE_18 18
  102. #define NODE_18_SIZE 96
  103. #define NODE_19 19
  104. #define NODE_19_SIZE 96
  105. #define NODE_20 20
  106. #define NODE_20_SIZE 96
  107. #define NODE_21 21
  108. #define NODE_21_SIZE 96
  109. #define NODE_22 22
  110. #define NODE_22_SIZE 96
  111. #define NODE_23 23
  112. #define NODE_23_SIZE 96
  113. #define NODE_24 24
  114. #define NODE_24_SIZE 96
  115. typedef avrlib::ResourcesManager<
  116. ResourceId,
  117. avrlib::ResourcesTables<
  118. string_table,
  119. lookup_table_table> > ResourcesManager;
  120. } // namespace grids
  121. #endif // GRIDS_RESOURCES_H_