shithub: leaf

Download patch

ref: c624f310c5db0a0b03235531a73d6248276c45d3
parent: 1dfd63fc3f965b06401a54a9342628d92d348546
author: Davis Polito <davispolito1@gmail.com>
date: Wed May 25 09:52:11 EDT 2022

fixed stupid oversampling bug

--- a/leaf/Src/leaf-distortion.c
+++ b/leaf/Src/leaf-distortion.c
@@ -116,7 +116,7 @@
     
     tOversampler_upsample(osr, input, oversample);
     
-    for (int i = 0; i < os->ratio; ++i) {
+    for (int i = 0; i < os->ratio; i++) {
         oversample[i] = effectTick(oversample[i]);
     }
     
--- a/leaf/Src/leaf-tables.c
+++ b/leaf/Src/leaf-tables.c
@@ -49,7 +49,7 @@
 28976477190042,    -0.0007451789241688792,    -0.0007587025992854616,    -0.00074329154026803,    -0.00069943732077003,    -0.0006283153390612298,    -0.0005317674541381928,    -0.0004122736350806254,    -0.0002728965175373041,    -0.00011721898154916056,    0.000050727732077616854,    0.00022654511040849531,    0.0004055654685261572,    0.0005829725151929097,    0.0007539299891718014,    0.0009136968081628693,    0.001057727366040496,    0.0011817838315511687,    0.0012820768752281682,    0.0013553936088779655,    0.0013991567634035874,    0.0014114626691980761,    0.0013911994521601603,    0.001338158623469115,    0.0012529312652788224,    0.0011368782078168052,    0.0009924227419316402,    0.0008225367782712132,    0.0006311126153653432,    0.000422596130820185,    0.00020202566973633374,    -0.000025140126274052846,    -0.00025314012889659734,    -0.00047605825978268214,    -0.0006879757889763613,    -0.0008831265836660278,    -0.001056052961049124,    -0.0012017570118505278,    -0.0013158443800074546,    -0.0013946550179738235,    -0.00143537714856422,    -0.0014361430413177665,    -0.0013961025273104373,    -0.0013154698934900741,    -0.0011955448624625515,    -0.001038705445344848,    -0.000848370211905452,    -0.0006289357238567322,    -0.00038567726087640876,    -0.00012464084542349136,    0.00014751424024790855,    0.00042365555592108265,    0.000696381707633601,    0.0009581911739190034,    0.0012016945125591883,    0.0014198129038021875,    0.0016059677163340854,    0.0017542822302381216,    0.0018597489437935104,    0.0019183843680031518,    0.001927370582069373,    0.0018851569558006424,    0.0017915316423764106,    0.0016476681649469273,    0.001456129721890939,    0.0012208322294896099,    0.0009469770920907817,    0.0006409478559993642,    0.0003101659717946291,    -0.00003708137047780295,    -0.0003918367361265021,    -0.0007446984520565823,    -0.0010860619549777095,    -0.0014063764577860907,    -0.001696397687712767,    -0.0019474488265779002,    -0.002151669227747982,    -0.002302249012563522,    -0.0023936395957784356,    -0.0024217386080201218,    -0.002384046464152241,    -0.0022797724899456247,    -0.0021099040224506474,    -0.0018772300452061593,    -0.001586318069799396,    -0.0012434422926464283,    -0.0008564627353582099,    -0.0004346583284416864,    0.000011483258960353713,    0.0004705125435918996,    0.0009302983176219571,    0.0013783347882871506,    0.0018020649278141442,    0.002189218072448032,    0.002528151228372692,    0.0028081778185230755,    0.0030198855690580883,    0.0031554218226391927,    0.0032087539967944043,    0.003175891861997494,    0.003055052047477484,    0.0028467769761391067,    0.0025539826540715814,    0.0021819611806385975,    0.00173831289146853,    0.0012328190076443134,    0.0006772405314859651,    0.0000850660373523537,    -0.0005287869617277397,    -0.001148321137491392,    -0.0017568578913237647,    -0.002337465469832778,    -0.0028733927792042916,    -0.0033485134261990474,    -0.0037477874636434095,    -0.004057705229541436,    -0.0042666789949867895,    -0.004365411194693107,    -0.004347246153946479,    -0.0042084293493284755,    -0.003948276264434998,    -0.0035693427342337308,    -0.003077468630328199,    -0.002481682761858642,    -0.0017941893541420268,    -0.0010300505400156208,    -0.00020699101191350578,    0.0006550244158311212,    0.0015341931983222652,    0.002407385154286287,    0.0032506853111441327,    0.004039981949981368,    0.004751579445675196,    0.0053628234864281235,    0.0058527242916193226,    0.006202559568610708,    0.006396443797782178,    0.006421849969755556,    0.006270068071543294,    0.005936587372391708,    0.0054213915962429745,    0.004729156264045173,    0.0038693427245538904,    0.0028561826064778697,    0.0017085458613360902,    0.0004497040612160084,    -0.0008930343940838381,    -0.002288760766598498,    -0.0037035572532650445,    -0.005101096327651239,    -0.006443406350064504,    -0.007691613708744422,    -0.008806783345605503,    -0.009750779708566895,    -0.010487104621962649,    -0.010981761556592558,    -0.0
\ No newline at end of file
 };
 
