Forum Rule: Always post complete source code & details to reproduce any issue!
Page 2 of 2 FirstFirst 1 2
Results 26 to 36 of 36

Thread: Teensy based multistage distortion modeling pedal

  1. #26
    Junior Member
    Join Date
    Apr 2019
    Location
    Northwest Ohio
    Posts
    4
    Hello,
    I know this is an old thread, but has anyone successfully ported over the array to the standard audio library waveshape?
    Thanks

  2. #27
    Senior Member houtson's Avatar
    Join Date
    Aug 2015
    Location
    Scotland
    Posts
    124
    @scruffy - I've ported them over, let me know if you're looking for them

  3. #28
    Junior Member
    Join Date
    Oct 2019
    Posts
    1
    Hi,
    Very very good job.
    Can you indicate with which versions you compiled because me, with the latest versions downloaded, I only have compilation errors (in menu.cpp, in multistagedist.cpp, in waveshaper.cpp, etc )
    Thanks

  4. #29
    Senior Member houtson's Avatar
    Join Date
    Aug 2015
    Location
    Scotland
    Posts
    124
    Quote Originally Posted by marbeuhan08 View Post
    Hi,
    Very very good job.
    Can you indicate with which versions you compiled because me, with the latest versions downloaded, I only have compilation errors (in menu.cpp, in multistagedist.cpp, in waveshaper.cpp, etc )
    Thanks
    Hi marbeuhan08, if you were referring to my post at #27 - it is only referring to the tube response data files that @scruffy was looking for and whether they're converted to a format for the standard Audio Library Waveshaper object. I haven't tried to compile the entire project. Cheers, Paul

  5. #30
    Junior Member
    Join Date
    Oct 2019
    Posts
    16
    Quote Originally Posted by houtson View Post
    @scruffy - I've ported them over, let me know if you're looking for them
    Hello @houtson
    I would be very glad, if you could share those tables for the standard audio library waveshaper module. Where can I find them?

  6. #31
    Senior Member houtson's Avatar
    Join Date
    Aug 2015
    Location
    Scotland
    Posts
    124
    Hi @flo

    I've attached the wavetables below, some notes:
    - I've converted them to 513 samples from the original 2001
    - I've also included a version of one of them at 1025 samples (12ax7)
    - In the source file they say they are mapped -32767 to 32767 but they look as thought they are mapped 0-32767 and that's what I've assumed re-mapping to -1.0 - 1.0
    - a couple of them (12au and kt88) don't use the full range, not sure if this is correct / intended

    If you need them converted to any different sizes of arrays just let me know. Cheers Paul

    Click image for larger version. 

Name:	6v6-corrected.jpg 
Views:	17 
Size:	34.4 KB 
ID:	19028Click image for larger version. 

Name:	12at7-corrected.jpg 
Views:	17 
Size:	34.6 KB 
ID:	19029
    Click image for larger version. 

Name:	12au7-corrected.jpg 
Views:	14 
Size:	35.2 KB 
ID:	19030Click image for larger version. 

Name:	12ax7-corrected1025.jpg 
Views:	18 
Size:	34.5 KB 
ID:	19031
    Click image for larger version. 

