1 // Copyright 2014 Emilie Gillet. 2 // 3 // Author: Emilie Gillet (emilie.o.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 STREAMS_RESOURCES_H_ 34 #define STREAMS_RESOURCES_H_ 35 36 37 #include "stmlib/stmlib.h" 38 39 40 41 namespace streams { 42 43 typedef uint8_t ResourceId; 44 45 extern const char* string_table[]; 46 47 extern const int16_t* waveforms_table[]; 48 49 extern const uint16_t* lookup_table_table[]; 50 51 extern const uint32_t* lookup_table_32_table[]; 52 53 extern const int16_t wav_gompertz[]; 54 extern const int16_t wav_db[]; 55 extern const uint16_t lut_env_linear[]; 56 extern const uint16_t lut_env_expo[]; 57 extern const uint16_t lut_env_quartic[]; 58 extern const uint16_t lut_square_root[]; 59 extern const uint16_t lut_svf_cutoff[]; 60 extern const uint16_t lut_svf_damp[]; 61 extern const uint16_t lut_2164_gain[]; 62 extern const uint16_t lut_compressor_ratio[]; 63 extern const uint16_t lut_soft_knee[]; 64 extern const uint32_t lut_env_increments[]; 65 extern const uint32_t lut_lp_coefficients[]; 66 extern const uint32_t lut_exp2[]; 67 extern const uint32_t lut_log2[]; 68 extern const uint32_t lut_lorenz_rate[]; 69 #define STR_DUMMY 0 // dummy 70 #define WAV_GOMPERTZ 0 71 #define WAV_GOMPERTZ_SIZE 1025 72 #define WAV_DB 1 73 #define WAV_DB_SIZE 257 74 #define LUT_ENV_LINEAR 0 75 #define LUT_ENV_LINEAR_SIZE 257 76 #define LUT_ENV_EXPO 1 77 #define LUT_ENV_EXPO_SIZE 257 78 #define LUT_ENV_QUARTIC 2 79 #define LUT_ENV_QUARTIC_SIZE 257 80 #define LUT_SQUARE_ROOT 3 81 #define LUT_SQUARE_ROOT_SIZE 257 82 #define LUT_SVF_CUTOFF 4 83 #define LUT_SVF_CUTOFF_SIZE 257 84 #define LUT_SVF_DAMP 5 85 #define LUT_SVF_DAMP_SIZE 257 86 #define LUT_2164_GAIN 6 87 #define LUT_2164_GAIN_SIZE 257 88 #define LUT_COMPRESSOR_RATIO 7 89 #define LUT_COMPRESSOR_RATIO_SIZE 257 90 #define LUT_SOFT_KNEE 8 91 #define LUT_SOFT_KNEE_SIZE 257 92 #define LUT_ENV_INCREMENTS 0 93 #define LUT_ENV_INCREMENTS_SIZE 257 94 #define LUT_LP_COEFFICIENTS 1 95 #define LUT_LP_COEFFICIENTS_SIZE 640 96 #define LUT_EXP2 2 97 #define LUT_EXP2_SIZE 257 98 #define LUT_LOG2 3 99 #define LUT_LOG2_SIZE 257 100 #define LUT_LORENZ_RATE 4 101 #define LUT_LORENZ_RATE_SIZE 257 102 103 } // namespace streams 104 105 #endif // STREAMS_RESOURCES_H_ 106