History

updating config file and config defines

Matthew Wang committed 5 years ago

Commit 41afc5a1 parent 196bc7b12 files · +145 −122Browse files

Unified · Split

12 files
  1. TestPlugin/Source/MyTest.cpp +14 −14
  2. leaf/Inc/leaf-analysis.h +4 −5
  3. leaf/Inc/leaf-tables.h +33 −41
  4. leaf/Src/leaf-analysis.c +2 −3
  5. leaf/Src/leaf-delay.c +0 −4
  6. leaf/Src/leaf-distortion.c +2 −2
  7. leaf/Src/leaf-envelopes.c +4 −4
  8. leaf/Src/leaf-filters.c +2 −2
  9. leaf/Src/leaf-math.c +2 −2
  10. leaf/Src/leaf-oscillators.c +8 −8
  11. leaf/Src/leaf-tables.c +26 −34
  12. leaf/leaf-config.h +48 −3
TestPlugin/Source/MyTest.cpp+14−14
@@ -139,46 +139,46 @@ void leaf_pool_dump(void) · 138 unmodified lines
139139 static void run_pool_test(void)
140140 {
141141 leaf_pool_report();
142−
142+
143143 DBG("ALLOC BUFFER 1");
144144 int size = 50;
145145 float* buffer;
146146 buffer = (float*) leaf_alloc(&leaf, sizeof(float) * size);
147−
147+
148148 for (int i = 0; i < size; i++)
149149 {
150150 buffer[i] = (float)i;
151−
151+
152152 }
153−
153+
154154 leaf_pool_report();
155−
155+
156156 DBG("ALLOC BUFFER 2");
157157 size = 25;
158−
158+
159159 buffer = (float*) leaf_alloc(&leaf, sizeof(float) * size);
160−
160+
161161 leaf_pool_report();
162−
162+
163163 for (int i = 0; i < size; i++)
164164 {
165165 buffer[i] = (float)(i*2);
166166 }
167167 leaf_free(&leaf, (char*)buffer);
168−
168+
169169 leaf_pool_report();
170−
170+
171171 DBG("ALLOC BUFFER 3");
172172 size = 15;
173−
173+
174174 buffer = (float*) leaf_alloc(&leaf, sizeof(float) * size);
175−
175+
176176 for (int i = 0; i < size; i++)
177177 {
178178 buffer[i] = (float)(i*3);
179179 }
180−
180+
181181 leaf_pool_report();
182−
182+
183183 leaf_pool_dump();
184184 }
leaf/Inc/leaf-analysis.h+4−5
@@ -159,7 +159,7 @@ extern "C" { · 158 unmodified lines
159159 /*!
160160 @defgroup tpowerfollower tPowerFollower
161161 @ingroup analysis
162− @brief Measure and follow the power of an input signal using an exponential moving average of power.
162+ @brief Measure and follow the power of an input signal using an exponential moving average for smoothing.
163163 @{
164164
165165 @fn void tPowerFollower_init (tPowerFollower* const, float factor, LEAF* const leaf)
@@ -391,7 +391,7 @@ extern "C" { · 225 unmodified lines
391391 /*!
392392 @defgroup tsnac tSNAC
393393 @ingroup analysis
394− @brief Period detection algorithm from Katja Vetters http://www.katjaas.nl/helmholtz/helmholtz.html
394+ @brief Component of period detection algorithm from Katja Vetters http://www.katjaas.nl/helmholtz/helmholtz.html
395395 @{
396396
397397 @fn void tSNAC_init (tSNAC* const, int overlaparg, LEAF* const leaf)
@@ -488,7 +488,7 @@ extern "C" { · 90 unmodified lines
488488 /*!
489489 @defgroup tperioddetection tPeriodDetection
490490 @ingroup analysis
491− @brief
491+ @brief Period detection algorithm from Katja Vetters http://www.katjaas.nl/helmholtz/helmholtz.html
492492 @{
493493
494494 @fn void tPeriodDetection_init (tPeriodDetection* const, float* in, float* out, int bufSize, int frameSize, LEAF* const leaf)
@@ -612,8 +612,7 @@ extern "C" { · 117 unmodified lines
612612
613613 //==============================================================================
614614
615− // Maybe keep these up to PeriodDetector internal?
616−
615+ // Maybe keep from here to tPeriodDetector internal?
617616 typedef struct _tZeroCrossingInfo
618617 {
619618
leaf/Inc/leaf-tables.h+33−41
@@ -19,31 +19,11 @@ extern "C" { · 18 unmodified lines
1919
2020 //==============================================================================
2121
22−#define USE_SAWTOOTH_TABLE 1
23−#define USE_SQUARE_TABLE 1
24−#define USE_TRIANGLE_TABLE 1
25−#define USE_SHAPER_TABLE 1
26−#define DECAY_TABLES_USED 1
27−
2822 /*!
2923 @ingroup tables
3024 @{
3125 */
3226
33−#define SINE_TABLE_SIZE 2048
34−#define SAW_TABLE_SIZE 2048
35−#define SQR_TABLE_SIZE 2048
36−#define TRI_TABLE_SIZE 2048
37−#define EXP_DECAY_TABLE_SIZE 65536
38−#define ATTACK_DECAY_INC_TABLE_SIZE 65536
39−#define TANH1_TABLE_SIZE 65536
40−#define DECAY_COEFF_TABLE_SIZE 4096
41−#define MTOF1_TABLE_SIZE 4096
42−#define FILTERTAN_TABLE_SIZE 4096
43−
44−#define SHAPER1_TABLE_SIZE 65536
45− extern const float __leaf_table_shaper1[SHAPER1_TABLE_SIZE];
46−
4727 #define COEFFS_SIZE 32
4828 extern const float* __leaf_tableref_firCoeffs[COEFFS_SIZE];
4929 extern const float __leaf_tablesize_firNumTaps[COEFFS_SIZE];
@@ -60,45 +40,57 @@ extern "C" { · 10 unmodified lines
6040 extern const float __leaf_table_fir32XHigh[512];
6141 extern const float __leaf_table_fir64XHigh[1024];
6242
63− typedef enum TableName
64− {
65− T20 = 0,
66− T40,
67− T80,
68− T160,
69− T320,
70− T640,
71− T1280,
72− T2560,
73− T5120,
74− T10240,
75− T20480,
76− TableNameNil
77− } TableName;
43+// typedef enum TableName
44+// {
45+// T20 = 0,
46+// T40,
47+// T80,
48+// T160,
49+// T320,
50+// T640,
51+// T1280,
52+// T2560,
53+// T5120,
54+// T10240,
55+// T20480,
56+// TableNameNil
57+// } TableName;
7858
79− // mtof lookup table based on input range [0.0,1.0) in 4096 increments - midi frequency values scaled between m25 and m134 (from the Snyderphonics DrumBox code)
8059
60+#define SHAPER1_TABLE_SIZE 65536
61+ extern const float __leaf_table_shaper1[SHAPER1_TABLE_SIZE];
62+
63+ // mtof lookup table based on input range [0.0,1.0) in 4096 increments - midi frequency values scaled between m25 and m134 (from the Snyderphonics DrumBox code)
64+#define MTOF1_TABLE_SIZE 4096
65+ extern const float __leaf_table_mtof1[MTOF1_TABLE_SIZE];
66+
67+#define EXP_DECAY_TABLE_SIZE 65536
8168 extern const float __leaf_table_exp_decay[EXP_DECAY_TABLE_SIZE];
69+
70+#define ATTACK_DECAY_INC_TABLE_SIZE 65536
8271 extern const float __leaf_table_attack_decay_inc[ATTACK_DECAY_INC_TABLE_SIZE];
8372
73+#define FILTERTAN_TABLE_SIZE 4096
8474 extern const float __leaf_table_filtertan[FILTERTAN_TABLE_SIZE];
8575
86− extern const float __leaf_table_mtof1[MTOF1_TABLE_SIZE];
87− extern const float __leaf_table_decayCoeffTable[DECAY_COEFF_TABLE_SIZE];
88−
76+#define TANH1_TABLE_SIZE 65536
8977 extern const float __leaf_table_tanh1[TANH1_TABLE_SIZE];
9078
9179 //==============================================================================
9280
9381 /* Sine wave table ripped from http://aquaticus.info/pwm-sine-wave. */
82+#define SINE_TABLE_SIZE 2048
9483 extern const float __leaf_table_sinewave[SINE_TABLE_SIZE];
9584
96− extern const float __leaf_table_sawtooth[11][SAW_TABLE_SIZE];
97−
85+#define TRI_TABLE_SIZE 2048
9886 extern const float __leaf_table_triangle[11][TRI_TABLE_SIZE];
9987
88+#define SQR_TABLE_SIZE 2048
10089 extern const float __leaf_table_squarewave[11][SQR_TABLE_SIZE];
10190
91+#define SAW_TABLE_SIZE 2048
92+ extern const float __leaf_table_sawtooth[11][SAW_TABLE_SIZE];
93+
10294 //==============================================================================
10395
10496
leaf/Src/leaf-analysis.c+2−3
@@ -204,7 +204,6 @@ void tPowerFollower_setFactor(tPowerFollower* const pf, float factor) · 203 unmodified lines
204204 if (factor>1) factor=1;
205205 p->factor=factor;
206206 p->oneminusfactor=1.0f-factor;
207− return 0;
208207 }
209208
210209 float tPowerFollower_tick(tPowerFollower* const pf, float input)
@@ -527,9 +526,9 @@ void tSNAC_ioSamples(tSNAC* const snac, float *in, int size) · 316 unmodified lines
527526
528527 int timeindex = s->timeindex;
529528 int mask = s->framesize - 1;
530− int outindex = 0;
529+// int outindex = 0;
531530 float *inputbuf = s->inputbuf;
532− float *processbuf = s->processbuf;
531+// float *processbuf = s->processbuf;
533532
534533 // call analysis function when it is time
535534 if(!(timeindex & (s->framesize / s->overlap - 1))) snac_analyzeframe(snac);
leaf/Src/leaf-delay.c+0−4
@@ -89,8 +89,6 @@ void tDelay_setDelay (tDelay* const dl, uint32_t delay) · 88 unmodified lines
8989 // read chases write
9090 if ( d->inPoint >= delay ) d->outPoint = d->inPoint - d->delay;
9191 else d->outPoint = d->maxDelay + d->inPoint - d->delay;
92−
93− return 0;
9492 }
9593
9694 float tDelay_tapOut (tDelay* const dl, uint32_t tapDelay)
@@ -648,8 +646,6 @@ void tAllpassDelay_setDelay (tAllpassDelay* const dl, float delay) · 551 unmodified lines
648646 }
649647
650648 d->coeff = (1.0f - d->alpha) / (1.0f + d->alpha); // coefficient for allpass
651−
652− return 0;
653649 }
654650
655651 float tAllpassDelay_tapOut (tAllpassDelay* const dl, uint32_t tapDelay)
leaf/Src/leaf-distortion.c+2−2
@@ -67,7 +67,7 @@ void tSampleReducer_setRatio(tSampleReducer* const sr, float ratio) · 66 unmodified lines
6767
6868 }
6969
70−#if LEAF_INCLUDE_TABLES
70+#if LEAF_INCLUDE_OVERSAMPLER_TABLES
7171 //============================================================================================================
7272 // Oversampler
7373 //============================================================================================================
@@ -303,7 +303,7 @@ int tOversampler_getLatency(tOversampler* const osr) · 229 unmodified lines
303303 _tOversampler* os = *osr;
304304 return os->phaseLength;
305305 }
306−#endif
306+#endif // LEAF_INCLUDE_OVERSAMPLER_TABLES
307307
308308 //============================================================================================================
309309 // WAVEFOLDER
leaf/Src/leaf-envelopes.c+4−4
@@ -23,7 +23,7 @@ · 22 unmodified lines
2323
2424 #endif
2525
26−#if LEAF_INCLUDE_TABLES
26+#if LEAF_INCLUDE_ADSR_TABLES
2727 // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Envelope ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ //
2828 void tEnvelope_init(tEnvelope* const envlp, float attack, float decay, int loop, LEAF* const leaf)
2929 {
@@ -212,9 +212,9 @@ float tEnvelope_tick(tEnvelope* const envlp) · 182 unmodified lines
212212
213213 return env->next;
214214 }
215−#endif
215+#endif // LEAF_INCLUDE_ADSR_TABLES
216216
217−#if LEAF_INCLUDE_TABLES
217+#if LEAF_INCLUDE_ADSR_TABLES
218218 /* ADSR */
219219 void tADSR_init(tADSR* const adsrenv, float attack, float decay, float sustain, float release, LEAF* const leaf)
220220 {
@@ -483,7 +483,7 @@ float tADSR_tick(tADSR* const adsrenv) · 262 unmodified lines
483483
484484 return adsr->next;
485485 }
486−#endif
486+#endif // LEAF_INCLUDE_ADSR_TABLES
487487
488488
489489
leaf/Src/leaf-filters.c+2−2
@@ -900,7 +900,7 @@ void tSVF_setFreqAndQ(tSVF* const svff, float freq, float Q) · 899 unmodified lines
900900 svf->a3 = svf->g * svf->a2;
901901 }
902902
903−#if LEAF_INCLUDE_TABLES
903+#if LEAF_INCLUDE_FILTERTAN_TABLE
904904 // Efficient version of tSVF where frequency is set based on 12-bit integer input for lookup in tanh wavetable.
905905 void tEfficientSVF_init(tEfficientSVF* const svff, SVFType type, uint16_t input, float Q, LEAF* const leaf)
906906 {
@@ -971,7 +971,7 @@ void tEfficientSVF_setQ(tEfficientSVF* const svff, float Q) · 64 unmodified lines
971971 svf->a2 = svf->g * svf->a1;
972972 svf->a3 = svf->g * svf->a2;
973973 }
974−#endif
974+#endif // LEAF_INCLUDE_FILTERTAN_TABLE
975975
976976 /* Highpass */
977977 void tHighpass_init(tHighpass* const ft, float freq, LEAF* const leaf)
leaf/Src/leaf-math.c+2−2
@@ -827,7 +827,7 @@ float median3f(float a, float b, float c) · 826 unmodified lines
827827 return fmax(fmin(a, b), fmin(fmax(a, b), c));
828828 }
829829
830−#if LEAF_INCLUDE_MINBLEP
830+#if LEAF_INCLUDE_MINBLEP_TABLES
831831 /// MINBLEPS
832832 // https://github.com/MrBlueXav/Dekrispator_v2 blepvco.c
833833 void place_step_dd(float *buffer, int index, float phase, float w, float scale)
@@ -872,4 +872,4 @@ void place_slope_dd(float *buffer, int index, float phase, float w, float slope_ · 38 unmodified lines
872872 index++;
873873 }
874874 }
875−#endif
875+#endif // LEAF_INCLUDE_MINBLEP_TABLES
leaf/Src/leaf-oscillators.c+8−8
@@ -86,7 +86,7 @@ void tTableSampleRateChanged(tTable* const cy) · 85 unmodified lines
8686 c->inc = c->freq * leaf->invSampleRate;
8787 }
8888
89−#if LEAF_INCLUDE_TABLES
89+#if LEAF_INCLUDE_SINE_TABLE
9090 // Cycle
9191 void tCycle_init(tCycle* const cy, LEAF* const leaf)
9292 {
@@ -156,9 +156,9 @@ void tCycleSampleRateChanged (tCycle* const cy) · 63 unmodified lines
156156
157157 c->inc = c->freq * leaf->invSampleRate;
158158 }
159−#endif
159+#endif // LEAF_INCLUDE_SINE_TABLE
160160
161−#if LEAF_INCLUDE_TABLES
161+#if LEAF_INCLUDE_TRIANGLE_TABLE
162162 //========================================================================
163163 /* Triangle */
164164 void tTriangle_init(tTriangle* const cy, LEAF* const leaf)
@@ -229,9 +229,9 @@ void tTriangleSampleRateChanged (tTriangle* const cy) · 64 unmodified lines
229229
230230 c->inc = c->freq * leaf->invSampleRate;
231231 }
232−#endif
232+#endif // LEAF_INCLUDE_TRIANGLE_TABLE
233233
234−#if LEAF_INCLUDE_TABLES
234+#if LEAF_INCLUDE_SQUARE_TABLE
235235 //========================================================================
236236 /* Square */
237237 void tSquare_init(tSquare* const cy, LEAF* const leaf)
@@ -301,9 +301,9 @@ void tSquareSampleRateChanged (tSquare* const cy) · 63 unmodified lines
301301
302302 c->inc = c->freq * leaf->invSampleRate;
303303 }
304−#endif
304+#endif // LEAF_INCLUDE_SQUARE_TABLE
305305
306−#if LEAF_INCLUDE_TABLES
306+#if LEAF_INCLUDE_SAWTOOTH_TABLE
307307 //=====================================================================
308308 // Sawtooth
309309 void tSawtooth_init(tSawtooth* const cy, LEAF* const leaf)
@@ -373,7 +373,7 @@ void tSawtoothSampleRateChanged (tSawtooth* const cy) · 63 unmodified lines
373373
374374 c->inc = c->freq * leaf->invSampleRate;
375375 }
376−#endif
376+#endif // LEAF_INCLUDE_SAWTOOTH_TABLE
377377
378378 //==============================================================================
379379
leaf/Src/leaf-tables.c+26−34
@@ -2,23 +2,19 @@ · 1 unmodified line
22
33 #if _WIN32 || _WIN64
44
5−#include "..\leaf-config.h"
65 #include "..\Inc\leaf-tables.h"
76 #include "..\Inc\leaf-global.h"
87
98 #else
109
11−#include "../leaf-config.h"
1210 #include "../Inc/leaf-tables.h"
1311 #include "../Inc/leaf-global.h"
1412
1513 #endif
1614
17−
1815 #include "stdlib.h"
1916
20−#if LEAF_INCLUDE_TABLES
21−
17+#if LEAF_INCLUDE_OVERSAMPLER_TABLES
2218 const float __leaf_table_fir2XLow[32] = { 0.001067048115027622, -0.004557728776555209, -0.016711590887520535, -0.021065500881657994, -0.003828695019946828, 0.01865935152799254, 0.012036365576553658, -0.02064070362810112, -0.02682399333687091, 0.017862623081258543, 0.0492716766870816, -0.004310232755957251, -0.08571879958189704, -0.03828300159135686, 0.18420501161808442, 0.4054061613074031, 0.4054061613074031, 0.18420501161808442, -0.03828300159135686, -0.08571879958189704, -0.004310232755957251, 0.0492716766870816, 0.017862623081258543, -0.02682399333687091, -0.02064070362810112, 0.012036365576553658, 0.01865935152799254, -0.003828695019946828, -0.021065500881657994, -0.016711590887520535, -0.004557728776555209, 0.001067048115027622
2319
2420 };
@@ -50,14 +46,13 @@ const float __leaf_table_fir32XHigh[512] = { 0.00001695726883388158, 0.000 · 25 unmodified lines
5046 const float __leaf_table_fir64XHigh[1024] = { 0.000022913289467138396, 0.0000053659189590266235, 0.0000059874129268137184, 0.000006651966903409214, 0.000007360859185648702, 0.000008116254962232182, 0.000008919034969234169, 0.000009771649771624484, 0.00001067513223630924, 0.000011631201209261511, 0.000012641797347255405, 0.00001370786337628007, 0.000014831347439124435, 0.00001601386713533323, 0.00001725659281802051, 0.000018561209740219567, 0.00001992924403854817, 0.00002136207377464052, 0.000022860960742170415, 0.00002442737159197627, 0.000026062787460182665, 0.00002776823090942686, 0.00002954497152514943, 0.000031394387750225555, 0.0000333174817796639, 0.00003531515315607694, 0.000037388352711032095, 0.00003953809180607858, 0.000041765124869157065, 0.00004406996003435772, 0.00004645314118637872, 0.00004891512239763599, 0.000051456283434024254, 0.000054076836400090634, 0.00005677675565218903, 0.00005955600371707976, 0.00006241451652786996, 0.0000653520878490535, 0.00006836828400903681, 0.00007146257248874113, 0.00007463447593939765, 0.00007788334878376474, 0.00008120828768996651, 0.00008460822180317937, 0.00008808197111592392, 0.00009162826246394013, 0.00009524561718379787, 0.0000989323217880672, 0.00010268641529207459, 0.00010650572670297642, 0.00011038797758602729, 0.00011433071893118852, 0.00011833127277888537, 0.0001223867211507117, 0.0001264939791526471, 0.0001306498943438022, 0.00013485120459499745, 0.0001390945080465441, 0.0001433761787732808, 0.0001476923508970611, 0.0001520390228045441, 0.00015641203030453322, 0.0001608069510673283, 0.00016521898552431528, 0.0001696430686231646, 0.0001740740165774301, 0.00017850636200629103, 0.0001829343448175031, 0.00018735205242694257, 0.000191753562437378, 0.00019613295450734188, 0.00020048414321002534, 0.00020480094575553342, 0.00020907706346541747, 0.00021330607883745088, 0.00021748145118260308, 0.00022159611743123445, 0.0002256425365807074, 0.0002296129456080256, 0.00023349938436811445, 0.00023729369397980805, 0.00024098757818162363, 0.0002445732198467269, 0.00024804316088030066, 0.00025138980120093706, 0.00025460575109546185, 0.00025768336513093236, 0.000260614166491108, 0.00026338871874574443, 0.000265996883919168, 0.00026842872851524756, 0.0002706745796903796, 0.00027272653793114146, 0.0002745790007011535, 0.0002762259706331217, 0.0002776600678298683, 0.0002788693645809233, 0.0002798371088712506, 0.0002805501390130166, 0.0002810071637276198, 0.0002812218387032567, 0.0002811853995116189, 0.0002808065268305555, 0.000280197444464886, 0.00027926833477321045, 0.0002780409500002217, 0.0002765020258372484, 0.00027464338678576605, 0.00027245845620400524, 0.0002699387312629035, 0.0002670776879725044, 0.0002638682356241208, 0.00026030295633048156, 0.0002563760351381784, 0.00025208079324849864, 0.00024741089077219824, 0.00024236092911432053, 0.00023692535214431433, 0.00023109887243694582, 0.0002248766203312044, 0.00021825436568685826, 0.0002112279751888258, 0.00020379342129965214, 0.00019594765441000844, 0.00018768793613519225, 0.00017901156693343162, 0.0001699163889323255, 0.00016040086314937234, 0.00015046397564821766, 0.00014010492118016657, 0.00012932331202118152, 0.00011811939311034222, 0.00010649390448787931, 0.00009444816369190979, 0.00008198390428241564, 0.00006910334679829026, 0.00005580947004681174, 0.000042105866991998394, 0.000027996578416041823, 0.000013486064917873263, -0.0000014205550195404417, -0.000016717431552354825, -0.00003239824489309241, -0.00004845619470295486, -0.00006488392097284113, -0.00008167344072768395, -0.00009881608266779326, -0.00011630254584578235, -0.000134122927443183, -0.0001522667855569792, -0.00017072306915224178, -0.0001894800112434245, -0.00020852521704417434, -0.00022784574374784246, -0.00024742817471772824, -0.00026725858015049425, -0.00028732242720909374, -0.0003076045740274102, -0.00032808926773727473, -0.0003487602312779994, -0.0003696006180382817, -0.00039059290984859706, -0.00041171900064429, -0.00043296032505169577, -0.00045429794314525324, -0.0004757124161811035, -0.0004971838198071831, -0.0005186919510053738, -0.0005402162469729259, -0.0005617356366067017, -0.0005832284295812785, -0.0006046723908249317, -0.0006260449390330644, -0.0006473231692560336, -0.0006684839703829051, -0.0006895039843981559, -0.000710359669543136, -0.000731027532147202, -0.0007514837903863777, -0.000771704162227947, -0.0007916639719227004, -0.0008113383362587028, -0.0008307023010845163, -0.0008497307715244494, -0.0008683991132471614, -0.0008866831646045461, -0.0009045584634477986, -0.000922000299232565, -0.0009389835464993075, -0.0009554827702629912, -0.0009714727766152153, -0.000986929306593871, -0.0010018296635038234, -0.001016150958603644, -0.0010298692409237303, -0.0010429598373262593, -0.0010553976134962566, -0.001067160927893583, -0.0010782313132298208, -0.0010885880181663468, -0.001098205538071845, -0.0011070578885002702, -0.001115133482641312, -0.0011224205008357393, -0.0011288733610789721, -0.001134502525433292, -0.0011392722062450377, -0.001143172631327465, -0.0011461862709457055, -0.0011482970085184934, -0.0011494916928265647, -0.0011497552449535495, -0.001149075700165883, -0.0011474412643782891, -0.00114484006082293, -0.0011412629577426628, -0.001136700795386366, -0.0011311451534842774, -0.0011245894559787622, -0.0011170279740759658, -0.00110845587457712, -0.0010988693663578895, -0.0010882663676571244, -0.0010766458418348251, -0.0010640072735802143, -0.0010503518239957826, -0.0010356821468104041, -0.0010200018714693214, -0.0010033157303544313, -0.000985629760693179, -0.0009669515631450903, -0.0009472899718477435, -0.0009266549999954207, -0.0009050579826107043, -0.0008825115697880996, -0.0008590299683449941, -0.0008346286688776923, -0.0008093242093186422, -0.0007831344484904399, -0.0007560787238727222, -0.0007281777992737946, -0.0006994535909524986, -0.0006699292108326442, -0.0006396291849638128, -0.0006085793855511994, -0.0005768070388328386, -0.0005443406366124165, -0.0005112097970335273, -0.00047744526762494543, -0.00044307897054750035, -0.00040814409766798117, -0.0003726750006857615, -0.0003367070808797812, -0.00030027682371347247, -0.0002634218056255867, -0.00022618073814697159, -0.00018859337566807589, -0.0001507003780746852, -0.00011254324298833094, -0.00007416428731734924, -0.00003560670730199985, 0.000003085523548063785, 0.000041867710432921324, 0.00008069434503517607, 0.00011951910789599325, 0.00015829502033131527, 0.00019697472076561434, 0.00023551045567409698, 0.000273853967149023, 0.0003119566063859104, 0.0003497693944357311, 0.0003872430841974543, 0.0004243281073189398, 0.00046097456525713825, 0.0004971324209116283, 0.000532751652541773, 0.0005677825044850944, 0.0006021753837116698, 0.0006358806886685873, 0.0006688490401380291, 0.0007010312176003141, 0.0007323781414864676, 0.0007628410971964845, 0.0007923721224082782, 0.0008209242042168955, 0.000848450750988169, 0.0008749056596557243, 0.0009002434389593702, 0.0009244189680276405, 0.0009473882280306129, 0.0009691087604070867, 0.0009895395597688055, 0.0010086402935785192, 0.001026370720635107, 0.0010426918893056865, 0.0010575665723725415, 0.001070959957358151, 0.0010828391940482756, 0.0010931703343583935, 0.0011019202109286796, 0.0011090596487870318, 0.0011145630445275898, 0.0011184043786736124, 0.001120554074746838, 0.0011209917680571181, 0.0011197029937617083, 0.0011166562966771064, 0.0011118464276884984, 0.0011052512953704699, 0.0010968607244598726, 0.0010866638388056194, 0.0010746506726143957, 0.001060816695739025, 0.001045155823714897, 0.0010276670439197623, 0.001008351157157161, 0.0009872096007023739, 0.0009642482949221396, 0.0009394748128782626, 0.0009128984193201994, 0.0008845315727779604, 0.0008543893284299989, 0.0008224889133179016, 0.0007888494392687725, 0.0007534931574735429, 0.0007164452155151603, 0.0006777324637972142, 0.0006373842981041069, 0.0005954329812500334, 0.0005519133506181678, 0.0005068625728051466, 0.00046032000323413937, 0.0004123276053463404, 0.00036292989933373846, 0.00031217386261437, 0.00026010877383320427, 0.0002067859842737511, 0.00015225938436383264, 0.0000965854576875034, 0.00003982286749323625, -0.0000179677059230694, -0.00007672351611450484, -0.00013637955229787953, -0.00019686867752685767, -0.00025812174980963077, -0.0003200676217906621, -0.0003826333414430741, -0.0004457441136063003, -0.0005093232294712956, -0.0005732921654282367, -0.00063757077202539, -0.0007020774864868515, -0.0007667293014381896, -0.000831441760556577, -0.0008961290102706094, -0.0009607038567017785, -0.0010250779361669813, -0.0010891617777670183, -0.0011528648888359837, -0.0012160958997774157, -0.001278762708717709, -0.0013407725703934634, -0.0014020320140358438, -0.0014624469501256642, -0.0015219229140548082, -0.0015803651881932726, -0.0016376788121915474, -0.0016937685933671551, -0.0017485393883605888, -0.0018018962922161296, -0.001853744622258798, -0.0019039899562331246, -0.0019525381533939561, -0.001999295568971595, -0.0020441692691091497, -0.0020870671590057003, -0.0021278980935438433, -0.002166571859834074, -0.0022029993905251185, -0.002237092766198614, -0.0022687651100535395, -0.0022979310017697827, -0.002324506765063281, -0.002348410532134342, -0.0023695620904663124, -0.002387882877950405, -0.0024032962764901395, -0.002415727498004215, -0.0024251041062769677, -0.0024313565047816045, -0.002434417346479244, -0.002434221285942243, -0.0024307050845577974, -0.0024238084309784105, -0.0024134744272458933, -0.0023996490147598095, -0.0023822808507958644, -0.002361320552774569, -0.0023367219180767287, -0.0023084438037733195, -0.0022764477146557157, -0.0022406968577953325, -0.0022011577213322964, -0.002157802353593739, -0.0021106071299345493, -0.0020595468628108226, -0.0020046032562800113, -0.0019457662560451291, -0.0018830178785251698, -0.0018163568650903469, -0.0017457762721459498, -0.0016712774888046648, -0.0015928655517344435, -0.0015105465040104254, -0.0014243352289427366, -0.001334245183172585, -0.0012402971508224737, -0.001142515914146565, -0.001040927635788706, -0.0009355648118899454, -0.0008264637875103248, -0.0007136636835055012, -0.0005972078914059598, -0.00047714437051389635, -0.0003535251665308113, -0.00022640509673521253, -0.00009584304366831371, 0.00003809737583447662, 0.000175349189952471, 0.0003158420005530984, 0.00045950168388054715, 0.0006062501796784794, 0.0007560055720837391, 0.0009086826695053086, 0.0010641930047446363, 0.0012224448181092644, 0.001383342762009772, 0.0015467879147444098, 0.0017126784900794694, 0.0018809098064416602, 0.002051374038980255, 0.00222396027153397, 0.0023985546780390995, 0.00257504080294078, 0.002753299611825817, 0.0029332096760600742, 0.0031146471999652266, 0.00329748586141485, 0.0034815970640890118, 0.0036668502022383534, 0.0038531128164763875, 0.004040250654892737, 0.004228127702681014, 0.004416606372309768, 0.004605547604211298, 0.004794811008263008, 0.004984255005236749, 0.005173736922644052, 0.005363113237573505, 0.005552239713188401, 0.005740971456077898, 0.005929163001618124, 0.006116668526010137, 0.006303342137957434, 0.006489037895773713, 0.006673609810898314, 0.006856912040272674, 0.007038799176867838, 0.007219126469467923, 0.00739774981209459, 0.007574525856115118, 0.00774931217821552, 0.007921967422212448, 0.008092351521264793, 0.008260325786691655, 0.0084257530686515, 0.008588497916423984, 0.008748426684777003, 0.008905407631376806, 0.00905931090707958, 0.009210008945621842, 0.009357376767512868, 0.0095012918586961, 0.009641634222518982, 0.009778286439590446, 0.009911133869143742, 0.010040064826756685, 0.010164970855541414, 0.010285747084632053, 0.01040229168758197, 0.010514505774592219, 0.010622294054150362, 0.010725565119997272, 0.010824231613731668, 0.010918209734582957, 0.011007419162404072, 0.01109178352506284, 0.011171230745049823, 0.011245693678816775, 0.011315108689601935, 0.011379415321537538, 0.011438558592290933, 0.011492488522300438, 0.011541158942797008, 0.01158452699694985, 0.011622555335241312, 0.011655213312299231, 0.011682471044774176, 0.011704304362857888, 0.011720697805424401, 0.011731632913262123, 0.011737103714478897, 0.011737103714478897, 0.011731632913262123, 0.011720697805424401, 0.011704304362857888, 0.011682471044774176, 0.011655213312299231, 0.011622555335241312, 0.01158452699694985, 0.011541158942797008, 0.011492488522300438, 0.011438558592290933, 0.011379415321537538, 0.011315108689601935, 0.011245693678816775, 0.011171230745049823, 0.01109178352506284, 0.011007419162404072, 0.010918209734582957, 0.010824231613731668, 0.010725565119997272, 0.010622294054150362, 0.010514505774592219, 0.01040229168758197, 0.010285747084632053, 0.010164970855541414, 0.010040064826756685, 0.009911133869143742, 0.009778286439590446, 0.009641634222518982, 0.0095012918586961, 0.009357376767512868, 0.009210008945621842, 0.00905931090707958, 0.008905407631376806, 0.008748426684777003, 0.008588497916423984, 0.0084257530686515, 0.008260325786691655, 0.008092351521264793, 0.007921967422212448, 0.00774931217821552, 0.007574525856115118, 0.00739774981209459, 0.007219126469467923, 0.007038799176867838, 0.006856912040272674, 0.006673609810898314, 0.006489037895773713, 0.006303342137957434, 0.006116668526010137, 0.005929163001618124, 0.005740971456077898, 0.005552239713188401, 0.005363113237573505, 0.005173736922644052, 0.004984255005236749, 0.004794811008263008, 0.004605547604211298, 0.004416606372309768, 0.004228127702681014, 0.004040250654892737, 0.0038531128164763875, 0.0036668502022383534, 0.0034815970640890118, 0.00329748586141485, 0.0031146471999652266, 0.0029332096760600742, 0.002753299611825817, 0.00257504080294078, 0.0023985546780390995, 0.00222396027153397, 0.002051374038980255, 0.0018809098064416602, 0.0017126784900794694, 0.0015467879147444098, 0.001383342762009772, 0.0012224448181092644, 0.0010641930047446363, 0.0009086826695053086, 0.0007560055720837391, 0.0006062501796784794, 0.00045950168388054715, 0.0003158420005530984, 0.000175349189952471, 0.00003809737583447662, -0.00009584304366831371, -0.00022640509673521253, -0.0003535251665308113, -0.00047714437051389635, -0.0005972078914059598, -0.0007136636835055012, -0.0008264637875103248, -0.0009355648118899454, -0.001040927635788706, -0.001142515914146565, -0.0012402971508224737, -0.001334245183172585, -0.0014243352289427366, -0.0015105465040104254, -0.0015928655517344435, -0.0016712774888046648, -0.0017457762721459498, -0.0018163568650903469, -0.0018830178785251698, -0.0019457662560451291, -0.0020046032562800113, -0.0020595468628108226, -0.0021106071299345493, -0.002157802353593739, -0.0022011577213322964, -0.0022406968577953325, -0.0022764477146557157, -0.0023084438037733195, -0.0023367219180767287, -0.002361320552774569, -0.0023822808507958644, -0.0023996490147598095, -0.0024134744272458933, -0.0024238084309784105, -0.0024307050845577974, -0.002434221285942243, -0.002434417346479244, -0.0024313565047816045, -0.0024251041062769677, -0.002415727498004215, -0.0024032962764901395, -0.002387882877950405, -0.0023695620904663124, -0.002348410532134342, -0.002324506765063281, -0.0022979310017697827, -0.0022687651100535395, -0.002237092766198614, -0.0022029993905251185, -0.002166571859834074, -0.0021278980935438433, -0.0020870671590057003, -0.0020441692691091497, -0.001999295568971595, -0.0019525381533939561, -0.0019039899562331246, -0.001853744622258798, -0.0018018962922161296, -0.0017485393883605888, -0.0016937685933671551, -0.0016376788121915474, -0.0015803651881932726, -0.0015219229140548082, -0.0014624469501256642, -0.0014020320140358438, -0.0013407725703934634, -0.001278762708717709, -0.0012160958997774157, -0.0011528648888359837, -0.0010891617777670183, -0.0010250779361669813, -0.0009607038567017785, -0.0008961290102706094, -0.000831441760556577, -0.0007667293014381896, -0.0007020774864868515, -0.00063757077202539, -0.0005732921654282367, -0.0005093232294712956, -0.0004457441136063003, -0.0003826333414430741, -0.0003200676217906621, -0.00025812174980963077, -0.00019686867752685767, -0.00013637955229787953, -0.00007672351611450484, -0.0000179677059230694, 0.00003982286749323625, 0.0000965854576875034, 0.00015225938436383264, 0.0002067859842737511, 0.00026010877383320427, 0.00031217386261437, 0.00036292989933373846, 0.0004123276053463404, 0.00046032000323413937, 0.0005068625728051466, 0.0005519133506181678, 0.0005954329812500334, 0.0006373842981041069, 0.0006777324637972142, 0.0007164452155151603, 0.0007534931574735429, 0.0007888494392687725, 0.0008224889133179016, 0.0008543893284299989, 0.0008845315727779604, 0.0009128984193201994, 0.0009394748128782626, 0.0009642482949221396, 0.0009872096007023739, 0.001008351157157161, 0.0010276670439197623, 0.001045155823714897, 0.001060816695739025, 0.0010746506726143957, 0.0010866638388056194, 0.0010968607244598726, 0.0011052512953704699, 0.0011118464276884984, 0.0011166562966771064, 0.0011197029937617083, 0.0011209917680571181, 0.001120554074746838, 0.0011184043786736124, 0.0011145630445275898, 0.0011090596487870318, 0.0011019202109286796, 0.0010931703343583935, 0.0010828391940482756, 0.001070959957358151, 0.0010575665723725415, 0.0010426918893056865, 0.001026370720635107, 0.0010086402935785192, 0.0009895395597688055, 0.0009691087604070867, 0.0009473882280306129, 0.0009244189680276405, 0.0009002434389593702, 0.0008749056596557243, 0.000848450750988169, 0.0008209242042168955, 0.0007923721224082782, 0.0007628410971964845, 0.0007323781414864676, 0.0007010312176003141, 0.0006688490401380291, 0.0006358806886685873, 0.0006021753837116698, 0.0005677825044850944, 0.000532751652541773, 0.0004971324209116283, 0.00046097456525713825, 0.0004243281073189398, 0.0003872430841974543, 0.0003497693944357311, 0.0003119566063859104, 0.000273853967149023, 0.00023551045567409698, 0.00019697472076561434, 0.00015829502033131527, 0.00011951910789599325, 0.00008069434503517607, 0.000041867710432921324, 0.000003085523548063785, -0.00003560670730199985, -0.00007416428731734924, -0.00011254324298833094, -0.0001507003780746852, -0.00018859337566807589, -0.00022618073814697159, -0.0002634218056255867, -0.00030027682371347247, -0.0003367070808797812, -0.0003726750006857615, -0.00040814409766798117, -0.00044307897054750035, -0.00047744526762494543, -0.0005112097970335273, -0.0005443406366124165, -0.0005768070388328386, -0.0006085793855511994, -0.0006396291849638128, -0.0006699292108326442, -0.0006994535909524986, -0.0007281777992737946, -0.0007560787238727222, -0.0007831344484904399, -0.0008093242093186422, -0.0008346286688776923, -0.0008590299683449941, -0.0008825115697880996, -0.0009050579826107043, -0.0009266549999954207, -0.0009472899718477435, -0.0009669515631450903, -0.000985629760693179, -0.0010033157303544313, -0.0010200018714693214, -0.0010356821468104041, -0.0010503518239957826, -0.0010640072735802143, -0.0010766458418348251, -0.0010882663676571244, -0.0010988693663578895, -0.00110845587457712, -0.0011170279740759658, -0.0011245894559787622, -0.0011311451534842774, -0.001136700795386366, -0.0011412629577426628, -0.00114484006082293, -0.0011474412643782891, -0.001149075700165883, -0.0011497552449535495, -0.0011494916928265647, -0.0011482970085184934, -0.0011461862709457055, -0.001143172631327465, -0.0011392722062450377, -0.001134502525433292, -0.0011288733610789721, -0.0011224205008357393, -0.001115133482641312, -0.0011070578885002702, -0.001098205538071845, -0.0010885880181663468, -0.0010782313132298208, -0.001067160927893583, -0.0010553976134962566, -0.0010429598373262593, -0.0010298692409237303, -0.001016150958603644, -0.0010018296635038234, -0.000986929306593871, -0.0009714727766152153, -0.0009554827702629912, -0.0009389835464993075, -0.000922000299232565, -0.0009045584634477986, -0.0008866831646045461, -0.0008683991132471614, -0.0008497307715244494, -0.0008307023010845163, -0.0008113383362587028, -0.0007916639719227004, -0.000771704162227947, -0.0007514837903863777, -0.000731027532147202, -0.000710359669543136, -0.0006895039843981559, -0.0006684839703829051, -0.0006473231692560336, -0.0006260449390330644, -0.0006046723908249317, -0.0005832284295812785, -0.0005617356366067017, -0.0005402162469729259, -0.0005186919510053738, -0.0004971838198071831, -0.0004757124161811035, -0.00045429794314525324, -0.00043296032505169577, -0.00041171900064429, -0.00039059290984859706, -0.0003696006180382817, -0.0003487602312779994, -0.00032808926773727473, -0.0003076045740274102, -0.00028732242720909374, -0.00026725858015049425, -0.00024742817471772824, -0.00022784574374784246, -0.00020852521704417434, -0.0001894800112434245, -0.00017072306915224178, -0.0001522667855569792, -0.000134122927443183, -0.00011630254584578235, -0.00009881608266779326, -0.00008167344072768395, -0.00006488392097284113, -0.00004845619470295486, -0.00003239824489309241, -0.000016717431552354825, -0.0000014205550195404417, 0.000013486064917873263, 0.000027996578416041823, 0.000042105866991998394, 0.00005580947004681174, 0.00006910334679829026, 0.00008198390428241564, 0.00009444816369190979, 0.00010649390448787931, 0.00011811939311034222, 0.00012932331202118152, 0.00014010492118016657, 0.00015046397564821766, 0.00016040086314937234, 0.0001699163889323255, 0.00017901156693343162, 0.00018768793613519225, 0.00019594765441000844, 0.00020379342129965214, 0.0002112279751888258, 0.00021825436568685826, 0.0002248766203312044, 0.00023109887243694582, 0.00023692535214431433, 0.00024236092911432053, 0.00024741089077219824, 0.00025208079324849864, 0.0002563760351381784, 0.00026030295633048156, 0.0002638682356241208, 0.0002670776879725044, 0.0002699387312629035, 0.00027245845620400524, 0.00027464338678576605, 0.0002765020258372484, 0.0002780409500002217, 0.00027926833477321045, 0.000280197444464886, 0.0002808065268305555, 0.0002811853995116189, 0.0002812218387032567, 0.0002810071637276198, 0.0002805501390130166, 0.0002798371088712506, 0.0002788693645809233, 0.0002776600678298683, 0.0002762259706331217, 0.0002745790007011535, 0.00027272653793114146, 0.0002706745796903796, 0.00026842872851524756, 0.000265996883919168, 0.00026338871874574443, 0.000260614166491108, 0.00025768336513093236, 0.00025460575109546185, 0.00025138980120093706, 0.00024804316088030066, 0.0002445732198467269, 0.00024098757818162363, 0.00023729369397980805, 0.00023349938436811445, 0.0002296129456080256, 0.0002256425365807074, 0.00022159611743123445, 0.00021748145118260308, 0.00021330607883745088, 0.00020907706346541747, 0.00020480094575553342, 0.00020048414321002534, 0.00019613295450734188, 0.000191753562437378, 0.00018735205242694257, 0.0001829343448175031, 0.00017850636200629103, 0.0001740740165774301, 0.0001696430686231646, 0.00016521898552431528, 0.0001608069510673283, 0.00015641203030453322, 0.0001520390228045441, 0.0001476923508970611, 0.0001433761787732808, 0.0001390945080465441, 0.00013485120459499745, 0.0001306498943438022, 0.0001264939791526471, 0.0001223867211507117, 0.00011833127277888537, 0.00011433071893118852, 0.00011038797758602729, 0.00010650572670297642, 0.00010268641529207459, 0.0000989323217880672, 0.00009524561718379787, 0.00009162826246394013, 0.00008808197111592392, 0.00008460822180317937, 0.00008120828768996651, 0.00007788334878376474, 0.00007463447593939765, 0.00007146257248874113, 0.00006836828400903681, 0.0000653520878490535, 0.00006241451652786996, 0.00005955600371707976, 0.00005677675565218903, 0.000054076836400090634, 0.000051456283434024254, 0.00004891512239763599, 0.00004645314118637872, 0.00004406996003435772, 0.000041765124869157065, 0.00003953809180607858, 0.000037388352711032095, 0.00003531515315607694, 0.0000333174817796639, 0.000031394387750225555, 0.00002954497152514943, 0.00002776823090942686, 0.000026062787460182665, 0.00002442737159197627, 0.000022860960742170415, 0.00002136207377464052, 0.00001992924403854817, 0.000018561209740219567, 0.00001725659281802051, 0.00001601386713533323, 0.000014831347439124435, 0.00001370786337628007, 0.000012641797347255405, 0.000011631201209261511, 0.00001067513223630924, 0.000009771649771624484, 0.000008919034969234169, 0.000008116254962232182, 0.000007360859185648702, 0.000006651966903409214, 0.0000059874129268137184, 0.0000053659189590266235, 0.000022913289467138396
5147 };
5248
53−
5449 const float* __leaf_tableref_firCoeffs[COEFFS_SIZE] = { __leaf_table_fir2XLow, __leaf_table_fir4XLow, __leaf_table_fir8XLow, __leaf_table_fir16XLow, __leaf_table_fir32XLow, __leaf_table_fir64XLow, __leaf_table_fir2XHigh, __leaf_table_fir4XHigh, __leaf_table_fir8XHigh, __leaf_table_fir16XHigh, __leaf_table_fir32XHigh, __leaf_table_fir64XHigh
5550 };
5651
5752 const float __leaf_tablesize_firNumTaps[COEFFS_SIZE] = { 32, 32, 64, 128, 256, 256, 128, 256, 256, 512, 512, 1024 };
53+#endif // LEAF_INCLUDE_OVERSAMPLER_TABLES
5854
59−
60−#ifdef USE_SHAPER_TABLE
55+#if LEAF_INCLUDE_SHAPER_TABLE
6156 const float __leaf_table_shaper1[SHAPER1_TABLE_SIZE] = {0.333061f, 0.333022f, 0.332983f, 0.332944f, 0.332905f, 0.332866f, 0.332827f, 0.332788f, 0.332749f, 0.33271f, 0.332671f, 0.332632f, 0.332593f, 0.332554f, 0.332515f, 0.332475f, 0.332436f, 0.332397f, 0.332358f, 0.332319f,
6257 0.33228f, 0.33224f, 0.332201f, 0.332162f, 0.332123f, 0.332083f, 0.332044f, 0.332005f, 0.331966f, 0.331926f, 0.331887f, 0.331848f, 0.331808f, 0.331769f, 0.33173f, 0.33169f, 0.331651f, 0.331611f, 0.331572f, 0.331533f,
6358 0.331493f, 0.331454f, 0.331414f, 0.331375f, 0.331335f, 0.331296f, 0.331256f, 0.331217f, 0.331177f, 0.331138f, 0.331098f, 0.331059f, 0.331019f, 0.330979f, 0.33094f, 0.3309f, 0.330861f, 0.330821f, 0.330781f, 0.330742f,
@@ -3335,10 +3330,9 @@ const float __leaf_table_shaper1[SHAPER1_TABLE_SIZE] = {0.333061f, 0.333022f, 0. · 3271 unmodified lines
33353330 -0.219509f, -0.219555f, -0.219601f, -0.219648f, -0.219694f, -0.21974f, -0.219787f, -0.219833f, -0.219879f, -0.219925f, -0.219972f, -0.220018f, -0.220064f, -0.22011f, -0.220156f, -0.220203f, -0.220249f, -0.220295f, -0.220341f, -0.220387f,
33363331 -0.220433f, -0.220479f, -0.220526f, -0.220572f, -0.220618f, -0.220664f, -0.22071f, -0.220756f, -0.220802f, -0.220848f, -0.220894f, -0.22094f, -0.220986f, -0.221032f, -0.221078f, -0.221124f, -0.22117f, -0.221216f, -0.221262f, -0.221308f,
33373332 -0.221354f, -0.221399f, -0.221445f, -0.221491f, -0.221537f, -0.221583f, -0.221629f, -0.221675f, -0.22172f, -0.221766f, -0.221812f, -0.221858f, -0.221904f, -0.221949f, -0.221995f, -0.222041f, };
3338−#endif
3339−
3333+#endif // LEAF_INCLUDE_SHAPER_TABLES
33403334
3341−#ifdef USE_SAWTOOTH_TABLE
3335+#if LEAF_INCLUDE_SAWTOOTH_TABLE
33423336 const float __leaf_table_sawtooth[11][SAW_TABLE_SIZE] =
33433337 {
33443338
@@ -3387,10 +3381,9 @@ const float __leaf_table_sawtooth[11][SAW_TABLE_SIZE] = · 42 unmodified lines
33873381 },
33883382
33893383 };
3390−#endif
3391−
3392−#ifdef USE_TRIANGLE_TABLE
3384+#endif // LEAF_INCLUDE_SAWTOOTH_TABLES
33933385
3386+#if LEAF_INCLUDE_TRIANGLE_TABLE
33943387 const float __leaf_table_triangle[11][TRI_TABLE_SIZE] =
33953388 {
33963389
@@ -3438,9 +3431,9 @@ const float __leaf_table_triangle[11][TRI_TABLE_SIZE] = · 41 unmodified lines
34383431 0.0f, 0.002301f, 0.004602f, 0.006903f, 0.009204f, 0.011504f, 0.013805f, 0.016106f, 0.018406f, 0.020706f, 0.023006f, 0.025306f, 0.027605f, 0.029905f, 0.032204f, 0.034502f, 0.036801f, 0.039099f, 0.041396f, 0.043694f, 0.045991f, 0.048287f, 0.050583f, 0.052878f, 0.055173f, 0.057468f, 0.059762f, 0.062055f, 0.064348f, 0.06664f, 0.068932f, 0.071223f, 0.073513f, 0.075802f, 0.078091f, 0.080379f, 0.082667f, 0.084953f, 0.087239f, 0.089524f, 0.091808f, 0.094091f, 0.096374f, 0.098655f, 0.100936f, 0.103215f, 0.105494f, 0.107771f, 0.110048f, 0.112323f, 0.114598f, 0.116871f, 0.119144f, 0.121415f, 0.123685f, 0.125954f, 0.128221f, 0.130488f, 0.132753f, 0.135017f, 0.13728f, 0.139541f, 0.141802f, 0.14406f, 0.146318f, 0.148574f, 0.150828f, 0.153082f, 0.155334f, 0.157584f, 0.159833f, 0.16208f, 0.164326f, 0.16657f, 0.168813f, 0.171054f, 0.173294f, 0.175531f, 0.177768f, 0.180002f, 0.182235f, 0.184466f, 0.186696f, 0.188923f, 0.191149f, 0.193373f, 0.195596f, 0.197816f, 0.200035f, 0.202251f, 0.204466f, 0.206679f, 0.20889f, 0.211099f, 0.213306f, 0.215511f, 0.217714f, 0.219914f, 0.222113f, 0.22431f, 0.226504f, 0.228697f, 0.230887f, 0.233075f, 0.235261f, 0.237445f, 0.239627f, 0.241806f, 0.243983f, 0.246157f, 0.24833f, 0.2505f, 0.252667f, 0.254833f, 0.256996f, 0.259156f, 0.261314f, 0.26347f, 0.265623f, 0.267773f, 0.269921f, 0.272067f, 0.27421f, 0.27635f, 0.278488f, 0.280623f, 0.282756f, 0.284885f, 0.287013f, 0.289137f, 0.291259f, 0.293378f, 0.295494f, 0.297607f, 0.299718f, 0.301826f, 0.303931f, 0.306033f, 0.308132f, 0.310229f, 0.312322f, 0.314413f, 0.3165f, 0.318585f, 0.320666f, 0.322745f, 0.32482f, 0.326893f, 0.328962f, 0.331028f, 0.333092f, 0.335152f, 0.337208f, 0.339262f, 0.341313f, 0.34336f, 0.345404f, 0.347445f, 0.349482f, 0.351517f, 0.353548f, 0.355575f, 0.357599f, 0.35962f, 0.361638f, 0.363652f, 0.365663f, 0.36767f, 0.369674f, 0.371674f, 0.373671f, 0.375664f, 0.377654f, 0.37964f, 0.381623f, 0.383602f, 0.385577f, 0.387549f, 0.389517f, 0.391481f, 0.393442f, 0.395399f, 0.397353f, 0.399302f, 0.401248f, 0.40319f, 0.405129f, 0.407063f, 0.408994f, 0.410921f, 0.412843f, 0.414763f, 0.416678f, 0.418589f, 0.420496f, 0.4224f, 0.424299f, 0.426194f, 0.428086f, 0.429973f, 0.431856f, 0.433735f, 0.43561f, 0.437481f, 0.439348f, 0.441211f, 0.44307f, 0.444924f, 0.446774f, 0.448621f, 0.450462f, 0.4523f, 0.454133f, 0.455962f, 0.457787f, 0.459608f, 0.461424f, 0.463235f, 0.465043f, 0.466846f, 0.468645f, 0.470439f, 0.472229f, 0.474014f, 0.475795f, 0.477571f, 0.479343f, 0.481111f, 0.482874f, 0.484632f, 0.486386f, 0.488135f, 0.48988f, 0.49162f, 0.493355f, 0.495086f, 0.496812f, 0.498533f, 0.50025f, 0.501962f, 0.503669f, 0.505372f, 0.50707f, 0.508763f, 0.510451f, 0.512134f, 0.513813f, 0.515487f, 0.517155f, 0.518819f, 0.520479f, 0.522133f, 0.523782f, 0.525427f, 0.527066f, 0.528701f, 0.53033f, 0.531955f, 0.533574f, 0.535189f, 0.536798f, 0.538403f, 0.540002f, 0.541596f, 0.543185f, 0.544769f, 0.546348f, 0.547922f, 0.549491f, 0.551054f, 0.552612f, 0.554165f, 0.555713f, 0.557256f, 0.558793f, 0.560325f, 0.561852f, 0.563374f, 0.56489f, 0.566401f, 0.567907f, 0.569407f, 0.570902f, 0.572391f, 0.573875f, 0.575354f, 0.576828f, 0.578295f, 0.579758f, 0.581215f, 0.582666f, 0.584112f, 0.585553f, 0.586988f, 0.588417f, 0.589841f, 0.59126f, 0.592673f, 0.59408f, 0.595482f, 0.596878f, 0.598268f, 0.599653f, 0.601032f, 0.602406f, 0.603773f, 0.605136f, 0.606492f, 0.607843f, 0.609188f, 0.610527f, 0.611861f, 0.613189f, 0.614511f, 0.615827f, 0.617137f, 0.618442f, 0.619741f, 0.621034f, 0.622321f, 0.623602f, 0.624878f, 0.626147f, 0.627411f, 0.628669f, 0.62992f, 0.631166f, 0.632406f, 0.63364f, 0.634868f, 0.63609f, 0.637306f, 0.638516f, 0.63972f, 0.640918f, 0.64211f, 0.643296f, 0.644476f, 0.64565f, 0.646818f, 0.64798f, 0.649135f, 0.650285f, 0.651428f, 0.652565f, 0.653696f, 0.654821f, 0.65594f, 0.657053f, 0.658159f, 0.659259f, 0.660353f, 0.661441f, 0.662523f, 0.663598f, 0.664667f, 0.66573f, 0.666786f, 0.667837f, 0.668881f, 0.669918f, 0.67095f, 0.671975f, 0.672993f, 0.674006f, 0.675012f, 0.676012f, 0.677005f, 0.677992f, 0.678973f, 0.679947f, 0.680915f, 0.681876f, 0.682831f, 0.68378f, 0.684722f, 0.685657f, 0.686587f, 0.687509f, 0.688426f, 0.689335f, 0.690239f, 0.691136f, 0.692026f, 0.69291f, 0.693787f, 0.694658f, 0.695522f, 0.69638f, 0.697231f, 0.698075f, 0.698913f, 0.699745f, 0.700569f, 0.701388f, 0.702199f, 0.703004f, 0.703803f, 0.704594f, 0.70538f, 0.706158f, 0.70693f, 0.707695f, 0.708454f, 0.709205f, 0.709951f, 0.710689f, 0.711421f, 0.712146f, 0.712865f, 0.713576f, 0.714281f, 0.71498f, 0.715671f, 0.716356f, 0.717034f, 0.717705f, 0.71837f, 0.719028f, 0.719679f, 0.720323f, 0.72096f, 0.721591f, 0.722215f, 0.722832f, 0.723442f, 0.724046f, 0.724643f, 0.725232f, 0.725815f, 0.726392f, 0.726961f, 0.727523f, 0.728079f, 0.728628f, 0.72917f, 0.729705f, 0.730233f, 0.730755f, 0.731269f, 0.731777f, 0.732277f, 0.732771f, 0.733258f, 0.733738f, 0.734211f, 0.734677f, 0.735137f, 0.735589f, 0.736034f, 0.736473f, 0.736904f, 0.737329f, 0.737747f, 0.738158f, 0.738561f, 0.738958f, 0.739348f, 0.739731f, 0.740107f, 0.740476f, 0.740838f, 0.741193f, 0.741541f, 0.741882f, 0.742217f, 0.742544f, 0.742864f, 0.743177f, 0.743483f, 0.743782f, 0.744074f, 0.74436f, 0.744638f, 0.744909f, 0.745173f, 0.74543f, 0.74568f, 0.745923f, 0.746159f, 0.746389f, 0.746611f, 0.746826f, 0.747034f, 0.747234f, 0.747428f, 0.747615f, 0.747795f, 0.747968f, 0.748134f, 0.748292f, 0.748444f, 0.748589f, 0.748726f, 0.748857f, 0.74898f, 0.749097f, 0.749206f, 0.749308f, 0.749404f, 0.749492f, 0.749573f, 0.749647f, 0.749714f, 0.749774f, 0.749827f, 0.749873f, 0.749912f, 0.749944f, 0.749968f, 0.749986f, 0.749996f, 0.75f, 0.749996f, 0.749986f, 0.749968f, 0.749944f, 0.749912f, 0.749873f, 0.749827f, 0.749774f, 0.749714f, 0.749647f, 0.749573f, 0.749492f, 0.749404f, 0.749308f, 0.749206f, 0.749097f, 0.74898f, 0.748857f, 0.748726f, 0.748589f, 0.748444f, 0.748292f, 0.748134f, 0.747968f, 0.747795f, 0.747615f, 0.747428f, 0.747234f, 0.747034f, 0.746826f, 0.746611f, 0.746389f, 0.746159f, 0.745923f, 0.74568f, 0.74543f, 0.745173f, 0.744909f, 0.744638f, 0.74436f, 0.744074f, 0.743782f, 0.743483f, 0.743177f, 0.742864f, 0.742544f, 0.742217f, 0.741882f, 0.741541f, 0.741193f, 0.740838f, 0.740476f, 0.740107f, 0.739731f, 0.739348f, 0.738958f, 0.738561f, 0.738158f, 0.737747f, 0.737329f, 0.736904f, 0.736473f, 0.736034f, 0.735589f, 0.735137f, 0.734677f, 0.734211f, 0.733738f, 0.733258f, 0.732771f, 0.732277f, 0.731777f, 0.731269f, 0.730755f, 0.730233f, 0.729705f, 0.72917f, 0.728628f, 0.728079f, 0.727523f, 0.726961f, 0.726392f, 0.725815f, 0.725232f, 0.724643f, 0.724046f, 0.723442f, 0.722832f, 0.722215f, 0.721591f, 0.72096f, 0.720323f, 0.719679f, 0.719028f, 0.71837f, 0.717705f, 0.717034f, 0.716356f, 0.715671f, 0.71498f, 0.714281f, 0.713576f, 0.712865f, 0.712146f, 0.711421f, 0.710689f, 0.709951f, 0.709205f, 0.708454f, 0.707695f, 0.70693f, 0.706158f, 0.70538f, 0.704594f, 0.703803f, 0.703004f, 0.702199f, 0.701388f, 0.700569f, 0.699745f, 0.698913f, 0.698075f, 0.697231f, 0.69638f, 0.695522f, 0.694658f, 0.693787f, 0.69291f, 0.692026f, 0.691136f, 0.690239f, 0.689335f, 0.688426f, 0.687509f, 0.686587f, 0.685657f, 0.684722f, 0.68378f, 0.682831f, 0.681876f, 0.680915f, 0.679947f, 0.678973f, 0.677992f, 0.677005f, 0.676012f, 0.675012f, 0.674006f, 0.672993f, 0.671975f, 0.67095f, 0.669918f, 0.668881f, 0.667837f, 0.666786f, 0.66573f, 0.664667f, 0.663598f, 0.662523f, 0.661441f, 0.660353f, 0.659259f, 0.658159f, 0.657053f, 0.65594f, 0.654821f, 0.653696f, 0.652565f, 0.651428f, 0.650285f, 0.649135f, 0.64798f, 0.646818f, 0.64565f, 0.644476f, 0.643296f, 0.64211f, 0.640918f, 0.63972f, 0.638516f, 0.637306f, 0.63609f, 0.634868f, 0.63364f, 0.632406f, 0.631166f, 0.62992f, 0.628669f, 0.627411f, 0.626147f, 0.624878f, 0.623602f, 0.622321f, 0.621034f, 0.619741f, 0.618442f, 0.617137f, 0.615827f, 0.614511f, 0.613189f, 0.611861f, 0.610527f, 0.609188f, 0.607843f, 0.606492f, 0.605136f, 0.603773f, 0.602406f, 0.601032f, 0.599653f, 0.598268f, 0.596878f, 0.595482f, 0.59408f, 0.592673f, 0.59126f, 0.589841f, 0.588417f, 0.586988f, 0.585553f, 0.584112f, 0.582666f, 0.581215f, 0.579758f, 0.578295f, 0.576828f, 0.575354f, 0.573875f, 0.572391f, 0.570902f, 0.569407f, 0.567907f, 0.566401f, 0.56489f, 0.563374f, 0.561852f, 0.560325f, 0.558793f, 0.557256f, 0.555713f, 0.554165f, 0.552612f, 0.551054f, 0.549491f, 0.547922f, 0.546348f, 0.544769f, 0.543185f, 0.541596f, 0.540002f, 0.538403f, 0.536798f, 0.535189f, 0.533574f, 0.531955f, 0.53033f, 0.528701f, 0.527066f, 0.525427f, 0.523782f, 0.522133f, 0.520479f, 0.518819f, 0.517155f, 0.515487f, 0.513813f, 0.512134f, 0.510451f, 0.508763f, 0.50707f, 0.505372f, 0.503669f, 0.501962f, 0.50025f, 0.498533f, 0.496812f, 0.495086f, 0.493355f, 0.49162f, 0.48988f, 0.488135f, 0.486386f, 0.484632f, 0.482874f, 0.481111f, 0.479343f, 0.477571f, 0.475795f, 0.474014f, 0.472229f, 0.470439f, 0.468645f, 0.466846f, 0.465043f, 0.463235f, 0.461424f, 0.459608f, 0.457787f, 0.455962f, 0.454133f, 0.4523f, 0.450462f, 0.448621f, 0.446774f, 0.444924f, 0.44307f, 0.441211f, 0.439348f, 0.437481f, 0.43561f, 0.433735f, 0.431856f, 0.429973f, 0.428086f, 0.426194f, 0.424299f, 0.4224f, 0.420496f, 0.418589f, 0.416678f, 0.414763f, 0.412843f, 0.410921f, 0.408994f, 0.407063f, 0.405129f, 0.40319f, 0.401248f, 0.399302f, 0.397353f, 0.395399f, 0.393442f, 0.391481f, 0.389517f, 0.387549f, 0.385577f, 0.383602f, 0.381623f, 0.37964f, 0.377654f, 0.375664f, 0.373671f, 0.371674f, 0.369674f, 0.36767f, 0.365663f, 0.363652f, 0.361638f, 0.35962f, 0.357599f, 0.355575f, 0.353548f, 0.351517f, 0.349482f, 0.347445f, 0.345404f, 0.34336f, 0.341313f, 0.339262f, 0.337208f, 0.335152f, 0.333092f, 0.331028f, 0.328962f, 0.326893f, 0.32482f, 0.322745f, 0.320666f, 0.318585f, 0.3165f, 0.314413f, 0.312322f, 0.310229f, 0.308132f, 0.306033f, 0.303931f, 0.301826f, 0.299718f, 0.297607f, 0.295494f, 0.293378f, 0.291259f, 0.289137f, 0.287013f, 0.284885f, 0.282756f, 0.280623f, 0.278488f, 0.27635f, 0.27421f, 0.272067f, 0.269921f, 0.267773f, 0.265623f, 0.26347f, 0.261314f, 0.259156f, 0.256996f, 0.254833f, 0.252667f, 0.2505f, 0.24833f, 0.246157f, 0.243983f, 0.241806f, 0.239627f, 0.237445f, 0.235261f, 0.233075f, 0.230887f, 0.228697f, 0.226504f, 0.22431f, 0.222113f, 0.219914f, 0.217714f, 0.215511f, 0.213306f, 0.211099f, 0.20889f, 0.206679f, 0.204466f, 0.202251f, 0.200035f, 0.197816f, 0.195596f, 0.193373f, 0.191149f, 0.188923f, 0.186696f, 0.184466f, 0.182235f, 0.180002f, 0.177768f, 0.175531f, 0.173294f, 0.171054f, 0.168813f, 0.16657f, 0.164326f, 0.16208f, 0.159833f, 0.157584f, 0.155334f, 0.153082f, 0.150828f, 0.148574f, 0.146318f, 0.14406f, 0.141801f, 0.139541f, 0.13728f, 0.135017f, 0.132753f, 0.130488f, 0.128221f, 0.125954f, 0.123685f, 0.121415f, 0.119144f, 0.116871f, 0.114598f, 0.112323f, 0.110048f, 0.107771f, 0.105494f, 0.103215f, 0.100936f, 0.098655f, 0.096374f, 0.094091f, 0.091808f, 0.089524f, 0.087239f, 0.084953f, 0.082667f, 0.080379f, 0.078091f, 0.075802f, 0.073513f, 0.071223f, 0.068932f, 0.06664f, 0.064348f, 0.062055f, 0.059762f, 0.057468f, 0.055173f, 0.052878f, 0.050583f, 0.048287f, 0.045991f, 0.043694f, 0.041396f, 0.039099f, 0.036801f, 0.034502f, 0.032204f, 0.029905f, 0.027605f, 0.025306f, 0.023006f, 0.020706f, 0.018406f, 0.016106f, 0.013805f, 0.011504f, 0.009204f, 0.006903f, 0.004602f, 0.002301f, -0.0f, -0.002301f, -0.004602f, -0.006903f, -0.009204f, -0.011504f, -0.013805f, -0.016106f, -0.018406f, -0.020706f, -0.023006f, -0.025306f, -0.027605f, -0.029905f, -0.032204f, -0.034502f, -0.036801f, -0.039099f, -0.041396f, -0.043694f, -0.045991f, -0.048287f, -0.050583f, -0.052878f, -0.055173f, -0.057468f, -0.059762f, -0.062055f, -0.064348f, -0.06664f, -0.068932f, -0.071223f, -0.073513f, -0.075802f, -0.078091f, -0.080379f, -0.082667f, -0.084953f, -0.087239f, -0.089524f, -0.091808f, -0.094091f, -0.096374f, -0.098655f, -0.100936f, -0.103215f, -0.105494f, -0.107771f, -0.110048f, -0.112323f, -0.114598f, -0.116871f, -0.119144f, -0.121415f, -0.123685f, -0.125954f, -0.128221f, -0.130488f, -0.132753f, -0.135017f, -0.13728f, -0.139541f, -0.141801f, -0.14406f, -0.146318f, -0.148574f, -0.150828f, -0.153082f, -0.155334f, -0.157584f, -0.159833f, -0.16208f, -0.164326f, -0.16657f, -0.168813f, -0.171054f, -0.173294f, -0.175531f, -0.177768f, -0.180002f, -0.182235f, -0.184466f, -0.186696f, -0.188923f, -0.191149f, -0.193373f, -0.195596f, -0.197816f, -0.200035f, -0.202251f, -0.204466f, -0.206679f, -0.20889f, -0.211099f, -0.213306f, -0.215511f, -0.217714f, -0.219914f, -0.222113f, -0.22431f, -0.226504f, -0.228697f, -0.230887f, -0.233075f, -0.235261f, -0.237445f, -0.239627f, -0.241806f, -0.243983f, -0.246157f, -0.24833f, -0.2505f, -0.252667f, -0.254833f, -0.256996f, -0.259156f, -0.261314f, -0.26347f, -0.265623f, -0.267773f, -0.269921f, -0.272067f, -0.27421f, -0.27635f, -0.278488f, -0.280623f, -0.282756f, -0.284885f, -0.287013f, -0.289137f, -0.291259f, -0.293378f, -0.295494f, -0.297607f, -0.299718f, -0.301826f, -0.303931f, -0.306033f, -0.308132f, -0.310229f, -0.312322f, -0.314413f, -0.3165f, -0.318585f, -0.320666f, -0.322745f, -0.32482f, -0.326893f, -0.328962f, -0.331028f, -0.333092f, -0.335152f, -0.337208f, -0.339262f, -0.341313f, -0.34336f, -0.345404f, -0.347445f, -0.349482f, -0.351517f, -0.353548f, -0.355575f, -0.357599f, -0.35962f, -0.361638f, -0.363652f, -0.365663f, -0.36767f, -0.369674f, -0.371674f, -0.373671f, -0.375664f, -0.377654f, -0.37964f, -0.381623f, -0.383602f, -0.385577f, -0.387549f, -0.389517f, -0.391481f, -0.393442f, -0.395399f, -0.397353f, -0.399302f, -0.401248f, -0.40319f, -0.405129f, -0.407063f, -0.408994f, -0.410921f, -0.412843f, -0.414763f, -0.416678f, -0.418589f, -0.420496f, -0.4224f, -0.424299f, -0.426194f, -0.428086f, -0.429973f, -0.431856f, -0.433735f, -0.43561f, -0.437481f, -0.439348f, -0.441211f, -0.44307f, -0.444924f, -0.446774f, -0.448621f, -0.450462f, -0.4523f, -0.454133f, -0.455962f, -0.457787f, -0.459608f, -0.461424f, -0.463235f, -0.465043f, -0.466846f, -0.468645f, -0.470439f, -0.472229f, -0.474014f, -0.475795f, -0.477571f, -0.479343f, -0.481111f, -0.482874f, -0.484632f, -0.486386f, -0.488135f, -0.48988f, -0.49162f, -0.493355f, -0.495086f, -0.496812f, -0.498533f, -0.50025f, -0.501962f, -0.503669f, -0.505372f, -0.50707f, -0.508763f, -0.510451f, -0.512134f, -0.513813f, -0.515487f, -0.517155f, -0.518819f, -0.520479f, -0.522133f, -0.523782f, -0.525427f, -0.527066f, -0.528701f, -0.53033f, -0.531955f, -0.533574f, -0.535189f, -0.536798f, -0.538403f, -0.540002f, -0.541596f, -0.543185f, -0.544769f, -0.546348f, -0.547922f, -0.549491f, -0.551054f, -0.552612f, -0.554165f, -0.555713f, -0.557256f, -0.558793f, -0.560325f, -0.561852f, -0.563374f, -0.56489f, -0.566401f, -0.567907f, -0.569407f, -0.570902f, -0.572391f, -0.573875f, -0.575354f, -0.576828f, -0.578295f, -0.579758f, -0.581215f, -0.582666f, -0.584112f, -0.585553f, -0.586988f, -0.588417f, -0.589841f, -0.59126f, -0.592673f, -0.59408f, -0.595482f, -0.596878f, -0.598268f, -0.599653f, -0.601032f, -0.602406f, -0.603773f, -0.605136f, -0.606492f, -0.607843f, -0.609188f, -0.610527f, -0.611861f, -0.613189f, -0.614511f, -0.615827f, -0.617137f, -0.618442f, -0.619741f, -0.621034f, -0.622321f, -0.623602f, -0.624878f, -0.626147f, -0.627411f, -0.628669f, -0.62992f, -0.631166f, -0.632406f, -0.63364f, -0.634868f, -0.63609f, -0.637306f, -0.638516f, -0.63972f, -0.640918f, -0.64211f, -0.643296f, -0.644476f, -0.64565f, -0.646818f, -0.64798f, -0.649135f, -0.650285f, -0.651428f, -0.652565f, -0.653696f, -0.654821f, -0.65594f, -0.657053f, -0.658159f, -0.659259f, -0.660353f, -0.661441f, -0.662523f, -0.663598f, -0.664667f, -0.66573f, -0.666786f, -0.667837f, -0.668881f, -0.669918f, -0.67095f, -0.671975f, -0.672993f, -0.674006f, -0.675012f, -0.676012f, -0.677005f, -0.677992f, -0.678973f, -0.679947f, -0.680915f, -0.681876f, -0.682831f, -0.68378f, -0.684722f, -0.685657f, -0.686587f, -0.687509f, -0.688426f, -0.689335f, -0.690239f, -0.691136f, -0.692026f, -0.69291f, -0.693787f, -0.694658f, -0.695522f, -0.69638f, -0.697231f, -0.698075f, -0.698913f, -0.699745f, -0.700569f, -0.701388f, -0.702199f, -0.703004f, -0.703803f, -0.704594f, -0.70538f, -0.706158f, -0.70693f, -0.707695f, -0.708454f, -0.709205f, -0.709951f, -0.710689f, -0.711421f, -0.712146f, -0.712865f, -0.713576f, -0.714281f, -0.71498f, -0.715671f, -0.716356f, -0.717034f, -0.717705f, -0.71837f, -0.719028f, -0.719679f, -0.720323f, -0.72096f, -0.721591f, -0.722215f, -0.722832f, -0.723442f, -0.724046f, -0.724643f, -0.725232f, -0.725815f, -0.726392f, -0.726961f, -0.727523f, -0.728079f, -0.728628f, -0.72917f, -0.729705f, -0.730233f, -0.730755f, -0.731269f, -0.731777f, -0.732277f, -0.732771f, -0.733258f, -0.733738f, -0.734211f, -0.734677f, -0.735137f, -0.735589f, -0.736034f, -0.736473f, -0.736904f, -0.737329f, -0.737747f, -0.738158f, -0.738561f, -0.738958f, -0.739348f, -0.739731f, -0.740107f, -0.740476f, -0.740838f, -0.741193f, -0.741541f, -0.741882f, -0.742217f, -0.742544f, -0.742864f, -0.743177f, -0.743483f, -0.743782f, -0.744074f, -0.74436f, -0.744638f, -0.744909f, -0.745173f, -0.74543f, -0.74568f, -0.745923f, -0.746159f, -0.746389f, -0.746611f, -0.746826f, -0.747034f, -0.747234f, -0.747428f, -0.747615f, -0.747795f, -0.747968f, -0.748134f, -0.748292f, -0.748444f, -0.748589f, -0.748726f, -0.748857f, -0.74898f, -0.749097f, -0.749206f, -0.749308f, -0.749404f, -0.749492f, -0.749573f, -0.749647f, -0.749714f, -0.749774f, -0.749827f, -0.749873f, -0.749912f, -0.749944f, -0.749968f, -0.749986f, -0.749996f, -0.75f, -0.749996f, -0.749986f, -0.749968f, -0.749944f, -0.749912f, -0.749873f, -0.749827f, -0.749774f, -0.749714f, -0.749647f, -0.749573f, -0.749492f, -0.749404f, -0.749308f, -0.749206f, -0.749097f, -0.74898f, -0.748857f, -0.748726f, -0.748589f, -0.748444f, -0.748292f, -0.748134f, -0.747968f, -0.747795f, -0.747615f, -0.747428f, -0.747234f, -0.747034f, -0.746826f, -0.746611f, -0.746389f, -0.746159f, -0.745923f, -0.74568f, -0.74543f, -0.745173f, -0.744909f, -0.744638f, -0.74436f, -0.744074f, -0.743782f, -0.743483f, -0.743177f, -0.742864f, -0.742544f, -0.742217f, -0.741882f, -0.741541f, -0.741193f, -0.740838f, -0.740476f, -0.740107f, -0.739731f, -0.739348f, -0.738958f, -0.738561f, -0.738158f, -0.737747f, -0.737329f, -0.736904f, -0.736473f, -0.736034f, -0.735589f, -0.735137f, -0.734677f, -0.734211f, -0.733738f, -0.733258f, -0.732771f, -0.732277f, -0.731777f, -0.731269f, -0.730755f, -0.730233f, -0.729705f, -0.72917f, -0.728628f, -0.728079f, -0.727523f, -0.726961f, -0.726392f, -0.725815f, -0.725232f, -0.724643f, -0.724046f, -0.723442f, -0.722832f, -0.722215f, -0.721591f, -0.72096f, -0.720323f, -0.719679f, -0.719028f, -0.71837f, -0.717705f, -0.717034f, -0.716356f, -0.715671f, -0.71498f, -0.714281f, -0.713576f, -0.712865f, -0.712146f, -0.711421f, -0.710689f, -0.709951f, -0.709205f, -0.708454f, -0.707695f, -0.70693f, -0.706158f, -0.70538f, -0.704594f, -0.703803f, -0.703004f, -0.702199f, -0.701388f, -0.700569f, -0.699745f, -0.698913f, -0.698075f, -0.697231f, -0.69638f, -0.695522f, -0.694658f, -0.693787f, -0.69291f, -0.692026f, -0.691136f, -0.690239f, -0.689335f, -0.688426f, -0.687509f, -0.686587f, -0.685657f, -0.684722f, -0.68378f, -0.682831f, -0.681876f, -0.680915f, -0.679947f, -0.678973f, -0.677992f, -0.677005f, -0.676012f, -0.675012f, -0.674006f, -0.672993f, -0.671975f, -0.67095f, -0.669918f, -0.668881f, -0.667837f, -0.666786f, -0.66573f, -0.664667f, -0.663598f, -0.662523f, -0.661441f, -0.660353f, -0.659259f, -0.658159f, -0.657053f, -0.65594f, -0.654821f, -0.653696f, -0.652565f, -0.651428f, -0.650285f, -0.649135f, -0.64798f, -0.646818f, -0.64565f, -0.644476f, -0.643296f, -0.64211f, -0.640918f, -0.63972f, -0.638516f, -0.637306f, -0.63609f, -0.634868f, -0.63364f, -0.632406f, -0.631166f, -0.62992f, -0.628669f, -0.627411f, -0.626147f, -0.624878f, -0.623602f, -0.622321f, -0.621034f, -0.619741f, -0.618442f, -0.617137f, -0.615827f, -0.614511f, -0.613189f, -0.611861f, -0.610527f, -0.609188f, -0.607843f, -0.606492f, -0.605136f, -0.603773f, -0.602406f, -0.601032f, -0.599653f, -0.598268f, -0.596878f, -0.595482f, -0.59408f, -0.592673f, -0.59126f, -0.589841f, -0.588417f, -0.586988f, -0.585553f, -0.584112f, -0.582666f, -0.581215f, -0.579758f, -0.578295f, -0.576828f, -0.575354f, -0.573875f, -0.572391f, -0.570902f, -0.569407f, -0.567907f, -0.566401f, -0.56489f, -0.563374f, -0.561852f, -0.560325f, -0.558793f, -0.557256f, -0.555713f, -0.554165f, -0.552612f, -0.551054f, -0.549491f, -0.547922f, -0.546348f, -0.544769f, -0.543185f, -0.541596f, -0.540002f, -0.538403f, -0.536798f, -0.535189f, -0.533574f, -0.531955f, -0.53033f, -0.528701f, -0.527066f, -0.525427f, -0.523782f, -0.522133f, -0.520479f, -0.518819f, -0.517155f, -0.515487f, -0.513813f, -0.512134f, -0.510451f, -0.508763f, -0.50707f, -0.505372f, -0.503669f, -0.501962f, -0.50025f, -0.498533f, -0.496812f, -0.495086f, -0.493355f, -0.49162f, -0.48988f, -0.488135f, -0.486386f, -0.484632f, -0.482874f, -0.481111f, -0.479343f, -0.477571f, -0.475795f, -0.474014f, -0.472229f, -0.470439f, -0.468645f, -0.466846f, -0.465043f, -0.463235f, -0.461424f, -0.459608f, -0.457787f, -0.455962f, -0.454133f, -0.4523f, -0.450462f, -0.448621f, -0.446774f, -0.444924f, -0.44307f, -0.441211f, -0.439348f, -0.437481f, -0.43561f, -0.433735f, -0.431856f, -0.429973f, -0.428086f, -0.426194f, -0.424299f, -0.4224f, -0.420496f, -0.418589f, -0.416678f, -0.414763f, -0.412843f, -0.410921f, -0.408994f, -0.407063f, -0.405129f, -0.40319f, -0.401248f, -0.399302f, -0.397353f, -0.395399f, -0.393442f, -0.391481f, -0.389517f, -0.387549f, -0.385577f, -0.383602f, -0.381623f, -0.37964f, -0.377654f, -0.375664f, -0.373671f, -0.371674f, -0.369674f, -0.36767f, -0.365663f, -0.363652f, -0.361638f, -0.35962f, -0.357599f, -0.355575f, -0.353548f, -0.351517f, -0.349482f, -0.347445f, -0.345404f, -0.34336f, -0.341313f, -0.339262f, -0.337208f, -0.335152f, -0.333092f, -0.331028f, -0.328962f, -0.326893f, -0.32482f, -0.322745f, -0.320666f, -0.318585f, -0.3165f, -0.314413f, -0.312322f, -0.310229f, -0.308132f, -0.306033f, -0.303931f, -0.301826f, -0.299718f, -0.297607f, -0.295494f, -0.293378f, -0.291259f, -0.289137f, -0.287013f, -0.284885f, -0.282756f, -0.280623f, -0.278488f, -0.27635f, -0.27421f, -0.272067f, -0.269921f, -0.267773f, -0.265623f, -0.26347f, -0.261314f, -0.259156f, -0.256996f, -0.254833f, -0.252667f, -0.2505f, -0.24833f, -0.246157f, -0.243983f, -0.241806f, -0.239627f, -0.237445f, -0.235261f, -0.233075f, -0.230887f, -0.228697f, -0.226504f, -0.22431f, -0.222113f, -0.219914f, -0.217714f, -0.215511f, -0.213306f, -0.211099f, -0.20889f, -0.206679f, -0.204466f, -0.202251f, -0.200035f, -0.197816f, -0.195596f, -0.193373f, -0.191149f, -0.188923f, -0.186696f, -0.184466f, -0.182235f, -0.180002f, -0.177768f, -0.175531f, -0.173294f, -0.171054f, -0.168813f, -0.16657f, -0.164326f, -0.16208f, -0.159833f, -0.157584f, -0.155334f, -0.153082f, -0.150828f, -0.148574f, -0.146318f, -0.14406f, -0.141802f, -0.139541f, -0.13728f, -0.135017f, -0.132753f, -0.130488f, -0.128221f, -0.125954f, -0.123685f, -0.121415f, -0.119144f, -0.116871f, -0.114598f, -0.112323f, -0.110048f, -0.107771f, -0.105494f, -0.103215f, -0.100936f, -0.098655f, -0.096374f, -0.094091f, -0.091808f, -0.089524f, -0.087239f, -0.084953f, -0.082667f, -0.080379f, -0.078091f, -0.075802f, -0.073513f, -0.071223f, -0.068932f, -0.06664f, -0.064348f, -0.062055f, -0.059762f, -0.057468f, -0.055173f, -0.052878f, -0.050583f, -0.048287f, -0.045991f, -0.043694f, -0.041396f, -0.039099f, -0.036801f, -0.034502f, -0.032204f, -0.029905f, -0.027605f, -0.025306f, -0.023006f, -0.020706f, -0.018406f, -0.016106f, -0.013805f, -0.011504f, -0.009204f, -0.006903f, -0.004602f, -0.002301f,
34393432 }
34403433 };
3441−#endif
3434+#endif // LEAF_INCLUDE_TRIANGLE_TABLES
34423435
3443−#ifdef USE_SQUARE_TABLE
3436+#if LEAF_INCLUDE_SQUARE_TABLE
34443437 const float __leaf_table_squarewave[11][SQR_TABLE_SIZE] =
34453438 {
34463439
@@ -3489,12 +3482,9 @@ const float __leaf_table_squarewave[11][SQR_TABLE_SIZE] = · 42 unmodified lines
34893482 },
34903483
34913484 };
3492−#endif
3493−
3485+#endif // LEAF_INCLUDE_SQUARE_TABLE
34943486
3495−
3496−
3497−#ifdef DECAY_TABLES_USED
3487+#if LEAF_INCLUDE_ADSR_TABLES
34983488 const float __leaf_table_exp_decay[EXP_DECAY_TABLE_SIZE] = {
34993489 1.0f, 0.999969f, 0.999939f, 0.999908f, 0.999878f, 0.999847f, 0.999817f, 0.999786f, 0.999756f, 0.999725f, 0.999695f, 0.999664f, 0.999634f, 0.999603f, 0.999573f, 0.999542f, 0.999512f, 0.999481f, 0.999451f, 0.99942f,
35003490 0.99939f, 0.999359f, 0.999329f, 0.999298f, 0.999268f, 0.999237f, 0.999207f, 0.999176f, 0.999146f, 0.999115f, 0.999085f, 0.999054f, 0.999024f, 0.998993f, 0.998963f, 0.998932f, 0.998902f, 0.998871f, 0.998841f, 0.99881f,
@@ -10054,9 +10044,9 @@ const float __leaf_table_attack_decay_inc[ATTACK_DECAY_INC_TABLE_SIZE] = { · 6553 unmodified lines
1005410044 0.166758f, 0.166756f, 0.166753f, 0.166751f, 0.166748f, 0.166746f, 0.166743f, 0.16674f, 0.166738f, 0.166735f, 0.166733f, 0.16673f, 0.166728f, 0.166725f, 0.166723f, 0.16672f, 0.166718f, 0.166715f, 0.166712f, 0.16671f,
1005510045 0.166707f, 0.166705f, 0.166702f, 0.1667f, 0.166697f, 0.166695f, 0.166692f, 0.16669f, 0.166687f, 0.166684f, 0.166682f, 0.166679f, 0.166677f, 0.166674f, 0.166672f, 0.166669f,
1005610046 };
10057−#endif
10058−
10047+#endif // LEAF_INCLUDE_ADSR_TABLES
1005910048
10049+#if LEAF_INCLUDE_FILTERTAN_TABLE
1006010050 const float __leaf_table_filtertan[FILTERTAN_TABLE_SIZE] = {
1006110051 0.001349f, 0.001351f, 0.001354f, 0.001356f, 0.001358f, 0.00136f, 0.001362f, 0.001365f, 0.001367f, 0.001369f, 0.001371f, 0.001373f, 0.001376f, 0.001378f, 0.00138f, 0.001382f, 0.001384f, 0.001387f, 0.001389f, 0.001391f,
1006210052 0.001393f, 0.001396f, 0.001398f, 0.0014f, 0.001402f, 0.001405f, 0.001407f, 0.001409f, 0.001411f, 0.001414f, 0.001416f, 0.001418f, 0.00142f, 0.001423f, 0.001425f, 0.001427f, 0.00143f, 0.001432f, 0.001434f, 0.001437f,
@@ -10264,11 +10254,11 @@ const float __leaf_table_filtertan[FILTERTAN_TABLE_SIZE] = { · 201 unmodified lines
1026410254 1.318828f, 1.3229f, 1.326994f, 1.331111f, 1.335252f, 1.339415f, 1.343602f, 1.347812f, 1.352046f, 1.356305f, 1.360587f, 1.364894f, 1.369226f, 1.373583f, 1.377965f, 1.382373f, 1.386806f, 1.391265f, 1.39575f, 1.400261f,
1026510255 1.4048f, 1.409365f, 1.413957f, 1.418577f, 1.423224f, 1.427899f, 1.432603f, 1.437335f, 1.442095f, 1.446885f, 1.451704f, 1.456553f, 1.461431f, 1.46634f, 1.471279f, 1.476249f,
1026610256 };
10257+#endif // LEAF_INCLUDE_FILTERTAN_TABLE
1026710258
10268−
10269−#if INC_MISC_WT
10259+#if LEAF_INCLUDE_MTOF_TABLE
1027010260 // mtof lookup table based on input range [0.0,1.0) in 4096 increments - midi frequency values scaled between m25 and m134 (as done in previous code)
10271−const float mtof1[MTOF1_TABLE_SIZE] = {34.66965f, 34.722983f, 34.776398f, 34.829895f, 34.883474f, 34.937136f, 34.99088f, 35.044707f, 35.098617f, 35.152609f, 35.206685f, 35.260844f, 35.315086f, 35.369412f, 35.423821f, 35.478314f, 35.532891f, 35.587551f, 35.642296f, 35.697125f,
10261+const float __leaf_table_mtof1[MTOF1_TABLE_SIZE] = {34.66965f, 34.722983f, 34.776398f, 34.829895f, 34.883474f, 34.937136f, 34.99088f, 35.044707f, 35.098617f, 35.152609f, 35.206685f, 35.260844f, 35.315086f, 35.369412f, 35.423821f, 35.478314f, 35.532891f, 35.587551f, 35.642296f, 35.697125f,
1027210262 35.752038f, 35.807036f, 35.862119f, 35.917286f, 35.972538f, 36.027875f, 36.083297f, 36.138804f, 36.194397f, 36.250075f, 36.305839f, 36.361689f, 36.417625f, 36.473646f, 36.529754f, 36.585948f, 36.642229f, 36.698596f, 36.75505f, 36.811591f,
1027310263 36.868219f, 36.924934f, 36.981736f, 37.038625f, 37.095602f, 37.152667f, 37.209819f, 37.267059f, 37.324388f, 37.381804f, 37.439309f, 37.496903f, 37.554585f, 37.612355f, 37.670215f, 37.728163f, 37.786201f, 37.844328f, 37.902545f, 37.96085f,
1027410264 38.019246f, 38.077732f, 38.136307f, 38.194973f, 38.253728f, 38.312575f, 38.371511f, 38.430539f, 38.489657f, 38.548866f, 38.608166f, 38.667558f, 38.72704f, 38.786615f, 38.846281f, 38.906038f, 38.965888f, 39.02583f, 39.085864f, 39.14599f,
@@ -10473,7 +10463,9 @@ const float mtof1[MTOF1_TABLE_SIZE] = {34.66965f, 34.722983f, 34.776398f, 34.829 · 198 unmodified lines
1047310463 17255.259088f, 17281.803071f, 17308.387886f, 17335.013596f, 17361.680266f, 17388.387957f, 17415.136733f, 17441.926657f, 17468.757792f, 17495.630202f, 17522.54395f, 17549.4991f, 17576.495715f, 17603.533859f, 17630.613597f, 17657.734992f, 17684.898107f, 17712.103009f, 17739.34976f, 17766.638424f,
1047410464 17793.969068f, 17821.341754f, 17848.756548f, 17876.213515f, 17903.712719f, 17931.254226f, 17958.8381f, 17986.464406f, 18014.133211f, 18041.844578f, 18069.598575f, 18097.395266f, 18125.234716f, 18153.116993f, 18181.042161f, 18209.010287f, 18237.021437f, 18265.075676f, 18293.173072f, 18321.31369f,
1047510465 18349.497597f, 18377.72486f, 18405.995546f, 18434.30972f, 18462.667451f, 18491.068804f, 18519.513848f, 18548.002649f, 18576.535275f, 18605.111793f, 18633.73227f, 18662.396775f, 18691.105375f, 18719.858137f, 18748.655131f, 18777.496423f };
10466+#endif // LEAF_INCLUDE_MTOF_TABLE
1047610467
10468+#if LEAF_INCLUDE_ADC_TABLE
1047710469 const float adc1[ADC1_TABLE_SIZE] = {0.865537f, 0.958907f, 0.975752f, 0.982802f, 0.986676f, 0.989126f, 0.990814f, 0.992049f, 0.992991f, 0.993734f, 0.994334f, 0.994829f, 0.995245f, 0.995599f, 0.995904f, 0.996169f, 0.996402f, 0.996608f, 0.996792f, 0.996957f,
1047810470 0.997106f, 0.997241f, 0.997364f, 0.997477f, 0.99758f, 0.997675f, 0.997763f, 0.997844f, 0.99792f, 0.997991f, 0.998057f, 0.998119f, 0.998177f, 0.998231f, 0.998283f, 0.998331f, 0.998377f, 0.99842f, 0.998461f, 0.9985f,
1047910471 0.998537f, 0.998573f, 0.998606f, 0.998638f, 0.998669f, 0.998698f, 0.998726f, 0.998753f, 0.998779f, 0.998804f, 0.998827f, 0.99885f, 0.998872f, 0.998893f, 0.998913f, 0.998933f, 0.998952f, 0.99897f, 0.998988f, 0.999005f,
@@ -10679,8 +10671,10 @@ const float adc1[ADC1_TABLE_SIZE] = {0.865537f, 0.958907f, 0.975752f, 0.982802f, · 199 unmodified lines
1067910671 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f,
1068010672 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999985f, 0.999986f,
1068110673 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, 0.999986f, };
10674+#endif // LEAF_INCLUDE_ADC_TABLE
1068210675
10683−const float tanh1[TANH1_TABLE_SIZE] = {-0.964028f, -0.964023f, -0.964019f, -0.964015f, -0.96401f, -0.964006f, -0.964002f, -0.963997f, -0.963993f, -0.963989f, -0.963984f, -0.96398f, -0.963976f, -0.963971f, -0.963967f, -0.963963f, -0.963959f, -0.963954f, -0.96395f, -0.963946f,
10676+#if LEAF_INCLUDE_TANH_TABLE
10677+const float __leaf_table_tanh1[TANH1_TABLE_SIZE] = {-0.964028f, -0.964023f, -0.964019f, -0.964015f, -0.96401f, -0.964006f, -0.964002f, -0.963997f, -0.963993f, -0.963989f, -0.963984f, -0.96398f, -0.963976f, -0.963971f, -0.963967f, -0.963963f, -0.963959f, -0.963954f, -0.96395f, -0.963946f,
1068410678 -0.963941f, -0.963937f, -0.963933f, -0.963928f, -0.963924f, -0.96392f, -0.963915f, -0.963911f, -0.963907f, -0.963902f, -0.963898f, -0.963894f, -0.963889f, -0.963885f, -0.963881f, -0.963876f, -0.963872f, -0.963868f, -0.963863f, -0.963859f,
1068510679 -0.963855f, -0.96385f, -0.963846f, -0.963842f, -0.963837f, -0.963833f, -0.963829f, -0.963824f, -0.96382f, -0.963816f, -0.963811f, -0.963807f, -0.963803f, -0.963798f, -0.963794f, -0.96379f, -0.963785f, -0.963781f, -0.963777f, -0.963772f,
1068610680 -0.963768f, -0.963764f, -0.963759f, -0.963755f, -0.963751f, -0.963746f, -0.963742f, -0.963738f, -0.963733f, -0.963729f, -0.963724f, -0.96372f, -0.963716f, -0.963711f, -0.963707f, -0.963703f, -0.963698f, -0.963694f, -0.96369f, -0.963685f,
@@ -13957,9 +13951,9 @@ const float tanh1[TANH1_TABLE_SIZE] = {-0.964028f, -0.964023f, -0.964019f, -0.96 · 3270 unmodified lines
1395713951 0.96379f, 0.963794f, 0.963798f, 0.963803f, 0.963807f, 0.963811f, 0.963816f, 0.96382f, 0.963824f, 0.963829f, 0.963833f, 0.963837f, 0.963842f, 0.963846f, 0.96385f, 0.963855f, 0.963859f, 0.963863f, 0.963868f, 0.963872f,
1395813952 0.963876f, 0.963881f, 0.963885f, 0.963889f, 0.963894f, 0.963898f, 0.963902f, 0.963907f, 0.963911f, 0.963915f, 0.96392f, 0.963924f, 0.963928f, 0.963933f, 0.963937f, 0.963941f, 0.963946f, 0.96395f, 0.963954f, 0.963959f,
1395913953 0.963963f, 0.963967f, 0.963971f, 0.963976f, 0.96398f, 0.963984f, 0.963989f, 0.963993f, 0.963997f, 0.964002f, 0.964006f, 0.96401f, 0.964015f, 0.964019f, 0.964023f, 0.964028f, };
13954+#endif // LEAF_INCLUDE_TANH_TABLE
1396013955
13961−#endif
13962−
13956+#if LEAF_INCLUDE_SINE_TABLE
1396313957 const float __leaf_table_sinewave[SINE_TABLE_SIZE] = {0.0f, 0.00305f, 0.00613f, 0.00919f, 0.01227f, 0.01532f, 0.0184f, 0.02145f, 0.02454f, 0.02759f, 0.03067f, 0.03372f, 0.0368f, 0.03986f, 0.04291f, 0.04599f, 0.04904f, 0.05212f, 0.05518f, 0.05823f,
1396413958 0.06131f, 0.06436f, 0.06741f, 0.0705f, 0.07355f, 0.0766f, 0.07965f, 0.08273f, 0.08578f, 0.08884f, 0.09189f, 0.09494f, 0.09799f, 0.10104f, 0.1041f, 0.10715f, 0.1102f, 0.11325f, 0.1163f, 0.11935f,
1396513959 0.12241f, 0.12543f, 0.12848f, 0.13153f, 0.13455f, 0.1376f, 0.14066f, 0.14368f, 0.1467f, 0.14975f, 0.15277f, 0.15582f, 0.15884f, 0.16187f, 0.16489f, 0.16791f, 0.17093f, 0.17398f, 0.17697f, 0.17999f,
@@ -14064,10 +14058,9 @@ const float __leaf_table_sinewave[SINE_TABLE_SIZE] = {0.0f, 0.00305f, 0.00613f, · 98 unmodified lines
1406414058 -0.08582f, -0.08276f, -0.07968f, -0.07663f, -0.07358f, -0.07053f, -0.06744f, -0.06439f, -0.06134f, -0.05826f, -0.05521f, -0.05215f, -0.04907f, -0.04602f, -0.04294f, -0.03989f, -0.03683f, -0.03375f, -0.0307f, -0.02762f,
1406514059 -0.02457f, -0.02148f, -0.01843f, -0.01535f, -0.0123f, -0.00922f, -0.00616f, -0.00308f
1406614060 };
14067−#endif
14068−
14061+#endif // LEAF_INCLUDE_SINE_TABLE
1406914062
14070−#if LEAF_INCLUDE_MINBLEP
14063+#if LEAF_INCLUDE_MINBLEP_TABLES
1407114064 // From https://github.com/MrBlueXav/Dekrispator_v2 minblep_tables.c
1407214065 /* minBLEP tables
1407314066 *
@@ -15825,5 +15818,4 @@ slope_dd_table [MINBLEP_PHASES * SLOPE_DD_PULSE_LENGTH + 1] = · 1751 unmodified lines
1582515818 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00,
1582615819 0.000000e+00
1582715820 };
15828−
15829−#endif
15821+#endif // LEAF_INCLUDE_MINBLEP_TABLES
leaf/leaf-config.h+48−3
@@ -8,7 +8,52 @@ · 7 unmodified lines
88 ==============================================================================
99 */
1010
11−#pragma once
11+#ifndef LEAF_CONFIG_H_INCLUDED
12+#define LEAF_CONFIG_H_INCLUDED
1213
13−#define LEAF_INCLUDE_TABLES 0
14−#define LEAF_INCLUDE_MINBLEP 0
14+/*!
15+ @file leaf-config.h
16+ @brief LEAF configuration file. Contains defines for controlling inclusion of various tables.
17+ */
18+
19+//==============================================================================
20+
21+//! Include FIR tables required to use tOversampler.
22+#define LEAF_INCLUDE_OVERSAMPLER_TABLES 1
23+
24+// Unused
25+#define LEAF_INCLUDE_SHAPER_TABLE 0
26+
27+// Unused
28+#define LEAF_INCLUDE_MTOF_TABLE 0
29+
30+//! Include table required to use tEfficientSVF.
31+#define LEAF_INCLUDE_FILTERTAN_TABLE 1
32+
33+// Unused
34+#define LEAF_INCLUDE_TANH_TABLE 0
35+
36+// Unused
37+#define LEAF_INCLUDE_ADC_TABLE 0
38+
39+//! Include tables required to use tEnvelope and tADSR (but not tADSR2, tADSR3, and tADSR4).
40+#define LEAF_INCLUDE_ADSR_TABLES 1
41+
42+//! Include wave table required to use tCycle.
43+#define LEAF_INCLUDE_SINE_TABLE 1
44+
45+//! Include wave table required to use tTriangle.
46+#define LEAF_INCLUDE_TRIANGLE_TABLE 1
47+
48+//! Include wave table required to use tSquare.
49+#define LEAF_INCLUDE_SQUARE_TABLE 1
50+
51+//! Include wave table required to use tSawtooth.
52+#define LEAF_INCLUDE_SAWTOOTH_TABLE 1
53+
54+//! Include tables for minblep insertion, required for all tMB objects.
55+#define LEAF_INCLUDE_MINBLEP_TABLES 1
56+
57+//==============================================================================
58+
59+#endif // LEAF_CONFIG_H_INCLUDED

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t