-25151929097,    0.0007539299891718014,    0.0009136968081628693,    0.001057727366040496,    0.0011817838315511687,    0.0012820768752281682,    0.0013553936088779655,    0.0013991567634035874,    0.0014114626691980761,    0.0013911994521601603,    0.001338158623469115,    0.0012529312652788224,    0.0011368782078168052,    0.0009924227419316402,    0.0008225367782712132,    0.0006311126153653432,    0.000422596130820185,    0.00020202566973633374,    -0.000025140126274052846,    -0.00025314012889659734,    -0.00047605825978268214,    -0.0006879757889763613,    -0.0008831265836660278,    -0.001056052961049124,    -0.0012017570118505278,    -0.0013158443800074546,    -0.0013946550179738235,    -0.00143537714856422,    -0.0014361430413177665,    -0.0013961025273104373,    -0.0013154698934900741,    -0.0011955448624625515,    -0.001038705445344848,    -0.000848370211905452,    -0.0006289357238567322,    -0.00038567726087640876,    -0.00012464084542349136,    0.00014751424024790855,    0.00042365555592108265,    0.000696381707633601,    0.0009581911739190034,    0.0012016945125591883,    0.0014198129038021875,    0.0016059677163340854,    0.0017542822302381216,    0.0018597489437935104,    0.0019183843680031518,    0.001927370582069373,    0.0018851569558006424,    0.0017915316423764106,    0.0016476681649469273,    0.001456129721890939,    0.0012208322294896099,    0.0009469770920907817,    0.0006409478559993642,    0.0003101659717946291,    -0.00003708137047780295,    -0.0003918367361265021,    -0.0007446984520565823,    -0.0010860619549777095,    -0.0014063764577860907,    -0.001696397687712767,    -0.0019474488265779002,    -0.002151669227747982,    -0.002302249012563522,    -0.0023936395957784356,    -0.0024217386080201218,    -0.002384046464152241,    -0.0022797724899456247,    -0.0021099040224506474,    -0.0018772300452061593,    -0.001586318069799396,    -0.0012434422926464283,    -0.0008564627353582099,    -0.0004346583284416864,    0.000011483258960353713,    0.0004705125435918996,    0.0009302983176219571,    0.0013783347882871506,    0.0018020649278141442,    0.002189218072448032,    0.002528151228372692,    0.0028081778185230755,    0.0030198855690580883,    0.0031554218226391927,    0.0032087539967944043,    0.003175891861997494,    0.003055052047477484,    0.0028467769761391067,    0.0025539826540715814,    0.0021819611806385975,    0.00173831289146853,    0.0012328190076443134,    0.0006772405314859651,    0.0000850660373523537,    -0.0005287869617277397,    -0.001148321137491392,    -0.0017568578913237647,    -0.002337465469832778,    -0.0028733927792042916,    -0.0033485134261990474,    -0.0037477874636434095,    -0.004057705229541436,    -0.0042666789949867895,    -0.004365411194693107,    -0.004347246153946479,    -0.0042084293493284755,    -0.003948276264434998,    -0.0035693427342337308,    -0.003077468630328199,    -0.002481682761858642,    -0.0017941893541420268,    -0.0010300505400156208,    -0.00020699101191350578,    0.0006550244158311212,    0.0015341931983222652,    0.002407385154286287,    0.0032506853111441327,    0.004039981949981368,    0.004751579445675196,    0.0053628234864281235,    0.0058527242916193226,    0.006202559568610708,    0.006396443797782178,    0.006421849969755556,    0.006270068071543294,    0.005936587372391708,    0.0054213915962429745,    0.004729156264045173,    0.0038693427245538904,    0.0028561826064778697,    0.0017085458613360902,    0.0004497040612160084,    -0.0008930343940838381,    -0.002288760766598498,    -0.0037035572532650445,    -0.005101096327651239,    -0.006443406350064504,    -0.007691613708744422,    -0.008806783345605503,    -0.009750779708566895,    -0.010487104621962649,    -0.010981761556592558,    -0.011204077521465777,    -0.01112745993022714,    -0.010730106123767362,    -0.009995629398181848,    -0.008913569832214968,    -0.007479799008370572,    -0.005696809921316997,    -0.0035738648415050284,    -0.0011270001382152866,    0.001621100228821588,    0.004641370935060121,    0.00789877655149075,    0.0113528526524623,    0.014958365872953214, 
\ No newline at end of file
+25151929097,    0.0007539299891718014,    0.0009136968081628693,    0.001057727366040496,    0.0011817838315511687,    0.0012820768752281682,    0.0013553936088779655,    0.0013991567634035874,    0.0014114626691980761,    0.0013911994521601603,    0.001338158623469115,    0.0012529312652788224,    0.0011368782078168052,    0.0009924227419316402,    0.0008225367782712132,    0.0006311126153653432,    0.000422596130820185,    0.00020202566973633374,    -0.000025140126274052846,    -0.00025314012889659734,    -0.00047605825978268214,    -0.0006879757889763613,    -0.0008831265836660278,    -0.001056052961049124,    -0.0012017570118505278,    -0.0013158443800074546,    -0.0013946550179738235,    -0.00143537714856422,    -0.0014361430413177665,    -0.0013961025273104373,    -0.0013154698934900741,    -0.0011955448624625515,    -0.001038705445344848,    -0.000848370211905452,    -0.0006289357238567322,    -0.00038567726087640876,    -0.00012464084542349136,    0.00014751424024790855,    0.00042365555592108265,    0.000696381707633601,    0.0009581911739190034,    0.0012016945125591883,    0.0014198129038021875,    0.0016059677163340854,    0.0017542822302381216,    0.0018597489437935104,    0.0019183843680031518,    0.001927370582069373,    0.0018851569558006424,    0.0017915316423764106,    0.0016476681649469273,    0.001456129721890939,    0.0012208322294896099,    0.0009469770920907817,    0.0006409478559993642,    0.0003101659717946291,    -0.00003708137047780295,    -0.0003918367361265021,    -0.0007446984520565823,    -0.0010860619549777095,    -0.0014063764577860907,    -0.001696397687712767,    -0.0019474488265779002,    -0.002151669227747982,    -0.002302249012563522,    -0.0023936395957784356,    -0.0024217386080201218,    -0.002384046464152241,    -0.0022797724899456247,    -0.0021099040224506474,    -0.0018772300452061593,    -0.001586318069799396,    -0.0012434422926464283,    -0.0008564627353582099,    -0.0004346583284416864,    0.000011483258960353713,    0.0004705125435918996,    0.0009302983176219571,    0.0013783347882871506,    0.0018020649278141442,    0.002189218072448032,    0.002528151228372692,    0.0028081778185230755,    0.0030198855690580883,    0.0031554218226391927,    0.0032087539967944043,    0.003175891861997494,    0.003055052047477484,    0.0028467769761391067,    0.0025539826540715814,    0.0021819611806385975,    0.00173831289146853,    0.0012328190076443134,    0.0006772405314859651,    0.0000850660373523537,    -0.0005287869617277397,    -0.001148321137491392,    -0.0017568578913237647,    -0.002337465469832778,    -0.0028733927792042916,    -0.0033485134261990474,    -0.0037477874636434095,    -0.004057705229541436,    -0.0042666789949867895,    -0.004365411194693107,    -0.004347246153946479,    -0.0042084293493284755,    -0.003948276264434998,    -0.0035693427342337308,    -0.003077468630328199,    -0.002481682761858642,    -0.0017941893541420268,    -0.0010300505400156208,    -0.00020699101191350578,    0.0006550244158311212,    0.0015341931983222652,    0.002407385154286287,    0.0032506853111441327,    0.004039981949981368,    0.004751579445675196,    0.0053628234864281235,    0.0058527242916193226,    0.006202559568610708,    0.006396443797782178,    0.006421849969755556,    0.006270068071543294,    0.005936587372391708,    0.0054213915962429745,    0.004729156264045173,    0.0038693427245538904,    0.0028561826064778697,    0.0017085458613360902,    0.0004497040612160084,    -0.0008930343940838381,    -0.002288760766598498,    -0.0037035572532650445,    -0.005101096327651239,    -0.006443406350064504,    -0.007691613708744422,    -0.008806783345605503,    -0.009750779708566895,    -0.010487104621962649,    -0.010981761556592558,    -0.011204077521465777,    -0.01112745993022714,    -0.010730106123767362,    -0.009995629398181848,    -0.008913569832214968,    -0.007479799008370572,    -0.005696809921316997,    -0.0035738648415050284,    -0.0011270001382152866,    0.001621100228821588,    0.004641370935060121,    0.00789877655149075,    0.0113528526524623,    0.014958365872953214, 
\ No newline at end of file
  0.0012820768752281682,    0.0013553936088779655,    0.0013991567634035874,    0.0014114626691980761,    0.0013911994521601603,    0.001338158623469115,    0.0012529312652788224,    0.0011368782078168052,    0.0009924227419316402,    0.0008225367782712132,    0.0006311126153653432,    0.000422596130820185,    0.00020202566973633374,    -0.000025140126274052846,    -0.00025314012889659734,    -0.00047605825978268214,    -0.0006879757889763613,    -0.0008831265836660278,    -0.001056052961049124,    -0.0012017570118505278,    -0.0013158443800074546,    -0.0013946550179738235,    -0.00143537714856422,    -0.0014361430413177665,    -0.0013961025273104373,    -0.0013154698934900741,    -0.0011955448624625515,    -0.001038705445344848,    -0.000848370211905452,    -0.0006289357238567322,    -0.00038567726087640876,    -0.00012464084542349136,    0.00014751424024790855,    0.00042365555592108265,    0.000696381707633601,    0.0009581911739190034,    0.0012016945125591883,    0.0014198129038021875,    0.0016059677163340854,    0.0017542822302381216,    0.0018597489437935104,    0.0019183843680031518,    0.001927370582069373,    0.0018851569558006424,    0.0017915316423764106,    0.0016476681649469273,    0.001456129721890939,    0.0012208322294896099,    0.0009469770920907817,    0.0006409478559993642,    0.0003101659717946291,    -0.00003708137047780295,    -0.0003918367361265021,    -0.0007446984520565823,    -0.0010860619549777095,    -0.0014063764577860907,    -0.001696397687712767,    -0.0019474488265779002,    -0.002151669227747982,    -0.002302249012563522,    -0.0023936395957784356,    -0.0024217386080201218,    -0.002384046464152241,    -0.0022797724899456247,    -0.0021099040224506474,    -0.0018772300452061593,    -0.001586318069799396,    -0.0012434422926464283,    -0.0008564627353582099,    -0.0004346583284416864,    0.000011483258960353713,    0.0004705125435918996,    0.0009302983176219571,    0.0013783347882871506,    0.0018020649278141442,    0.002189218072448032,    0.002528151228372692,    0.0028081778185230755,    0.0030198855690580883,    0.0031554218226391927,    0.0032087539967944043,    0.003175891861997494,    0.003055052047477484,    0.0028467769761391067,    0.0025539826540715814,    0.0021819611806385975,    0.00173831289146853,    0.0012328190076443134,    0.0006772405314859651,    0.0000850660373523537,    -0.0005287869617277397,    -0.001148321137491392,    -0.0017568578913237647,    -0.002337465469832778,    -0.0028733927792042916,    -0.0033485134261990474,    -0.0037477874636434095,    -0.004057705229541436,    -0.0042666789949867895,    -0.004365411194693107,    -0.004347246153946479,    -0.0042084293493284755,    -0.003948276264434998,    -0.0035693427342337308,    -0.003077468630328199,    -0.002481682761858642,    -0.0017941893541420268,    -0.0010300505400156208,    -0.00020699101191350578,    0.0006550244158311212,    0.0015341931983222652,    0.002407385154286287,    0.0032506853111441327,    0.004039981949981368,    0.004751579445675196,    0.0053628234864281235,    0.0058527242916193226,    0.006202559568610708,    0.006396443797782178,    0.006421849969755556,    0.006270068071543294,    0.005936587372391708,    0.0054213915962429745,    0.004729156264045173,    0.0038693427245538904,    0.0028561826064778697,    0.0017085458613360902,    0.0004497040612160084,    -0.0008930343940838381,    -0.002288760766598498,    -0.0037035572532650445,    -0.005101096327651239,    -0.006443406350064504,    -0.007691613708744422,    -0.008806783345605503,    -0.009750779708566895,    -0.010487104621962649,    -0.010981761556592558,    -0.011204077521465777,    -0.01112745993022714,    -0.010730106123767362,    -0.009995629398181848,    -0.008913569832214968,    -0.007479799008370572,    -0.005696809921316997,    -0.0035738648415050284,    -0.0011270001382152866,    0.001621100228821588,    0.004641370935060121,    0.00789877655149075,    0.0113528526524623,    0.014958365872953214,    0.018666074072644187,    0.02242359380770534,    0.026176337546106928,    0.029868513059052665,    0.03344415058816
\ No newline at end of file
 };