1 // Copyright 2012 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 32 33 #ifndef BRAIDS_RESOURCES_H_ 34 #define BRAIDS_RESOURCES_H_ 35 36 37 #include "stmlib/stmlib.h" 38 39 40 41 namespace braids { 42 43 typedef uint8_t ResourceId; 44 45 extern const char* string_table[]; 46 47 extern const uint16_t* lookup_table_table[]; 48 49 extern const int16_t* lookup_table_signed_table[]; 50 51 extern const uint32_t* lookup_table_hr_table[]; 52 53 extern const int16_t* waveform_table[]; 54 55 extern const int16_t* waveshaper_table[]; 56 57 extern const uint8_t* wt_table[]; 58 59 extern const uint16_t* char_table[]; 60 61 extern const uint16_t lut_resonator_coefficient[]; 62 extern const uint16_t lut_resonator_scale[]; 63 extern const uint16_t lut_svf_cutoff[]; 64 extern const uint16_t lut_svf_damp[]; 65 extern const uint16_t lut_svf_scale[]; 66 extern const uint16_t lut_granular_envelope[]; 67 extern const uint16_t lut_granular_envelope_rate[]; 68 extern const uint16_t lut_bowing_envelope[]; 69 extern const uint16_t lut_bowing_friction[]; 70 extern const uint16_t lut_blowing_envelope[]; 71 extern const uint16_t lut_flute_body_filter[]; 72 extern const uint16_t lut_fm_frequency_quantizer[]; 73 extern const uint16_t lut_vco_detune[]; 74 extern const uint16_t lut_bell[]; 75 extern const uint16_t lut_env_expo[]; 76 extern const int16_t lut_blowing_jet[]; 77 extern const uint32_t lut_oscillator_increments[]; 78 extern const uint32_t lut_oscillator_delays[]; 79 extern const uint32_t lut_env_portamento_increments[]; 80 extern const int16_t wav_formant_sine[]; 81 extern const int16_t wav_formant_square[]; 82 extern const int16_t wav_sine[]; 83 extern const int16_t wav_bandlimited_comb_0[]; 84 extern const int16_t wav_bandlimited_comb_1[]; 85 extern const int16_t wav_bandlimited_comb_2[]; 86 extern const int16_t wav_bandlimited_comb_3[]; 87 extern const int16_t wav_bandlimited_comb_4[]; 88 extern const int16_t wav_bandlimited_comb_5[]; 89 extern const int16_t wav_bandlimited_comb_6[]; 90 extern const int16_t wav_bandlimited_comb_7[]; 91 extern const int16_t wav_bandlimited_comb_8[]; 92 extern const int16_t wav_bandlimited_comb_9[]; 93 extern const int16_t wav_bandlimited_comb_10[]; 94 extern const int16_t wav_bandlimited_comb_11[]; 95 extern const int16_t wav_bandlimited_comb_12[]; 96 extern const int16_t wav_bandlimited_comb_13[]; 97 extern const int16_t wav_bandlimited_comb_14[]; 98 extern const int16_t ws_moderate_overdrive[]; 99 extern const int16_t ws_violent_overdrive[]; 100 extern const int16_t ws_sine_fold[]; 101 extern const int16_t ws_tri_fold[]; 102 extern const uint8_t wt_waves[]; 103 extern const uint8_t wt_map[]; 104 extern const uint8_t wt_code[]; 105 extern const uint16_t chr_characters[]; 106 #define STR_DUMMY 0 // dummy 107 #define LUT_RESONATOR_COEFFICIENT 0 108 #define LUT_RESONATOR_COEFFICIENT_SIZE 129 109 #define LUT_RESONATOR_SCALE 1 110 #define LUT_RESONATOR_SCALE_SIZE 129 111 #define LUT_SVF_CUTOFF 2 112 #define LUT_SVF_CUTOFF_SIZE 257 113 #define LUT_SVF_DAMP 3 114 #define LUT_SVF_DAMP_SIZE 257 115 #define LUT_SVF_SCALE 4 116 #define LUT_SVF_SCALE_SIZE 257 117 #define LUT_GRANULAR_ENVELOPE 5 118 #define LUT_GRANULAR_ENVELOPE_SIZE 513 119 #define LUT_GRANULAR_ENVELOPE_RATE 6 120 #define LUT_GRANULAR_ENVELOPE_RATE_SIZE 257 121 #define LUT_BOWING_ENVELOPE 7 122 #define LUT_BOWING_ENVELOPE_SIZE 752 123 #define LUT_BOWING_FRICTION 8 124 #define LUT_BOWING_FRICTION_SIZE 257 125 #define LUT_BLOWING_ENVELOPE 9 126 #define LUT_BLOWING_ENVELOPE_SIZE 392 127 #define LUT_FLUTE_BODY_FILTER 10 128 #define LUT_FLUTE_BODY_FILTER_SIZE 128 129 #define LUT_FM_FREQUENCY_QUANTIZER 11 130 #define LUT_FM_FREQUENCY_QUANTIZER_SIZE 129 131 #define LUT_VCO_DETUNE 12 132 #define LUT_VCO_DETUNE_SIZE 257 133 #define LUT_BELL 13 134 #define LUT_BELL_SIZE 257 135 #define LUT_ENV_EXPO 14 136 #define LUT_ENV_EXPO_SIZE 257 137 #define LUT_BLOWING_JET 0 138 #define LUT_BLOWING_JET_SIZE 257 139 #define LUT_OSCILLATOR_INCREMENTS 0 140 #define LUT_OSCILLATOR_INCREMENTS_SIZE 97 141 #define LUT_OSCILLATOR_DELAYS 1 142 #define LUT_OSCILLATOR_DELAYS_SIZE 97 143 #define LUT_ENV_PORTAMENTO_INCREMENTS 2 144 #define LUT_ENV_PORTAMENTO_INCREMENTS_SIZE 128 145 #define WAV_FORMANT_SINE 0 146 #define WAV_FORMANT_SINE_SIZE 256 147 #define WAV_FORMANT_SQUARE 1 148 #define WAV_FORMANT_SQUARE_SIZE 256 149 #define WAV_SINE 2 150 #define WAV_SINE_SIZE 257 151 #define WAV_BANDLIMITED_COMB_0 3 152 #define WAV_BANDLIMITED_COMB_0_SIZE 257 153 #define WAV_BANDLIMITED_COMB_1 4 154 #define WAV_BANDLIMITED_COMB_1_SIZE 257 155 #define WAV_BANDLIMITED_COMB_2 5 156 #define WAV_BANDLIMITED_COMB_2_SIZE 257 157 #define WAV_BANDLIMITED_COMB_3 6 158 #define WAV_BANDLIMITED_COMB_3_SIZE 257 159 #define WAV_BANDLIMITED_COMB_4 7 160 #define WAV_BANDLIMITED_COMB_4_SIZE 257 161 #define WAV_BANDLIMITED_COMB_5 8 162 #define WAV_BANDLIMITED_COMB_5_SIZE 257 163 #define WAV_BANDLIMITED_COMB_6 9 164 #define WAV_BANDLIMITED_COMB_6_SIZE 257 165 #define WAV_BANDLIMITED_COMB_7 10 166 #define WAV_BANDLIMITED_COMB_7_SIZE 257 167 #define WAV_BANDLIMITED_COMB_8 11 168 #define WAV_BANDLIMITED_COMB_8_SIZE 257 169 #define WAV_BANDLIMITED_COMB_9 12 170 #define WAV_BANDLIMITED_COMB_9_SIZE 257 171 #define WAV_BANDLIMITED_COMB_10 13 172 #define WAV_BANDLIMITED_COMB_10_SIZE 257 173 #define WAV_BANDLIMITED_COMB_11 14 174 #define WAV_BANDLIMITED_COMB_11_SIZE 257 175 #define WAV_BANDLIMITED_COMB_12 15 176 #define WAV_BANDLIMITED_COMB_12_SIZE 257 177 #define WAV_BANDLIMITED_COMB_13 16 178 #define WAV_BANDLIMITED_COMB_13_SIZE 257 179 #define WAV_BANDLIMITED_COMB_14 17 180 #define WAV_BANDLIMITED_COMB_14_SIZE 257 181 #define WS_MODERATE_OVERDRIVE 0 182 #define WS_MODERATE_OVERDRIVE_SIZE 257 183 #define WS_VIOLENT_OVERDRIVE 1 184 #define WS_VIOLENT_OVERDRIVE_SIZE 257 185 #define WS_SINE_FOLD 2 186 #define WS_SINE_FOLD_SIZE 257 187 #define WS_TRI_FOLD 3 188 #define WS_TRI_FOLD_SIZE 257 189 #define WT_WAVES 0 190 #define WT_WAVES_SIZE 33024 191 #define WT_MAP 1 192 #define WT_MAP_SIZE 256 193 #define WT_CODE 2 194 #define WT_CODE_SIZE 1064 195 #define CHR_CHARACTERS 0 196 #define CHR_CHARACTERS_SIZE 256 197 198 } // namespace braids 199 200 #endif // BRAIDS_RESOURCES_H_ 201