Name:	kt88-corrected.jpg 
Views:	16 
Size:	33.8 KB 
ID:	19032




    Code:
    // tube input stage response curves sourced from TeensyDist (https://github.com/jcugnoni/TeensyDist) who sourced from Guitarix tables (http://guitarix.org) => THANKS !! 
    // inverted and resampled for Teensy Audio Lib - AudioEffectWaveshaper (-1.0 - 1.0 513 samples)
    
    const float wave_shape_tube_12at7 [513] = {-0.7878252,-0.7845943,-0.7813367,-0.7780526,-0.7747419,-0.771405,-0.7680417,-0.7646523,-0.7612367,-0.7577952,-0.7543278,-0.7508345,-0.7473155,-0.7437709,-0.7402008,-0.7366052,-0.7329844,-0.7293385,-0.7256674,-0.7219714,-0.7182505,-0.7145048,-0.7107343,-0.7069392,-0.7031196,-0.6992757,-0.6954075,-0.6915152,-0.6875988,-0.6836584,-0.6796942,-0.6757062,-0.6716946,-0.6676593,-0.6636004,-0.6595184,-0.6554129,-0.6512844,-0.6471328,-0.6429582,-0.6387607,-0.6345405,-0.6302976,-0.6260321,-0.621744,-0.6174334,-0.6131006,-0.6087456,-0.6043684,-0.5999693,-0.5955482,-0.5911052,-0.5866405,-0.582154,-0.577646,-0.5731163,-0.5685652,-0.5639927,-0.5593991,-0.5547842,-0.5501482,-0.5454913,-0.5408133,-0.5361145,-0.531395,-0.5266545,-0.5218935,-0.5171119,-0.5123098,-0.5074872,-0.5026444,-0.4977812,-0.4928978,-0.4879943,-0.4830708,-0.4781271,-0.4731635,-0.4681799,-0.4631765,-0.4581534,-0.4531106,-0.4480482,-0.4429661,-0.4378646,-0.4327435,-0.4276031,-0.4224433,-0.417264,-0.4120656,-0.4068479,-0.4016111,-0.3963552,-0.3910803,-0.3857863,-0.3804734,-0.3751416,-0.3697909,-0.3644212,-0.3590328,-0.3536256,-0.3481997,-0.3427552,-0.337292,-0.3318102,-0.3263099,-0.320791,-0.3152537,-0.3096979,-0.3041236,-0.2985308,-0.2929197,-0.2872903,-0.2816426,-0.2759765,-0.2702923,-0.2645898,-0.258869,-0.2531301,-0.247373,-0.2415976,-0.2358041,-0.2299925,-0.2241628,-0.2183151,-0.2124492,-0.2065654,-0.2006634,-0.1947435,-0.1888055,-0.1828494,-0.1768753,-0.1708832,-0.1648731,-0.158845,-0.152799,-0.1467349,-0.1406529,-0.134553,-0.128435,-0.122299,-0.116145,-0.109973,-0.103783,-0.09757504,-0.09134907,-0.08510508,-0.07884308,-0.07256305,-0.06626499,-0.05994888,-0.05361465,-0.0472623,-0.04089186,-0.03450332,-0.02809666,-0.02167186,-0.01522891,-0.008767786,-0.002288466,0.004209068,0.01072484,0.01725898,0.0238114,0.03038213,0.03697119,0.0435786,0.05020439,0.05684859,0.06351122,0.07019229,0.07689186,0.08360997,0.09034669,0.09710196,0.1038758,0.1106683,0.1174794,0.1243091,0.1311575,0.1380245,0.1449103,0.1518147,0.158738,0.1656799,0.1726406,0.1796199,0.1866178,0.1936344,0.2006695,0.2077231,0.2147952,0.2218855,0.228994,0.2361207,0.2432653,0.2504275,0.2576071,0.2648038,0.2720172,0.279247,0.2864925,0.2937533,0.3010286,0.3083177,0.3156196,0.3229333,0.3302574,0.3375906,0.3449311,0.352277,0.3596261,0.3669758,0.3743232,0.3816651,0.3889975,0.3963161,0.4036163,0.4108926,0.4181389,0.4253488,0.4325148,0.4396291,0.4466833,0.4536682,0.4605743,0.4673913,0.4741094,0.4807185,0.4872088,0.4935706,0.4997948,0.5058734,0.5117989,0.5175653,0.5231676,0.5286018,0.5338652,0.5389574,0.5438786,0.5486302,0.5532144,0.5576344,0.561894,0.5659978,0.5699508,0.5737581,0.5774246,0.5809565,0.5843595,0.5876392,0.5908014,0.5938512,0.5967941,0.5996352,0.6023792,0.6050309,0.6075948,0.6100746,0.6124749,0.6147996,0.6170523,0.6192364,0.6213551,0.6234116,0.6254087,0.6273493,0.6292357,0.6310704,0.6328557,0.6345939,0.636287,0.6379371,0.6395458,0.641115,0.6426462,0.6441411,0.645601,0.6470275,0.6484216,0.6497846,0.651118,0.6524226,0.6536997,0.6549502,0.6561751,0.6573753,0.6585516,0.6597049,0.660836,0.6619455,0.6630343,0.664103,0.6651523,0.6661828,0.6671951,0.6681898,0.6691674,0.6701285,0.6710734,0.6720028,0.672917,0.6738165,0.6747018,0.6755732,0.6764311,0.6772759,0.678108,0.6789277,0.6797354,0.6805313,0.6813158,0.682089,0.6828515,0.6836033,0.6843449,0.6850764,0.6857981,0.6865102,0.687213,0.6879067,0.6885914,0.6892675,0.689935,0.6905942,0.6912453,0.6918885,0.6925239,0.6931517,0.6937721,0.6943853,0.6949914,0.6955904,0.6961826,0.6967682,0.6973472,0.6979198,0.6984862,0.6990464,0.6996006,0.7001489,0.7006914,0.7012283,0.7017595,0.7022852,0.7028056,0.7033207,0.7038307,0.7043356,0.7048355,0.7053306,0.7058208,0.7063063,0.7067872,0.7072635,0.7077353,0.7082028,0.7086659,0.7091247,0.7095795,0.7100301,0.7104766,0.7109192,0.7113579,0.7117927,0.7122238,0.7126511,0.7130747,0.7134948,0.7139112,0.7143242,0.7147338,0.71514,0.7155429,0.7159424,0.7163387,0.7167318,0.7171218,0.7175087,0.7178925,0.7182733,0.7186512,0.7190261,0.7193982,0.7197675,0.7201339,0.7204975,0.7208585,0.7212167,0.7215723,0.7219253,0.7222757,0.7226236,0.722969,0.7233118,0.7236523,0.7239904,0.724326,0.7246593,0.7249903,0.725319,0.7256454,0.7259696,0.7262917,0.7266115,0.7269291,0.7272447,0.7275582,0.7278696,0.7281789,0.7284862,0.7287915,0.7290949,0.7293963,0.7296958,0.7299933,0.730289,0.7305829,0.7308749,0.7311651,0.7314534,0.73174,0.7320248,0.732308,0.7325894,0.7328691,0.7331471,0.7334235,0.7336981,0.7339712,0.7342427,0.7345126,0.7347809,0.7350477,0.7353129,0.7355766,0.7358388,0.7360995,0.7363588,0.7366166,0.7368729,0.7371278,0.7373812,0.7376333,0.737884,0.7381333,0.7383813,0.7386279,0.7388732,0.7391171,0.7393598,0.7396012,0.7398413,0.7400801,0.7403176,0.740554,0.7407891,0.7410229,0.7412556,0.741487,0.7417173,0.7419464,0.7421744,0.7424011,0.7426268,0.7428513,0.7430747,0.743297,0.7435182,0.7437382,0.7439573,0.7441752,0.744392,0.7446079,0.7448227,0.7450364,0.7452492,0.7454609,0.7456716,0.7458813,0.74609,0.7462977,0.7465045,0.7467102,0.7469151,0.747119,0.747322,0.747524,0.7477251,0.7479253,0.7481245,0.7483229,0.7485204,0.748717,0.7489127,0.7491075,0.7493016,0.7494947,0.7496869,0.7498783,0.750069,0.7502587,0.7504476,0.7506357,0.7508231,0.7510096,0.7511953,0.7513802,0.7515643,0.7517477,0.7519303,0.7521121,0.7522931,0.7524734};
    
    
    const float wave_shape_tube_6v6 [513] = {-0.9193002,-0.9172585,-0.9151811,-0.9130678,-0.9109185,-0.908733,-0.9065112,-0.9042532,-0.9019588,-0.8996278,-0.8972603,-0.8948562,-0.8924152,-0.8899376,-0.8874233,-0.8848722,-0.8822845,-0.87966,-0.8769987,-0.8743008,-0.8715662,-0.8687949,-0.8659868,-0.8631421,-0.860261,-0.8573433,-0.8543893,-0.8513988,-0.8483722,-0.8453094,-0.8422105,-0.8390755,-0.8359047,-0.8326979,-0.8294553,-0.8261772,-0.8228635,-0.8195146,-0.8161303,-0.8127109,-0.8092566,-0.8057674,-0.8022434,-0.7986847,-0.7950915,-0.7914638,-0.787802,-0.7841061,-0.7803763,-0.7766127,-0.7728155,-0.7689848,-0.7651207,-0.7612236,-0.7572931,-0.7533298,-0.7493336,-0.7453049,-0.7412437,-0.7371503,-0.7330246,-0.728867,-0.7246774,-0.7204562,-0.7162035,-0.7119191,-0.7076035,-0.7032567,-0.698879,-0.6944704,-0.6900311,-0.6855613,-0.6810611,-0.6765305,-0.67197,-0.6673793,-0.6627585,-0.6581082,-0.6534281,-0.6487187,-0.6439799,-0.6392119,-0.6344149,-0.6295888,-0.6247339,-0.6198503,-0.6149381,-0.6099973,-0.6050281,-0.6000307,-0.5950052,-0.5899516,-0.5848702,-0.5797609,-0.5746239,-0.5694594,-0.5642673,-0.5590477,-0.5538008,-0.5485267,-0.5432255,-0.5378972,-0.532542,-0.52716,-0.5217512,-0.5163157,-0.5108536,-0.505365,-0.4998497,-0.4943082,-0.4887403,-0.4831462,-0.4775259,-0.4718795,-0.4662071,-0.4605086,-0.4547843,-0.4490341,-0.443258,-0.4374561,-0.4316284,-0.4257751,-0.4198962,-0.4139917,-0.4080617,-0.4021061,-0.3961251,-0.3901186,-0.3840868,-0.3780293,-0.3719466,-0.3658385,-0.3597051,-0.3535464,-0.3473625,-0.3411533,-0.3349188,-0.3286591,-0.3223741,-0.3160639,-0.3097283,-0.3033675,-0.2969814,-0.2905701,-0.2841335,-0.2776716,-0.2711844,-0.264672,-0.2581342,-0.2515711,-0.2449824,-0.2383683,-0.2317288,-0.2250638,-0.2183732,-0.2116571,-0.2049154,-0.1981481,-0.191355,-0.1845362,-0.1776917,-0.170821,-0.1639244,-0.1570019,-0.1500533,-0.1430785,-0.1360775,-0.1290503,-0.1219966,-0.1149165,-0.1078099,-0.1006766,-0.09351643,-0.08632947,-0.07911558,-0.07187469,-0.06460667,-0.05731142,-0.04998885,-0.04263884,-0.03526129,-0.02785609,-0.02042301,-0.01296201,-0.005473034,0.002044014,0.009589233,0.01716271,0.02476454,0.03239479,0.04005352,0.04774078,0.0554566,0.06320116,0.07097428,0.07877589,0.08660592,0.09446423,0.1023506,0.1102649,0.1182067,0.1261756,0.1341711,0.1421927,0.1502396,0.1583108,0.1664053,0.1745216,0.1826582,0.1908133,0.1989848,0.20717,0.2153661,0.2235697,0.2317769,0.2399831,0.2481832,0.2563715,0.2645415,0.272686,0.2807969,0.2888655,0.2968823,0.304837,0.3127188,0.3205158,0.3282169,0.33581,0.3432836,0.3506261,0.3578268,0.3648753,0.3717628,0.3784811,0.3850239,0.3913856,0.3975621,0.4035519,0.4093543,0.4149699,0.4204004,0.4256485,0.4307179,0.4356129,0.4403385,0.4449001,0.4493028,0.4535529,0.4576567,0.4616201,0.4654494,0.4691502,0.4727284,0.4761896,0.4795391,0.4827821,0.4859237,0.4889679,0.49192,0.4947842,0.4975646,0.5002652,0.5028895,0.505441,0.5079229,0.5103386,0.5126908,0.5149823,0.5172155,0.5193933,0.5215179,0.5235915,0.5256163,0.5275943,0.5295274,0.5314172,0.5332656,0.5350741,0.5368441,0.5385772,0.5402747,0.5419381,0.5435684,0.545167,0.5467348,0.5482731,0.5497827,0.5512647,0.55272,0.5541493,0.5555536,0.5569338,0.5582905,0.5596245,0.5609366,0.5622273,0.5634974,0.5647474,0.5659779,0.5671895,0.5683827,0.569558,0.570716,0.5718571,0.5729818,0.5740906,0.5751839,0.5762619,0.5773253,0.5783744,0.5794094,0.5804307,0.5814388,0.5824339,0.5834163,0.5843864,0.5853445,0.5862908,0.5872256,0.5881492,0.5890618,0.5899637,0.5908551,0.5917362,0.5926073,0.5934686,0.5943204,0.5951627,0.5959959,0.5968201,0.5976354,0.5984421,0.5992404,0.6000304,0.6008122,0.6015861,0.6023522,0.6031107,0.6038616,0.6046053,0.6053416,0.6060709,0.6067933,0.6075088,0.6082175,0.6089198,0.6096156,0.610305,0.6109881,0.6116652,0.6123363,0.6130014,0.6136608,0.6143144,0.6149623,0.6156048,0.6162418,0.6168735,0.6174999,0.6181212,0.6187373,0.6193485,0.6199548,0.6205562,0.6211528,0.6217446,0.6223319,0.6229146,0.6234929,0.6240667,0.6246361,0.6252013,0.6257622,0.626319,0.6268716,0.6274202,0.6279649,0.6285055,0.6290424,0.6295754,0.6301045,0.6306301,0.6311519,0.6316701,0.6321848,0.6326959,0.6332036,0.6337078,0.6342086,0.6347061,0.6352004,0.6356913,0.6361791,0.6366637,0.6371452,0.6376236,0.6380989,0.6385712,0.6390406,0.639507,0.6399705,0.6404312,0.640889,0.641344,0.6417962,0.6422458,0.6426926,0.6431368,0.6435783,0.6440172,0.6444536,0.6448874,0.6453187,0.6457475,0.6461739,0.6465978,0.6470193,0.6474385,0.6478552,0.6482697,0.6486819,0.6490918,0.6494994,0.6499048,0.6503081,0.6507092,0.651108,0.6515048,0.6518995,0.652292,0.6526825,0.6530709,0.6534574,0.6538418,0.6542243,0.6546047,0.6549833,0.6553599,0.6557347,0.6561075,0.6564785,0.6568475,0.6572149,0.6575803,0.657944,0.6583059,0.6586661,0.6590245,0.6593812,0.6597362,0.6600895,0.6604411,0.660791,0.6611393,0.661486,0.661831,0.6621745,0.6625164,0.6628567,0.6631954,0.6635326,0.6638682,0.6642024,0.664535,0.6648662,0.6651959,0.6655241,0.6658509,0.6661762,0.6665001,0.6668226,0.6671437,0.6674634,0.6677817,0.6680987,0.6684143,0.6687285,0.6690415,0.6693531,0.6696634,0.6699724,0.6702801,0.6705865,0.6708917,0.6711956,0.6714983,0.6717997,0.6720999,0.6723989,0.6726967,0.6729933,0.6732888,0.673583,0.673876,0.6741679,0.6744587,0.6747482,0.6750367,0.6753241,0.6756103,0.6758955,0.6761795,0.6764624,0.6767443,0.6770251,0.6773048,0.6775835,0.677861,0.6781376,0.6784132,0.6786877,0.6789612,0.6792337};
    
    
    const float wave_shape_tube_12ax7 [513] = {-0.9998356,-0.9998285,-0.9998211,-0.9998131,-0.9998046,-0.9997956,-0.9997859,-0.9997756,-0.9997646,-0.9997528,-0.9997402,-0.9997269,-0.9997126,-0.9996973,-0.9996811,-0.9996637,-0.9996451,-0.9996254,-0.9996043,-0.9995818,-0.9995577,-0.9995321,-0.9995048,-0.9994756,-0.9994445,-0.9994113,-0.9993759,-0.9993382,-0.9992979,-0.999255,-0.9992092,-0.9991604,-0.9991084,-0.9990528,-0.9989937,-0.9989306,-0.9988633,-0.9987917,-0.9987153,-0.998634,-0.9985473,-0.9984549,-0.9983565,-0.9982517,-0.9981401,-0.9980212,-0.9978947,-0.9977599,-0.9976166,-0.997464,-0.9973016,-0.997129,-0.9969453,-0.9967499,-0.9965422,-0.9963214,-0.9960868,-0.9958375,-0.9955727,-0.9952915,-0.994993,-0.9946762,-0.9943401,-0.9939836,-0.9936056,-0.9932048,-0.9927801,-0.9923303,-0.9918541,-0.99135,-0.9908168,-0.9902529,-0.9896568,-0.9890271,-0.988362,-0.98766,-0.9869192,-0.986138,-0.9853147,-0.9844475,-0.9835346,-0.9825742,-0.9815643,-0.980503,-0.9793884,-0.9782187,-0.9769915,-0.9757051,-0.9743575,-0.9729471,-0.9714716,-0.9699293,-0.9683182,-0.9666366,-0.9648825,-0.9630542,-0.9611499,-0.9591675,-0.9571057,-0.954963,-0.9527378,-0.9504287,-0.9480343,-0.9455533,-0.9429844,-0.9403264,-0.9375783,-0.9347389,-0.9318069,-0.928782,-0.9256635,-0.9224505,-0.9191425,-0.9157391,-0.9122396,-0.9086438,-0.9049515,-0.9011623,-0.8972758,-0.8932921,-0.8892113,-0.8850336,-0.8807591,-0.876388,-0.8719205,-0.867357,-0.8626977,-0.8579431,-0.8530936,-0.8481492,-0.8431109,-0.8379794,-0.8327552,-0.827439,-0.8220314,-0.8165331,-0.8109448,-0.8052673,-0.7995013,-0.7936474,-0.7877063,-0.781679,-0.7755664,-0.7693694,-0.7630886,-0.7567251,-0.7502796,-0.743753,-0.7371461,-0.7304597,-0.7236946,-0.7168516,-0.7099317,-0.7029359,-0.6958649,-0.6887197,-0.681501,-0.6742097,-0.6668467,-0.6594127,-0.6519088,-0.644335,-0.6366929,-0.6289831,-0.6212065,-0.6133639,-0.6054561,-0.5974838,-0.5894479,-0.5813491,-0.5731882,-0.5649658,-0.5566826,-0.5483397,-0.5399376,-0.5314772,-0.5229592,-0.5143844,-0.5057536,-0.4970673,-0.4883265,-0.4795317,-0.4706835,-0.4617828,-0.4528304,-0.4438271,-0.4347736,-0.4256707,-0.4165191,-0.4073196,-0.3980731,-0.3887803,-0.3794421,-0.3700592,-0.3606327,-0.3511635,-0.3416527,-0.3321014,-0.3225107,-0.3128818,-0.303216,-0.2935148,-0.2837798,-0.2740125,-0.2642147,-0.2543888,-0.244537,-0.2346618,-0.2247661,-0.2148531,-0.2049264,-0.19499,-0.1850484,-0.1751067,-0.1651704,-0.155246,-0.1453405,-0.1354616,-0.1256179,-0.1158189,-0.1060748,-0.09639668,-0.08679653,-0.07728693,-0.06788112,-0.0585936,-0.04943768,-0.04042734,-0.03157631,-0.02289781,-0.01440425,-0.006106971,0.001984002,0.009860178,0.01751473,0.02494214,0.03213862,0.03910363,0.04583734,0.05234143,0.05861896,0.06467417,0.07051229,0.07613934,0.08156197,0.08678727,0.0918219,0.09667389,0.1013512,0.1058616,0.1102124,0.114411,0.1184645,0.1223798,0.1261635,0.129822,0.1333613,0.1367865,0.1401037,0.1433183,0.1464351,0.1494588,0.1523937,0.1552441,0.1580138,0.1607065,0.1633258,0.1658749,0.1683566,0.1707743,0.1731308,0.1754286,0.1776702,0.1798581,0.1819943,0.184081,0.1861202,0.1881137,0.1900632,0.1919705,0.1938372,0.1956649,0.1974549,0.1992088,0.2009277,0.202613,0.2042658,0.2058871,0.2074782,0.2090398,0.2105731,0.212079,0.2135584,0.2150122,0.2164411,0.2178459,0.2192274,0.2205863,0.2219233,0.2232389,0.2245337,0.2258085,0.2270638,0.2283001,0.229518,0.230718,0.2319006,0.2330662,0.2342153,0.2353484,0.2364657,0.2375677,0.2386549,0.2397276,0.2407861,0.2418309,0.2428622,0.2438805,0.2448859,0.2458788,0.2468594,0.2478281,0.2487851,0.2497307,0.2506652,0.2515888,0.2525018,0.2534043,0.2542966,0.2551789,0.2560515,0.2569145,0.2577681,0.2586125,0.2594479,0.2602745,0.2610925,0.2619021,0.2627033,0.2634964,0.2642815,0.2650589,0.2658285,0.2665906,0.2673452,0.2680927,0.268833,0.2695663,0.2702928,0.2710125,0.2717256,0.2724322,0.2731324,0.2738263,0.274514,0.2751956,0.2758713,0.2765411,0.2772051,0.2778635,0.2785163,0.2791636,0.2798055,0.280442,0.2810734,0.2816995,0.2823206,0.2829368,0.2835479,0.2841543,0.2847559,0.2853528,0.2859451,0.2865329,0.2871161,0.2876949,0.2882694,0.2888395,0.2894055,0.2899672,0.2905249,0.2910785,0.2916281,0.2921738,0.2927156,0.2932535,0.2937877,0.2943181,0.2948449,0.295368,0.2958875,0.2964036,0.2969161,0.2974252,0.2979308,0.2984332,0.2989322,0.2994279,0.2999204,0.3004098,0.3008959,0.301379,0.301859,0.302336,0.30281,0.303281,0.3037491,0.3042143,0.3046767,0.3051362,0.305593,0.306047,0.3064983,0.3069468,0.3073928,0.3078361,0.3082768,0.308715,0.3091505,0.3095836,0.3100142,0.3104424,0.3108681,0.3112915,0.3117124,0.312131,0.3125473,0.3129613,0.313373,0.3137825,0.3141897,0.3145947,0.3149976,0.3153982,0.3157968,0.3161933,0.3165876,0.3169799,0.3173702,0.3177584,0.3181446,0.3185288,0.3189111,0.3192914,0.3196698,0.3200463,0.3204209,0.3207936,0.3211645,0.3215335,0.3219007,0.3222661,0.3226297,0.3229916,0.3233517,0.3237101,0.3240668,0.3244218,0.324775,0.3251267,0.3254766,0.3258249,0.3261716,0.3265167,0.3268602,0.3272021,0.3275425,0.3278813,0.3282186,0.3285543,0.3288885,0.3292213,0.3295525,0.3298823,0.3302106,0.3305375,0.3308629,0.3311869,0.3315095,0.3318307,0.3321506,0.332469,0.3327861,0.3331018,0.3334162,0.3337293,0.3340411,0.3343515,0.3346606,0.3349685,0.3352751,0.3355804,0.3358845,0.3361873,0.3364889,0.3367893,0.3370884,0.3373863,0.3376831,0.3379787,0.338273,0.3385662,0.3388583,0.3391492,0.339439,0.3397276,0.3400151,0.3403015,0.3405868,0.340871,0.3411541,0.3414361,0.341717};
    
    
    const float wave_shape_tube_12au7 [513] = {-0.01758699,-0.01578921,-0.01399054,-0.01219097,-0.0103905,-0.008589149,-0.006786915,-0.004983807,-0.00317983,-0.00137499,0.0004307067,0.002237256,0.004044652,0.005852886,0.007661953,0.009471844,0.01128255,0.01309408,0.0149064,0.01671953,0.01853345,0.02034815,0.02216364,0.0239799,0.02579692,0.0276147,0.02943323,0.0312525,0.03307251,0.03489325,0.03671471,0.03853688,0.04035977,0.04218335,0.04400762,0.04583257,0.04765821,0.0494845,0.05131146,0.05313907,0.05496732,0.05679621,0.05862572,0.06045585,0.06228659,0.06411794,0.06594988,0.06778239,0.06961549,0.07144915,0.07328337,0.07511814,0.07695345,0.07878928,0.08062564,0.0824625,0.08429988,0.08613774,0.08797608,0.0898149,0.09165418,0.09349392,0.09533409,0.0971747,0.09901573,0.1008572,0.102699,0.1045412,0.1063839,0.1082269,0.1100702,0.1119139,0.1137579,0.1156023,0.1174469,0.1192919,0.1211372,0.1229827,0.1248285,0.1266746,0.1285209,0.1303675,0.1322142,0.1340612,0.1359084,0.1377558,0.1396033,0.141451,0.1432988,0.1451468,0.1469949,0.1488431,0.1506914,0.1525398,0.1543882,0.1562367,0.1580852,0.1599338,0.1617824,0.1636309,0.1654795,0.167328,0.1691765,0.1710249,0.1728733,0.1747216,0.1765697,0.1784178,0.1802657,0.1821135,0.1839611,0.1858085,0.1876557,0.1895028,0.1913496,0.1931961,0.1950424,0.1968884,0.1987342,0.2005796,0.2024247,0.2042695,0.2061139,0.2079579,0.2098016,0.2116448,0.2134876,0.21533,0.2171719,0.2190133,0.2208543,0.2226947,0.2245346,0.2263739,0.2282127,0.2300509,0.2318885,0.2337254,0.2355617,0.2373974,0.2392324,0.2410666,0.2429002,0.244733,0.2465651,0.2483964,0.2502269,0.2520565,0.2538854,0.2557133,0.2575405,0.2593667,0.2611919,0.2630163,0.2648397,0.2666621,0.2684835,0.2703039,0.2721232,0.2739415,0.2757587,0.2775747,0.2793897,0.2812035,0.2830161,0.2848275,0.2866377,0.2884467,0.2902544,0.2920608,0.2938659,0.2956696,0.2974721,0.299273,0.3010727,0.3028708,0.3046675,0.3064628,0.3082565,0.3100486,0.3118393,0.3136283,0.3154156,0.3172013,0.3189853,0.3207676,0.3225481,0.3243268,0.3261037,0.3278786,0.3296516,0.3314226,0.3331916,0.3349584,0.336723,0.3384854,0.3402454,0.3420029,0.3437579,0.3455102,0.3472597,0.3490062,0.3507496,0.3524896,0.3542261,0.3559587,0.3576872,0.3594112,0.3611304,0.3628443,0.3645525,0.3662544,0.3679494,0.3696367,0.3713155,0.372985,0.3746441,0.3762917,0.3779266,0.3795475,0.3811529,0.3827412,0.3843105,0.3858593,0.3873857,0.3888874,0.3903627,0.3918097,0.3932265,0.3946113,0.3959624,0.3972785,0.3985582,0.3998005,0.4010047,0.4021703,0.4032969,0.4043847,0.4054341,0.4064457,0.4074199,0.4083579,0.4092607,0.4101292,0.4109648,0.4117688,0.4125422,0.4132865,0.414003,0.414693,0.4153577,0.4159985,0.4166163,0.4172125,0.417788,0.4183438,0.4188811,0.4194005,0.4199031,0.4203897,0.4208611,0.4213181,0.4217613,0.4221914,0.4226091,0.4230148,0.4234092,0.4237928,0.4241661,0.4245294,0.4248834,0.4252283,0.4255646,0.4258927,0.4262128,0.4265254,0.4268307,0.4271291,0.4274206,0.4277058,0.4279848,0.4282578,0.4285251,0.4287868,0.4290433,0.4292946,0.429541,0.4297826,0.4300196,0.4302521,0.4304804,0.4307044,0.4309245,0.4311407,0.4313531,0.4315619,0.4317671,0.431969,0.4321674,0.4323627,0.4325549,0.432744,0.4329301,0.4331135,0.433294,0.4334718,0.433647,0.4338197,0.4339898,0.4341576,0.4343229,0.434486,0.4346468,0.4348055,0.434962,0.4351165,0.4352689,0.4354194,0.4355679,0.4357146,0.4358594,0.4360025,0.4361438,0.4362833,0.4364212,0.4365575,0.4366922,0.4368253,0.4369569,0.437087,0.4372156,0.4373428,0.4374686,0.437593,0.4377161,0.4378378,0.4379583,0.4380775,0.4381955,0.4383122,0.4384277,0.4385422,0.4386554,0.4387675,0.4388785,0.4389884,0.4390973,0.4392051,0.4393119,0.4394177,0.4395225,0.4396263,0.4397292,0.4398311,0.4399322,0.4400323,0.4401315,0.4402299,0.4403273,0.440424,0.4405198,0.4406148,0.440709,0.4408024,0.4408951,0.4409869,0.441078,0.4411684,0.441258,0.4413469,0.4414352,0.4415227,0.4416095,0.4416956,0.4417811,0.441866,0.4419501,0.4420336,0.4421166,0.4421989,0.4422805,0.4423616,0.4424421,0.442522,0.4426014,0.4426801,0.4427583,0.442836,0.4429131,0.4429896,0.4430656,0.4431411,0.4432161,0.4432906,0.4433646,0.4434381,0.4435111,0.4435835,0.4436556,0.4437271,0.4437982,0.4438688,0.443939,0.4440088,0.4440781,0.4441469,0.4442153,0.4442833,0.4443509,0.444418,0.4444847,0.4445511,0.444617,0.4446825,0.4447477,0.4448124,0.4448768,0.4449407,0.4450044,0.4450676,0.4451305,0.445193,0.4452551,0.4453169,0.4453784,0.4454395,0.4455002,0.4455606,0.4456207,0.4456805,0.4457399,0.445799,0.4458578,0.4459162,0.4459743,0.4460322,0.4460897,0.4461469,0.4462039,0.4462605,0.4463168,0.4463728,0.4464285,0.446484,0.4465392,0.4465941,0.4466487,0.446703,0.446757,0.4468108,0.4468643,0.4469176,0.4469706,0.4470233,0.4470758,0.447128,0.44718,0.4472317,0.4472832,0.4473344,0.4473854,0.4474361,0.4474866,0.4475369,0.4475869,0.4476367,0.4476863,0.4477356,0.4477847,0.4478336,0.4478823,0.4479307,0.4479789,0.4480269,0.4480747,0.4481223,0.4481697,0.4482169,0.4482638,0.4483106,0.4483571,0.4484034,0.4484496,0.4484955,0.4485413,0.4485868,0.4486322,0.4486774,0.4487223,0.4487671,0.4488117,0.4488561,0.4489004,0.4489444,0.4489883,0.449032,0.4490755,0.4491188,0.449162,0.449205,0.4492477,0.4492904,0.4493329,0.4493752,0.4494173,0.4494593,0.4495011,0.4495427,0.4495842,0.4496255,0.4496666,0.4497076,0.4497485};
    
    
    const float wave_shape_tube_kt88 [513] = {0.2682458,0.2704184,0.2725929,0.2747693,0.2769477,0.279128,0.2813103,0.2834946,0.2856808,0.2878689,0.2900591,0.2922512,0.2944454,0.2966415,0.2988396,0.3010398,0.3032419,0.305446,0.3076522,0.3098604,0.3120706,0.3142828,0.3164971,0.3187135,0.3209319,0.3231523,0.3253749,0.3275995,0.3298261,0.3320549,0.3342857,0.3365187,0.3387537,0.3409909,0.3432302,0.3454716,0.3477151,0.3499608,0.3522086,0.3544585,0.3567106,0.3589649,0.3612214,0.36348,0.3657408,0.3680038,0.370269,0.3725365,0.3748061,0.3770779,0.379352,0.3816283,0.3839069,0.3861877,0.3884707,0.3907561,0.3930437,0.3953336,0.3976258,0.3999203,0.4022171,0.4045163,0.4068177,0.4091215,0.4114276,0.4137362,0.416047,0.4183603,0.4206759,0.4229939,0.4253143,0.4276371,0.4299623,0.43229,0.4346201,0.4369526,0.4392876,0.4416251,0.4439651,0.4463075,0.4486525,0.4509999,0.4533499,0.4557024,0.4580575,0.460415,0.4627752,0.465138,0.4675033,0.4698713,0.4722418,0.4746149,0.4769907,0.4793692,0.4817503,0.484134,0.4865205,0.4889096,0.4913015,0.4936961,0.4960934,0.4984935,0.5008963,0.5033019,0.5057102,0.5081214,0.5105354,0.5129523,0.5153719,0.5177944,0.5202199,0.5226482,0.5250793,0.5275134,0.5299504,0.5323904,0.5348334,0.5372792,0.5397282,0.5421801,0.5446351,0.547093,0.5495541,0.5520182,0.5544854,0.5569558,0.5594292,0.5619058,0.5643856,0.5668685,0.5693547,0.571844,0.5743366,0.5768325,0.5793316,0.581834,0.5843397,0.5868488,0.5893612,0.591877,0.5943962,0.5969188,0.5994447,0.6019742,0.6045072,0.6070436,0.6095836,0.6121271,0.6146741,0.6172248,0.619779,0.6223369,0.6248984,0.6274636,0.6300325,0.6326051,0.6351815,0.6377616,0.6403455,0.6429332,0.6455249,0.6481203,0.6507196,0.6533229,0.6559301,0.6585413,0.6611564,0.6637756,0.6663988,0.6690261,0.6716574,0.6742929,0.6769325,0.6795763,0.6822243,0.6848766,0.6875331,0.6901938,0.6928588,0.6955282,0.6982019,0.70088,0.7035625,0.7062494,0.7089407,0.7116366,0.7143369,0.7170418,0.7197511,0.722465,0.7251835,0.7279066,0.7306343,0.7333667,0.7361037,0.7388453,0.7415916,0.7443426,0.7470983,0.7498586,0.7526237,0.7553934,0.7581679,0.7609469,0.7637308,0.7665192,0.7693123,0.77211,0.7749123,0.7777192,0.7805305,0.7833464,0.7861665,0.7889912,0.79182,0.794653,0.7974901,0.8003312,0.8031762,0.8060248,0.8088771,0.8117326,0.8145915,0.8174533,0.8203179,0.8231849,0.8260542,0.8289253,0.8317978,0.8346715,0.8375458,0.8404201,0.8432938,0.8461663,0.8490366,0.8519037,0.8547661,0.8576221,0.8604693,0.8633045,0.866123,0.8689183,0.8716813,0.8743991,0.877054,0.8796237,0.8820801,0.8843948,0.8865418,0.8885034,0.890273,0.8918551,0.893263,0.8945144,0.8956289,0.896625,0.8975194,0.8983264,0.8990589,0.8997273,0.9003403,0.9009053,0.9014281,0.9019141,0.9023674,0.9027918,0.9031904,0.9035658,0.9039204,0.9042561,0.9045748,0.9048779,0.9051668,0.9054427,0.9057066,0.9059595,0.9062021,0.9064353,0.9066595,0.9068757,0.907084,0.9072853,0.9074799,0.9076681,0.9078504,0.9080271,0.9081985,0.908365,0.9085267,0.908684,0.908837,0.9089859,0.9091311,0.9092726,0.9094106,0.9095452,0.9096768,0.9098053,0.9099309,0.9100537,0.9101738,0.9102914,0.9104065,0.9105194,0.9106299,0.9107382,0.9108444,0.9109486,0.9110509,0.9111513,0.9112498,0.9113466,0.9114417,0.9115352,0.9116271,0.9117174,0.9118063,0.9118937,0.9119797,0.9120644,0.9121478,0.9122298,0.9123107,0.9123904,0.9124688,0.9125462,0.9126224,0.9126976,0.9127716,0.9128447,0.9129168,0.912988,0.9130582,0.9131274,0.9131958,0.9132633,0.91333,0.9133958,0.9134609,0.913525,0.9135885,0.9136512,0.9137132,0.9137744,0.9138349,0.9138948,0.913954,0.9140124,0.9140703,0.9141275,0.9141841,0.9142401,0.9142955,0.9143503,0.9144046,0.9144583,0.9145114,0.914564,0.9146161,0.9146677,0.9147187,0.9147692,0.9148193,0.9148689,0.914918,0.9149666,0.9150149,0.9150626,0.9151099,0.9151568,0.9152033,0.9152493,0.915295,0.9153402,0.9153851,0.9154295,0.9154736,0.9155173,0.9155607,0.9156036,0.9156463,0.9156885,0.9157304,0.915772,0.9158132,0.9158542,0.9158947,0.915935,0.915975,0.9160146,0.916054,0.916093,0.9161317,0.9161702,0.9162083,0.9162462,0.9162838,0.9163211,0.9163582,0.9163949,0.9164314,0.9164677,0.9165037,0.9165394,0.916575,0.9166102,0.9166452,0.91668,0.9167145,0.9167488,0.9167829,0.9168167,0.9168503,0.9168836,0.9169168,0.9169497,0.9169825,0.917015,0.9170474,0.9170794,0.9171114,0.9171431,0.9171746,0.9172059,0.917237,0.917268,0.9172987,0.9173293,0.9173596,0.9173898,0.9174198,0.9174497,0.9174793,0.9175087,0.917538,0.9175672,0.9175962,0.917625,0.9176536,0.9176821,0.9177104,0.9177385,0.9177665,0.9177943,0.917822,0.9178495,0.9178769,0.9179041,0.9179313,0.9179582,0.917985,0.9180116,0.9180381,0.9180645,0.9180907,0.9181168,0.9181427,0.9181685,0.9181942,0.9182198,0.9182452,0.9182705,0.9182957,0.9183207,0.9183456,0.9183704,0.9183951,0.9184196,0.918444,0.9184684,0.9184926,0.9185166,0.9185405,0.9185644,0.9185881,0.9186117,0.9186352,0.9186586,0.9186819,0.918705,0.9187281,0.918751,0.9187739,0.9187966,0.9188192,0.9188418,0.9188642,0.9188865,0.9189088,0.9189309,0.9189529,0.9189748,0.9189967,0.9190184,0.91904,0.9190616,0.9190831,0.9191044,0.9191257,0.9191468,0.9191679,0.9191889,0.9192098,0.9192306,0.9192514,0.919272,0.9192926,0.919313,0.9193334,0.9193537,0.9193739,0.9193941,0.9194141};
    
    
    const float wave_shape_tube_12ax7_1025 [1025]  = {-0.9998356,-0.9998321,-0.9998285,-0.9998249,-0.9998211,-0.9998172,-0.9998131,-0.999809,-0.9998046,-0.9998002,-0.9997956,-0.9997908,-0.9997859,-0.9997808,-0.9997756,-0.9997702,-0.9997646,-0.9997588,-0.9997528,-0.9997466,-0.9997402,-0.9997337,-0.9997269,-0.9997199,-0.9997126,-0.9997051,-0.9996973,-0.9996893,-0.9996811,-0.9996725,-0.9996637,-0.9996545,-0.9996451,-0.9996354,-0.9996254,-0.999615,-0.9996043,-0.9995932,-0.9995818,-0.99957,-0.9995577,-0.9995452,-0.9995321,-0.9995187,-0.9995048,-0.9994904,-0.9994756,-0.9994603,-0.9994445,-0.9994282,-0.9994113,-0.9993939,-0.9993759,-0.9993573,-0.9993382,-0.9993184,-0.9992979,-0.9992768,-0.999255,-0.9992325,-0.9992092,-0.9991852,-0.9991604,-0.9991348,-0.9991084,-0.999081,-0.9990528,-0.9990237,-0.9989937,-0.9989626,-0.9989306,-0.9988975,-0.9988633,-0.9988281,-0.9987917,-0.9987541,-0.9987153,-0.9986753,-0.998634,-0.9985913,-0.9985473,-0.9985018,-0.9984549,-0.9984065,-0.9983565,-0.998305,-0.9982517,-0.9981968,-0.9981401,-0.9980816,-0.9980212,-0.997959,-0.9978947,-0.9978284,-0.9977599,-0.9976894,-0.9976166,-0.9975415,-0.997464,-0.9973841,-0.9973016,-0.9972166,-0.997129,-0.9970385,-0.9969453,-0.9968491,-0.9967499,-0.9966477,-0.9965422,-0.9964335,-0.9963214,-0.9962059,-0.9960868,-0.995964,-0.9958375,-0.995707,-0.9955727,-0.9954342,-0.9952915,-0.9951445,-0.994993,-0.9948369,-0.9946762,-0.9945106,-0.9943401,-0.9941645,-0.9939836,-0.9937974,-0.9936056,-0.9934081,-0.9932048,-0.9929955,-0.9927801,-0.9925584,-0.9923303,-0.9920956,-0.9918541,-0.9916056,-0.99135,-0.9910871,-0.9908168,-0.9905387,-0.9902529,-0.9899589,-0.9896568,-0.9893463,-0.9890271,-0.9886991,-0.988362,-0.9880158,-0.98766,-0.9872945,-0.9869192,-0.9865337,-0.986138,-0.9857317,-0.9853147,-0.9848867,-0.9844475,-0.9839969,-0.9835346,-0.9830605,-0.9825742,-0.9820755,-0.9815643,-0.9810402,-0.980503,-0.9799525,-0.9793884,-0.9788105,-0.9782187,-0.9776124,-0.9769915,-0.9763558,-0.9757051,-0.9750391,-0.9743575,-0.9736603,-0.9729471,-0.9722176,-0.9714716,-0.9707089,-0.9699293,-0.9691325,-0.9683182,-0.9674864,-0.9666366,-0.9657687,-0.9648825,-0.9639778,-0.9630542,-0.9621117,-0.9611499,-0.9601685,-0.9591675,-0.9581466,-0.9571057,-0.9560446,-0.954963,-0.9538608,-0.9527378,-0.9515938,-0.9504287,-0.9492422,-0.9480343,-0.9468047,-0.9455533,-0.9442799,-0.9429844,-0.9416666,-0.9403264,-0.9389637,-0.9375783,-0.9361702,-0.9347389,-0.9332845,-0.9318069,-0.9303061,-0.928782,-0.9272345,-0.9256635,-0.9240688,-0.9224505,-0.9208084,-0.9191425,-0.9174528,-0.9157391,-0.9140013,-0.9122396,-0.9104538,-0.9086438,-0.9068097,-0.9049515,-0.903069,-0.9011623,-0.8992313,-0.8972758,-0.895296,-0.8932921,-0.8912638,-0.8892113,-0.8871346,-0.8850336,-0.8829085,-0.8807591,-0.8785856,-0.876388,-0.8741663,-0.8719205,-0.8696507,-0.867357,-0.8650392,-0.8626977,-0.8603323,-0.8579431,-0.8555301,-0.8530936,-0.8506331,-0.8481492,-0.8456417,-0.8431109,-0.8405568,-0.8379794,-0.8353788,-0.8327552,-0.8301086,-0.827439,-0.8247465,-0.8220314,-0.8192935,-0.8165331,-0.8137501,-0.8109448,-0.8081172,-0.8052673,-0.8023953,-0.7995013,-0.7965854,-0.7936474,-0.7906877,-0.7877063,-0.7847034,-0.781679,-0.7786333,-0.7755664,-0.7724784,-0.7693694,-0.7662394,-0.7630886,-0.7599171,-0.7567251,-0.7535125,-0.7502796,-0.7470264,-0.743753,-0.7404595,-0.7371461,-0.7338128,-0.7304597,-0.727087,-0.7236946,-0.7202827,-0.7168516,-0.7134012,-0.7099317,-0.7064433,-0.7029359,-0.6994097,-0.6958649,-0.6923015,-0.6887197,-0.6851195,-0.681501,-0.6778644,-0.6742097,-0.6705371,-0.6668467,-0.6631386,-0.6594127,-0.6556695,-0.6519088,-0.6481305,-0.644335,-0.6405225,-0.6366929,-0.6328464,-0.6289831,-0.6251031,-0.6212065,-0.6172934,-0.6133639,-0.6094181,-0.6054561,-0.6014779,-0.5974838,-0.5934737,-0.5894479,-0.5854063,-0.5813491,-0.5772763,-0.5731882,-0.5690847,-0.5649658,-0.5608317,-0.5566826,-0.5525185,-0.5483397,-0.5441459,-0.5399376,-0.5357146,-0.5314772,-0.5272254,-0.5229592,-0.5186789,-0.5143844,-0.510076,-0.5057536,-0.5014173,-0.4970673,-0.4927037,-0.4883265,-0.4839357,-0.4795317,-0.4751142,-0.4706835,-0.4662397,-0.4617828,-0.457313,-0.4528304,-0.4483351,-0.4438271,-0.4393066,-0.4347736,-0.4302283,-0.4256707,-0.4211009,-0.4165191,-0.4119253,-0.4073196,-0.4027022,-0.3980731,-0.3934324,-0.3887803,-0.3841168,-0.3794421,-0.3747562,-0.3700592,-0.3653513,-0.3606327,-0.3559033,-0.3511635,-0.3464133,-0.3416527,-0.3368821,-0.3321014,-0.3273109,-0.3225107,-0.317701,-0.3128818,-0.3080534,-0.303216,-0.2983698,-0.2935148,-0.2886515,-0.2837798,-0.2789001,-0.2740125,-0.2691173,-0.2642147,-0.2593051,-0.2543888,-0.249466,-0.244537,-0.2396021,-0.2346618,-0.2297163,-0.2247661,-0.2198115,-0.2148531,-0.2098912,-0.2049264,-0.1999592,-0.19499,-0.1900196,-0.1850484,-0.1800772,-0.1751067,-0.1701375,-0.1651704,-0.1602063,-0.155246,-0.1502904,-0.1453405,-0.1403972,-0.1354616,-0.1305348,-0.1256179,-0.1207122,-0.1158189,-0.1109393,-0.1060748,-0.1012267,-0.09639668,-0.09158609,-0.08679653,-0.0820296,-0.07728693,-0.0725702,-0.06788112,-0.06322179,-0.0585936,-0.05399832,-0.04943768,-0.04491345,-0.04042734,-0.03598107,-0.03157631,-0.02721469,-0.02289781,-0.01862717,-0.01440425,-0.01023041,-0.006106971,-0.002035128,0.001984002,0.005949407,0.009860178,0.01371552,0.01751473,0.02125725,0.02494214,0.02856926,0.03213862,0.03565009,0.03910363,0.04249933,0.04583734,0.04911792,0.05234143,0.05550827,0.05861896,0.06167405,0.06467417,0.06762,0.07051229,0.07335179,0.07613934,0.07887577,0.08156197,0.08419883,0.08678727,0.08932804,0.0918219,0.0942702,0.09667389,0.09903392,0.1013512,0.1036268,0.1058616,0.1080565,0.1102124,0.1123303,0.114411,0.1164554,0.1184645,0.120439,0.1223798,0.1242877,0.1261635,0.128008,0.129822,0.1316062,0.1333613,0.1350877,0.1367865,0.1384583,0.1401037,0.1417236,0.1433183,0.1448886,0.1464351,0.1479583,0.1494588,0.1509371,0.1523937,0.1538292,0.1552441,0.1566388,0.1580138,0.1593695,0.1607065,0.1620251,0.1633258,0.164609,0.1658749,0.1671239,0.1683566,0.1695733,0.1707743,0.1719601,0.1731308,0.1742869,0.1754286,0.1765563,0.1776702,0.1787707,0.1798581,0.1809325,0.1819943,0.1830437,0.184081,0.1851064,0.1861202,0.1871225,0.1881137,0.1890939,0.1900632,0.191022,0.1919705,0.1929088,0.1938372,0.1947558,0.1956649,0.1965645,0.1974549,0.1983363,0.1992088,0.2000726,0.2009277,0.2017745,0.202613,0.2034434,0.2042658,0.2050803,0.2058871,0.2066864,0.2074782,0.2082626,0.2090398,0.2098099,0.2105731,0.2113294,0.212079,0.2128219,0.2135584,0.2142884,0.2150122,0.2157297,0.2164411,0.2171465,0.2178459,0.2185396,0.2192274,0.2199097,0.2205863,0.2212575,0.2219233,0.2225837,0.2232389,0.2238888,0.2245337,0.2251736,0.2258085,0.2264386,0.2270638,0.2276843,0.2283001,0.2289114,0.229518,0.2301202,0.230718,0.2313115,0.2319006,0.2324855,0.2330662,0.2336428,0.2342153,0.2347838,0.2353484,0.235909,0.2364657,0.2370186,0.2375677,0.2381131,0.2386549,0.239193,0.2397276,0.2402586,0.2407861,0.2413102,0.2418309,0.2423482,0.2428622,0.243373,0.2438805,0.2443847,0.2448859,0.2453838,0.2458788,0.2463706,0.2468594,0.2473452,0.2478281,0.248308,0.2487851,0.2492593,0.2497307,0.2501993,0.2506652,0.2511283,0.2515888,0.2520466,0.2525018,0.2529543,0.2534043,0.2538517,0.2542966,0.254739,0.2551789,0.2556164,0.2560515,0.2564842,0.2569145,0.2573424,0.2577681,0.2581914,0.2586125,0.2590313,0.2594479,0.2598623,0.2602745,0.2606846,0.2610925,0.2614983,0.2619021,0.2623037,0.2627033,0.2631009,0.2634964,0.26389,0.2642815,0.2646712,0.2650589,0.2654446,0.2658285,0.2662105,0.2665906,0.2669688,0.2673452,0.2677199,0.2680927,0.2684637,0.268833,0.2692005,0.2695663,0.2699304,0.2702928,0.2706535,0.2710125,0.2713699,0.2717256,0.2720797,0.2724322,0.2727831,0.2731324,0.2734801,0.2738263,0.2741709,0.274514,0.2748556,0.2751956,0.2755342,0.2758713,0.2762069,0.2765411,0.2768738,0.2772051,0.277535,0.2778635,0.2781906,0.2785163,0.2788406,0.2791636,0.2794852,0.2798055,0.2801244,0.280442,0.2807584,0.2810734,0.2813871,0.2816995,0.2820107,0.2823206,0.2826293,0.2829368,0.2832429,0.2835479,0.2838517,0.2841543,0.2844557,0.2847559,0.285055,0.2853528,0.2856495,0.2859451,0.2862396,0.2865329,0.2868251,0.2871161,0.2874061,0.2876949,0.2879827,0.2882694,0.288555,0.2888395,0.289123,0.2894055,0.2896869,0.2899672,0.2902466,0.2905249,0.2908022,0.2910785,0.2913538,0.2916281,0.2919015,0.2921738,0.2924452,0.2927156,0.2929851,0.2932535,0.2935211,0.2937877,0.2940534,0.2943181,0.2945819,0.2948449,0.2951069,0.295368,0.2956282,0.2958875,0.296146,0.2964036,0.2966602,0.2969161,0.297171,0.2974252,0.2976784,0.2979308,0.2981824,0.2984332,0.2986831,0.2989322,0.2991804,0.2994279,0.2996746,0.2999204,0.3001655,0.3004098,0.3006532,0.3008959,0.3011379,0.301379,0.3016194,0.301859,0.3020979,0.302336,0.3025734,0.30281,0.3030459,0.303281,0.3035154,0.3037491,0.3039821,0.3042143,0.3044459,0.3046767,0.3049068,0.3051362,0.3053649,0.305593,0.3058203,0.306047,0.306273,0.3064983,0.3067229,0.3069468,0.3071702,0.3073928,0.3076148,0.3078361,0.3080568,0.3082768,0.3084962,0.308715,0.3089331,0.3091505,0.3093674,0.3095836,0.3097993,0.3100142,0.3102286,0.3104424,0.3106556,0.3108681,0.3110801,0.3112915,0.3115022,0.3117124,0.311922,0.312131,0.3123395,0.3125473,0.3127546,0.3129613,0.3131674,0.313373,0.313578,0.3137825,0.3139863,0.3141897,0.3143924,0.3145947,0.3147964,0.3149976,0.3151982,0.3153982,0.3155978,0.3157968,0.3159953,0.3161933,0.3163907,0.3165876,0.3167841,0.3169799,0.3171753,0.3173702,0.3175645,0.3177584,0.3179517,0.3181446,0.318337,0.3185288,0.3187202,0.3189111,0.3191015,0.3192914,0.3194808,0.3196698,0.3198583,0.3200463,0.3202338,0.3204209,0.3206075,0.3207936,0.3209793,0.3211645,0.3213492,0.3215335,0.3217173,0.3219007,0.3220836,0.3222661,0.3224481,0.3226297,0.3228109,0.3229916,0.3231719,0.3233517,0.3235312,0.3237101,0.3238887,0.3240668,0.3242445,0.3244218,0.3245986,0.324775,0.3249511,0.3251267,0.3253019,0.3254766,0.325651,0.3258249,0.3259985,0.3261716,0.3263444,0.3265167,0.3266887,0.3268602,0.3270314,0.3272021,0.3273725,0.3275425,0.3277121,0.3278813,0.3280501,0.3282186,0.3283866,0.3285543,0.3287216,0.3288885,0.3290551,0.3292213,0.3293871,0.3295525,0.3297176,0.3298823,0.3300466,0.3302106,0.3303742,0.3305375,0.3307004,0.3308629,0.3310251,0.3311869,0.3313484,0.3315095,0.3316703,0.3318307,0.3319908,0.3321506,0.33231,0.332469,0.3326277,0.3327861,0.3329442,0.3331018,0.3332592,0.3334162,0.3335729,0.3337293,0.3338853,0.3340411,0.3341964,0.3343515,0.3345062,0.3346606,0.3348147,0.3349685,0.335122,0.3352751,0.3354279,0.3355804,0.3357326,0.3358845,0.3360361,0.3361873,0.3363383,0.3364889,0.3366392,0.3367893,0.336939,0.3370884,0.3372375,0.3373863,0.3375349,0.3376831,0.337831,0.3379787,0.338126,0.338273,0.3384198,0.3385662,0.3387124,0.3388583,0.3390039,0.3391492,0.3392942,0.339439,0.3395834,0.3397276,0.3398715,0.3400151,0.3401584,0.3403015,0.3404443,0.3405868,0.340729,0.340871,0.3410127,0.3411541,0.3412952,0.3414361,0.3415767,0.341717};

  7. #32
    Junior Member
    Join Date
    Oct 2019
    Posts
    16
    @ houtson
    Thank you very much!

  8. #33
    Senior Member ETMoody3's Avatar
    Join Date
    Mar 2014
    Location
    New Ulm, Mn
    Posts
    143
    @ houston, @ jcugnoni

    I just tried out the above posted arrays with the waveshaper and audio shield and like them very much. Thank you.

    Fwiw I got a non-halting error message about the const, once changed to simply float there were no compiler warnings.

    Musically useful.

  9. #34
    Senior Member houtson's Avatar
    Join Date
    Aug 2015
    Location
    Scotland
    Posts
    124
    @etmoody3 - thanks for the feedback

    on the error:
    - I'm using const to place the arrays in flash rather than ram. If you have a few of these large arrays of floats they quickly use up ram that you can use for other things.
    - The waveshaper object expects a float * as argument, when you create the object casting it will make the error go away e.g. waveshape1.shape((float *)wave_shape_tube_12at7, 513);

    I've got a few more waveshaper arrays that might be useful, I'll get them together and post them in a separate post rather than cluttering up this post, cheers, Paul

  10. #35
    Senior Member ETMoody3's Avatar
    Join Date
    Mar 2014
    Location
    New Ulm, Mn
    Posts
    143
    @ houston

    I'm using a teensy 4 , the impact on ram was no problem.

  11. #36
    Junior Member
    Join Date
    Sep 2019
    Location
    Sevilla, Spain
    Posts
    19
    Hi, may I ask, how do you guys control the distortion amount? with a mixer or amp before the waveshaper to change the input gain maybe?
    would like to add distortion effect to a project, but I would like to have more control than just changing the saturation type.

    Quote Originally Posted by houtson View Post
    @etmoody3 - thanks for the feedback

    on the error:
    - I'm using const to place the arrays in flash rather than ram. If you have a few of these large arrays of floats they quickly use up ram that you can use for other things.
    - The waveshaper object expects a float * as argument, when you create the object casting it will make the error go away e.g. waveshape1.shape((float *)wave_shape_tube_12at7, 513);

    I've got a few more waveshaper arrays that might be useful, I'll get them together and post them in a separate post rather than cluttering up this post, cheers, Paul
    could be using PROGMEM another solution for that?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •