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.

95 lines
3.5KB

  1. #!/usr/bin/python2.5
  2. #
  3. # Copyright 2012 Olivier Gillet.
  4. #
  5. # Author: Olivier Gillet (ol.gillet@gmail.com)
  6. #
  7. # Permission is hereby granted, free of charge, to any person obtaining a copy
  8. # of this software and associated documentation files (the "Software"), to deal
  9. # in the Software without restriction, including without limitation the rights
  10. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. # copies of the Software, and to permit persons to whom the Software is
  12. # furnished to do so, subject to the following conditions:
  13. #
  14. # The above copyright notice and this permission notice shall be included in
  15. # all copies or substantial portions of the Software.
  16. #
  17. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  22. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  23. # THE SOFTWARE.
  24. #
  25. # See http://creativecommons.org/licenses/MIT/ for more information.
  26. #
  27. # -----------------------------------------------------------------------------
  28. #
  29. # Master resources file.
  30. header = """// Copyright 2012 Olivier Gillet.
  31. //
  32. // Author: Olivier Gillet (ol.gillet@gmail.com)
  33. //
  34. // Permission is hereby granted, free of charge, to any person obtaining a copy
  35. // of this software and associated documentation files (the "Software"), to deal
  36. // in the Software without restriction, including without limitation the rights
  37. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  38. // copies of the Software, and to permit persons to whom the Software is
  39. // furnished to do so, subject to the following conditions:
  40. //
  41. // The above copyright notice and this permission notice shall be included in
  42. // all copies or substantial portions of the Software.
  43. //
  44. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  45. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  46. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  47. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  48. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  49. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  50. // THE SOFTWARE.
  51. //
  52. // See http://creativecommons.org/licenses/MIT/ for more information.
  53. //
  54. // -----------------------------------------------------------------------------
  55. //
  56. // Resources definitions.
  57. //
  58. // Automatically generated with:
  59. // make resources
  60. """
  61. namespace = 'braids'
  62. target = 'braids'
  63. types = ['uint8_t', 'uint16_t']
  64. includes = """
  65. #include "stmlib/stmlib.h"
  66. """
  67. import characters
  68. import lookup_tables
  69. # import samples
  70. import waveforms
  71. import waveshapers
  72. create_specialized_manager = True
  73. resources = [
  74. ('dummy', 'string', 'STR', 'char', str, False),
  75. (lookup_tables.lookup_tables,
  76. 'lookup_table', 'LUT', 'uint16_t', int, False),
  77. (lookup_tables.lookup_tables_signed,
  78. 'lookup_table_signed', 'LUT', 'int16_t', int, False),
  79. (lookup_tables.lookup_tables_32,
  80. 'lookup_table_hr', 'LUT', 'uint32_t', int, False),
  81. (waveforms.waveforms,
  82. 'waveform', 'WAV', 'int16_t', int, True),
  83. (waveshapers.waveshapers,
  84. 'waveshaper', 'WS', 'int16_t', int, True),
  85. (waveforms.wavetable_data,
  86. 'wt', 'WT', 'uint8_t', int, False),
  87. (characters.characters,
  88. 'char', 'CHR', 'uint16_t', int, False),
  89. ]