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 
32 
33 #ifndef ELEMENTS_RESOURCES_H_
34 #define ELEMENTS_RESOURCES_H_
35 
36 
37 #include "stmlib/stmlib.h"
38 
39 
40 
41 namespace elements {
42 
43 typedef uint8_t ResourceId;
44 
45 extern const int16_t* lookup_table_int16_table[];
46 
47 extern const uint32_t* lookup_table_uint32_table[];
48 
49 extern const float* lookup_table_table[];
50 
51 extern const int16_t* sample_table[];
52 
53 extern const size_t* sample_boundary_table[];
54 
55 extern const int16_t lut_db_led_brightness[];
56 extern const float lut_sine[];
57 extern const float lut_approx_svf_gain[];
58 extern const float lut_approx_svf_g[];
59 extern const float lut_approx_svf_r[];
60 extern const float lut_approx_svf_h[];
61 extern const float lut_4_decades[];
62 extern const float lut_accent_gain_coarse[];
63 extern const float lut_accent_gain_fine[];
64 extern const float lut_stiffness[];
65 extern const float lut_env_increments[];
66 extern const float lut_env_linear[];
67 extern const float lut_env_expo[];
68 extern const float lut_env_quartic[];
69 extern const float lut_midi_to_f_high[];
70 extern const float lut_midi_to_increment_high[];
71 extern const float lut_midi_to_f_low[];
72 extern const float lut_fm_frequency_quantizer[];
73 extern const float lut_detune_quantizer[];
74 extern const int16_t smp_sample_data[];
75 extern const int16_t smp_noise_sample[];
76 extern const size_t smp_boundaries[];
77 #define LUT_DB_LED_BRIGHTNESS 0
78 #define LUT_DB_LED_BRIGHTNESS_SIZE 513
79 #define LUT_SINE 0
80 #define LUT_SINE_SIZE 4097
81 #define LUT_APPROX_SVF_GAIN 1
82 #define LUT_APPROX_SVF_GAIN_SIZE 257
83 #define LUT_APPROX_SVF_G 2
84 #define LUT_APPROX_SVF_G_SIZE 257
85 #define LUT_APPROX_SVF_R 3
86 #define LUT_APPROX_SVF_R_SIZE 257
87 #define LUT_APPROX_SVF_H 4
88 #define LUT_APPROX_SVF_H_SIZE 257
89 #define LUT_4_DECADES 5
90 #define LUT_4_DECADES_SIZE 257
91 #define LUT_ACCENT_GAIN_COARSE 6
92 #define LUT_ACCENT_GAIN_COARSE_SIZE 257
93 #define LUT_ACCENT_GAIN_FINE 7
94 #define LUT_ACCENT_GAIN_FINE_SIZE 257
95 #define LUT_STIFFNESS 8
96 #define LUT_STIFFNESS_SIZE 257
97 #define LUT_ENV_INCREMENTS 9
98 #define LUT_ENV_INCREMENTS_SIZE 258
99 #define LUT_ENV_LINEAR 10
100 #define LUT_ENV_LINEAR_SIZE 258
101 #define LUT_ENV_EXPO 11
102 #define LUT_ENV_EXPO_SIZE 258
103 #define LUT_ENV_QUARTIC 12
104 #define LUT_ENV_QUARTIC_SIZE 258
105 #define LUT_MIDI_TO_F_HIGH 13
106 #define LUT_MIDI_TO_F_HIGH_SIZE 256
107 #define LUT_MIDI_TO_INCREMENT_HIGH 14
108 #define LUT_MIDI_TO_INCREMENT_HIGH_SIZE 256
109 #define LUT_MIDI_TO_F_LOW 15
110 #define LUT_MIDI_TO_F_LOW_SIZE 256
111 #define LUT_FM_FREQUENCY_QUANTIZER 16
112 #define LUT_FM_FREQUENCY_QUANTIZER_SIZE 129
113 #define LUT_DETUNE_QUANTIZER 17
114 #define LUT_DETUNE_QUANTIZER_SIZE 65
115 #define SMP_SAMPLE_DATA 0
116 #define SMP_SAMPLE_DATA_SIZE 128013
117 #define SMP_NOISE_SAMPLE 1
118 #define SMP_NOISE_SAMPLE_SIZE 40963
119 #define SMP_BOUNDARIES 0
120 #define SMP_BOUNDARIES_SIZE 10
121 
122 }  // namespace elements
123 
124 #endif  // ELEMENTS_RESOURCES_H_
125