randLFO

description
Author: Remco van der Most
License: BSD
Github: sss/lfo/randLFO.axo

Inlets

frac32 pitch controls the frequency of the oscillator

frac32 multiplies the stepsize through the seeded random list

frac32 controls the chance that the waveshape changes amplitude

int32 sets waveform bit-length

int32 offsets the random seed readout

bool32 randomises amplitudes of the waveshape-steps

bool32 randomises the positions where waveshape changes amplitude

bool32 active

Outlets

frac32 out

Parameters

frac32.u.map smooths randomisations, morphing the waveshape

frac32.u.map controls the chance that the waveshape changes amplitude

frac32.u.map multiplies the stepsize through the seeded random list

frac32.u.map mixes between seeded random and randomised waveshape

bool32.mom randomises amplitudes of the waveshape-steps

bool32.mom randomises the positions where waveshape changes amplitude

frac32.s.map.pitch pitch controls the frequency of the oscillator

int32 sets waveform bit-length

int32 offsets the random seed readout

int32 divides the stepsize through the random list, decreasing the steps of the seeded waveshape

Declaration
int32_t array[64];
int32_t arrey[64];
int32_t Position[64];
int32_t pesition[64];
int i;
int j;
int rtrig;
int ntrig;
int utrig;
uint32_t phase;
int64_t sum;
int32_t LP;
int32_t HP;
int64_t max;
int dtrig;
int32_t DC;
int32_t hold;

int32_t seed[2048] = {
    19679233,  -66085571, 42060760,  -59947686, -46519000, 14309853,  -11929471,
    40118878,  12039315,  35367005,  9184550,   -36718209, 66777768,  12396406,
    -55034243, -63147921, -6018798,  -6731133,  52584445,  42231219,  23111412,
    4042839,   49569528,  -51299360, -37727152, 55415002,  40632911,  6880445,
    -51540025, 42026261,  37656580,  23019119,  37449850,  -50226664, -29602357,
    45839396,  14210192,  39199469,  -16649928, -37285338, -24274501, 54712206,
    482938,    -52730868, 59276750,  -154067,   59178358,  -61803252, -45480371,
    -65930808, -55576215, 65416309,  -51319853, -51582287, -36774579, -65462969,
    52735062,  40345781,  -21254415, -13972190, -62355094, -28618006, -2742203,
    4164312,   -37169601, -63783984, -22351049, -32020676, 39399561,  -43642042,
    -42345827, -7343274,  -26286454, 58652475,  -11469291, -42948586, -8821695,
    -21126194, 20995857,  32860129,  -65621370, 30222964,  -9742487,  45495635,
    59061489,  5413104,   37609070,  -1223611,  18929465,  -44611989, -39927826,
    65170847,  49256420,  24410992,  33878614,  -20737774, -1267366,  49561245,
    -23389523, 58975173,  -33185327, -42747661, 37274609,  -8349154,  -60607245,
    5938509,   42241885,  -56038515, 52295393,  5533714,   -63239695, -65985737,
    -14634013, 11008887,  56981662,  -12426269, 63282180,  -44791581, -58503705,
    1408221,   2967413,   -65917529, -48117530, -15184278, 62439253,  -26647786,
    28545211,  -40593197, 30402487,  65379149,  50417375,  41536945,  3033800,
    12558986,  -7063549,  8979165,   -48942808, 21643838,  61314216,  64592068,
    25557289,  17748513,  19402570,  46925465,  770210,    -39933832, -1891440,
    -19482173, 17052255,  -66263562, 33432868,  53327139,  -4551189,  10659861,
    -6419253,  -9700430,  -34348420, -15427192, 55065407,  65663714,  -50504214,
    -9051073,  -27081197, -44962057, -58132361, -37387813, 53132999,  -66122518,
    59797698,  -3459979,  58429320,  -22095240, 66176220,  61809172,  20426373,
    21341709,  -1795350,  -24616390, 61168112,  61643424,  24640837,  47368790,
    -59688591, -46444087, -21898002, -51217128, -20344002, -51848348, 4184999,
    -61546323, -18286151, 52521124,  -53188056, 57115074,  36264107,  61629474,
    -48374195, 42112574,  61126833,  -27896534, -25991165, 53829091,  44467993,
    -2516574,  -22147476, 60327870,  -5819375,  -19168588, 50927302,  -31945316,
    -48917726, -17103045, 45586139,  9064398,   46164012,  64316011,  -32985249,
    62298949,  -52878632, 61769347,  -41087624, -10532314, 50522596,  -60654588,
    51703748,  1622023,   24565060,  12008593,  60110365,  -18505276, -2129149,
    -60223222, -18166645, 47488161,  21127915,  -34015850, 27079330,  -55461874,
    -19414814, -7741082,  67033805,  57078911,  -57700936, -55885192, -45060146,
    30734062,  18128202,  24248260,  -30188575, 40704841,  47494380,  24345815,
    56673626,  18512678,  61312104,  16561965,  -49163811, 44985713,  -41004856,
    10236897,  -61014769, -66446222, 31489108,  2743863,   5156383,   -2381036,
    -53900699, -355684,   48358707,  60607563,  -64432958, -42397912, 20665652,
    -4619202,  -53973771, -18416807, 31962222,  43428721,  -42110021, 53886146,
    -23790661, -38436834, 63153088,  44049179,  42361352,  -64089796, 2477250,
    27494256,  8634763,   28690134,  -31721556, -15427413, -6035547,  -38264271,
    -47450237, 9551374,   -40766669, 33750799,  47047099,  -52108405, 57931898,
    27433350,  -39739252, 17451408,  -26342523, -47247156, 64891879,  -23619575,
    55761348,  -40306607, -50955101, 39720097,  -19682782, 5340826,   5159479,
    -3954615,  4343861,   25882560,  61262278,  4402035,   -3109383,  145395,
    19072833,  -63803419, 66323890,  -14288354, -6821233,  -54270204, 5646000,
    2915738,   55090120,  27312690,  43567900,  -30790884, 52003712,  43448859,
    55444302,  -55397410, 32054732,  37347706,  47284925,  -8507242,  -57862802,
    -44309659, 45306873,  3957291,   3365044,   -46348366, 61192757,  -54455077,
    -9089485,  20453784,  -53391616, 19854978,  51983062,  -14976524, -32622551,
    22177288,  -55096069, 35687504,  66822882,  -21583467, 24048144,  49862895,
    43483374,  -26591642, 50195663,  51322027,  -41584162, 63525914,  3133203,
    51095970,  -16180580, -39282512, -12111512, -37136655, -64025691, -13008091,
    -64284358, 34419488,  -53793366, 25141371,  55070173,  -28842303, -43235875,
    -12652303, 57166969,  28549233,  -14343839, -58076471, -30866382, 66846543,
    -36300309, -6507300,  -52169094, 43046731,  -10092192, -43884125, -58709789,
    -42022720, 42240008,  -47786077, -15180210, -62456135, -25137168, -15492591,
    39081042,  30981701,  -47334738, -51655723, 57132236,  38637419,  240751,
    41624113,  8962214,   -46505516, 33806131,  -3611247,  3249327,   -51967498,
    59552405,  9243185,   53182508,  -56882909, 21106879,  56696877,  53129601,
    23092850,  15971073,  47661910,  -36119849, 51382128,  -57182460, 7381099,
    -12808644, 34169419,  28632906,  -28470368, -22535575, -47012962, -3587950,
    31378183,  -55751724, 19782844,  -18540041, 64825761,  -66806537, 26811712,
    17206561,  -546177,   61112313,  48996293,  35899906,  25876422,  27618126,
    58355653,  -1844610,  50034955,  -65557079, 63751101,  50705382,  -51476585,
    -16901116, 58701491,  61670934,  -58883985, -20976056, 46321802,  -35878072,
    -53792696, 21668141,  -42772502, -16842604, -5562423,  18681412,  28608089,
    59324782,  54958061,  -56657985, -26185503, 40471482,  30915258,  -41372978,
    55943910,  36381143,  -14898541, 42930823,  53041313,  -57650964, 62526197,
    -514913,   -43925936, -33212153, 9917110,   36816666,  35174282,  4141863,
    5088090,   34534383,  57375407,  -3145582,  51446889,  48301558,  -50019810,
    -15834153, -26580451, 41037743,  -8353384,  33819017,  29591444,  -36229547,
    -39599781, -66872582, -35920670, 4062324,   -13272452, 33076364,  -8754973,
    -19741105, 465438,    -49619401, 43941490,  20948651,  14777255,  18861359,
    34990772,  27804323,  -42268188, -13723883, 49097942,  48078161,  -14344911,
    20680461,  -63082579, -42061189, -45088094, 12989098,  30876895,  -46988910,
    -38618164, -59991556, 33373156,  -27038000, 12035629,  -27787092, 17031428,
    -19613955, -16804060, 48839712,  33748385,  21655926,  28029350,  42277668,
    43160170,  -11223388, -42941675, 29941839,  -46918704, 37093333,  -5569564,
    -38325589, 38783709,  31730389,  60232477,  49115510,  -26159412, -9705539,
    65574655,  39757483,  -28313080, -52045013, 51206216,  -24229259, 12667329,
    26232613,  -7522272,  64656161,  -12120040, -35954151, -55446494, 31335972,
    -50759639, 61429718,  -2382309,  -65465392, -59396974, -17645410, 9818843,
    -34442230, -37892163, -19924894, -38286489, 23976333,  26341374,  62620489,
    -53763071, -65653226, 50267723,  -55376613, -18355609, -6228742,  -45807313,
    19364454,  -25354443, 18729998,  -28343932, -17407091, -33621388, 39863452,
    -11187465, -53805674, 32383454,  -9516710,  24854252,  -33492614, -51029092,
    14954763,  -26016031, 51898589,  24275967,  -1611453,  -30903625, 61261107,
    -49379066, 20683177,  -54038593, 2250686,   -47134047, -21414734, 5564007,
    57506605,  50481490,  -49353535, 17002806,  45944919,  -12084684, 26159850,
    50198662,  -62819389, 4407915,   20055828,  28782553,  -9185945,  46809608,
    -54926363, -45265473, 38168667,  -22598400, 7563988,   -11490380, 31390901,
    -12027828, 35821479,  -12392889, -41351949, -48700472, 63208522,  5856942,
    29057400,  -21314880, -66911681, 50610490,  -48777715, -39387601, 7655376,
    30016590,  -38929572, 42881328,  -24802178, 7865727,   -24117089, -62996963,
    64087711,  -22778796, -936808,   -36617112, 54804239,  -60525381, -148151,
    27257222,  66550438,  -40136271, 30363612,  10767127,  64351580,  50224175,
    40006518,  23653438,  -54258646, -488647,   8600693,   -62091169, 19747266,
    26797706,  22942436,  23977492,  27799722,  -8634234,  6030414,   -42049951,
    28719449,  -29325453, 58455661,  6372897,   -34490499, -36027085, -66065957,
    -23739005, -1608939,  4877261,   5185450,   6049549,   -7265162,  29444987,
    -7958389,  -46938637, -57743224, 64797283,  57086515,  -38837835, -11274736,
    49396343,  31531428,  -8134246,  -6368884,  33803620,  -61506984, 65366539,
    -54372100, -15583408, 33288683,  -30223903, -9935811,  -44994621, -9367207,
    -6525535,  3792920,   27394958,  -60768417, -17579332, 45359667,  -43874376,
    -56217627, -45887873, 43860239,  26760507,  42788180,  -19458968, -51129740,
    26657277,  -18805090, 34346456,  15064818,  7845792,   10083571,  -61030733,
    4804767,   -34490207, -10005351, 59052606,  -24218012, -26989688, 16097589,
    51409418,  -11919438, -22514778, 8951495,   56106307,  13989536,  49903535,
    -8428599,  -21224887, 21431213,  48544676,  -50800395, 66561417,  45677608,
    -7079091,  15789774,  19865746,  9674365,   7935273,   -46682136, -19866700,
    66090278,  48198896,  -38826390, -60617368, -14626810, 57387669,  58950776,
    -63209709, -28311648, 65177800,  -54986659, 52082452,  -42693136, 52256229,
    -60117828, -16845690, -805199,   -2016548,  53166962,  -36426249, 57856499,
    34445364,  -58478583, -26130152, 18757414,  -51833879, 16352401,  41020013,
    5295528,   53570130,  -50657284, -26429114, 39678914,  61178721,  -44815784,
    -56067924, -48758965, 52746409,  31809951,  46489904,  -26841950, 20579968,
    -9434719,  63853990,  -14053714, -18156584, 26012234,  -67020577, 57146884,
    -12987851, -28164626, -33896745, -38237117, -7916705,  -17305040, 42989601,
    45169088,  32756244,  51682853,  56731646,  -39599311, -52357886, -55414670,
    -57555483, -36095552, -14956414, -10479189, -6031124,  41776585,  66564473,
    -35563319, 66523526,  -17199355, 47232969,  -49598671, -57047780, -50915714,
    58235089,  -50913355, -34015473, 47954470,  2902928,   -64028524, -44640844,
    -30698479, -48305195, 2852015,   -3923829,  -4545124,  -41320046, 4978114,
    47059360,  9806775,   55225859,  61574202,  34341343,  15574911,  32195562,
    -44585166, 10578999,  63044670,  12764240,  29436978,  39429125,  30705736,
    56664799,  -25609468, -14121914, 64060652,  34035159,  -7747425,  12093419,
    -47591659, 21755332,  -6156699,  63677887,  -54295790, -9079833,  56930367,
    -30866664, 66477754,  -647019,   51997095,  4012286,   36039702,  5914814,
    -8927304,  -617638,   -34035237, -41907449, 24561449,  20447327,  60458094,
    49659716,  -45865508, -64696932, -46046862, -6793995,  -1933660,  -55772335,
    23554015,  -2671671,  -30114255, 54758827,  -31755808, -34036302, -19084527,
    17688795,  20753354,  50225975,  53074957,  44962096,  -32017789, -1978195,
    -37760636, 63662663,  40468171,  -39510818, 41849216,  -60845564, -64814526,
    -60394790, 49257973,  -22213809, -60212289, -20545514, -29010919, -49852360,
    -65329704, -27710392, -54818437, -21695009, -12533508, -39694638, 4479541,
    -62943627, 36688067,  2915840,   32797520,  -23413495, -21864316, 24623796,
    -63256487, 13230063,  -56279273, 23795486,  -53926600, 56921736,  39411498,
    38467898,  63435362,  -4694990,  -10712327, 48759660,  -53883945, 56126790,
    16029198,  53538016,  -13772825, -5969739,  66857099,  -2173819,  -3317689,
    25115757,  -32486928, 17044568,  -58752436, -28751469, 1470386,   -48867459,
    40228262,  -21769449, -52709079, 15274580,  -39277666, 13548878,  -40915152,
    -33099993, -1395702,  -13112183, -21868636, -49467105, -64620041, 3259967,
    -1049922,  -28793319, 66649141,  23998989,  7519614,   -6403334,  -50011091,
    51967470,  -5668504,  -53272235, 7703448,   38330372,  -8935477,  -53111707,
    -27356770, 59406856,  63952141,  -22517956, -25055967, -39932563, -28610664,
    -24097075, -7156225,  -13871862, -13022484, 22855977,  -55904188, -29317886,
    -60003856, -50026632, -45169558, -29317174, 39083353,  25077062,  33033132,
    45312183,  -66894165, 26112448,  -33016014, 35550523,  55395421,  2292045,
    -19212007, -10791719, -39522026, -28831400, -26574593, -17046942, -36953268,
    -20539680, 551812,    -62998760, 26631046,  38621914,  -28743635, -60728445,
    2175028,   -5476197,  39555874,  -42965719, -46596518, -7702396,  16730534,
    -17295724, 35505027,  -33190938, 39902864,  48442269,  -36826102, 60991817,
    7834801,   -28685102, 19716631,  -10981455, 7569399,   -51092264, 38898439,
    -32023744, -29250433, 30544211,  58914789,  4747069,   21430402,  -33972006,
    -45049879, 2106532,   4049217,   -66609784, -37155761, -35779671, -23219835,
    -49124098, -65452285, -13192465, 54148507,  45579673,  -31152929, 20852901,
    -33657245, 12482861,  9637274,   -26227436, 32924925,  -42747520, -28875256,
    -61885668, -2370835,  -20705232, -2865162,  60314160,  59814167,  -42755366,
    19374104,  -62102214, 26147318,  -51931677, -12975441, -59111326, -19825820,
    2936069,   -54514245, -13468357, 30397586,  49713587,  24359459,  -54072313,
    1923727,   -4085331,  -40127911, 54967672,  33034488,  23350496,  37079654,
    11585347,  -54541446, -35457750, 57935179,  30507996,  61373888,  24196451,
    19768842,  58192715,  40686812,  45789616,  -48413881, -5729983,  -32501798,
    -60147022, 51658988,  45464633,  -49467344, 20124417,  4313445,   -52030316,
    -22235094, -52003140, 61707463,  50535805,  -1529480,  34215104,  38455140,
    18692942,  19277233,  -43657719, -63170147, 54864111,  28469985,  -47762498,
    37283189,  35386946,  55766524,  62062356,  -63363140, 21050872,  -54730809,
    -40115830, -38698696, 19652668,  37975691,  -34388218, 22719272,  -8540954,
    33739216,  -33427358, 51347766,  -45430071, -53562071, -16467477, 64781148,
    47770256,  -11971515, 37331891,  -6354853,  -53471544, -11564656, 40105636,
    -8596658,  -20944309, 64064900,  -48972501, 18078542,  -19401724, 506468,
    57920475,  -61343436, 20737542,  10962386,  51033683,  -41608992, 64941815,
    54318554,  29821812,  763357,    -20316176, 6027382,   -35691944, -59242142,
    54865692,  -23147912, 62461543,  19968110,  25406257,  -11497697, -33354189,
    12998900,  -46505596, -20724434, -5259302,  13922121,  -29882745, 43684978,
    10993364,  23237423,  43234982,  45171997,  -38258597, -24554611, -15988153,
    -17611555, -11127833, 25991470,  -36521519, 46607136,  -38528893, 36292179,
    -38196645, -57860308, -21966220, -3624493,  9569330,   13060053,  -12021072,
    -59856884, 44384469,  11573149,  -34678733, 30094683,  -20275000, 2897520,
    54796440,  -27741877, -41122886, -25955270, 17247307,  18760476,  -46784117,
    37904933,  9624627,   23612592,  58460349,  60397553,  35917439,  41228069,
    -48998596, -64017730, 29298056,  45709559,  -66115637, 30593177,  -7077829,
    28464540,  39275984,  -29717354, 59417799,  -66935410, -59228958, -45621977,
    3790212,   37261153,  11434354,  -52851126, -33269757, 65920365,  19612814,
    -46932287, -62379950, -29349676, 37306125,  47056131,  -32193039, -35868758,
    20900932,  48538098,  -35588539, -37900029, -50901569, -29110352, -54996520,
    -64543856, 64882539,  50375614,  -43521478, 14371412,  48083580,  9941117,
    44115363,  -16028383, 9170133,   -1834110,  -55676222, 21163246,  28130324,
    44637688,  -50609059, -37003496, 20399992,  17135877,  -16664257, 67070174,
    19773463,  -18541321, 56146549,  35771797,  -2510564,  -56476331, -3475026,
    61872716,  28326180,  22374532,  46742118,  42957534,  46830731,  -41533860,
    -8393225,  -59415533, 420733,    7467596,   -37447991, -7996823,  60172645,
    -53127109, -56632933, -25196481, 20219018,  17501128,  -447950,   -1978026,
    14962562,  65865479,  -58268685, 41548815,  -18363987, 7833569,   -45889783,
    5582447,   49921732,  13618447,  -34741255, 49589319,  6922058,   58850569,
    -36568202, 33965645,  57534681,  37274225,  -43225089, -3814356,  -52487132,
    16737765,  32761305,  -28706701, 10873255,  -46946738, -53227794, -65737068,
    -48065916, -17343041, 8813774,   -46821486, 23938564,  30730311,  7223401,
    -64035356, 54512786,  -25939753, -48597342, 47422582,  -3149429,  -57906933,
    -43490001, -62477183, 21343139,  8906322,   11763311,  -6959057,  -17534772,
    -34848782, 56107891,  55305211,  -51077388, -27603589, 61441274,  -45084003,
    -30811375, -12113576, -52494959, 60554671,  -29296969, -12841921, 47795219,
    65969549,  17527636,  45435004,  -20217056, 40367663,  -55515154, -4938833,
    -50002697, -66302528, -32841348, -38236650, -43321445, -60196369, 30224651,
    -20172666, 64859491,  -43542417, -60595252, 9440043,   -41431967, -1380037,
    -54550212, -31044429, -47732840, -6508469,  40007066,  56806691,  -48176716,
    1632106,   -52632645, -3454160,  56599092,  21404138,  -29109928, -26783883,
    -54717389, 50339827,  -39470007, -6508473,  -25962761, 56491130,  36049058,
    -44616188, 19172178,  -62465107, 49225084,  -45955255, -21192322, 31312004,
    38442013,  50168335,  53326124,  25712621,  33972537,  36274247,  65256750,
    -21193234, 17041392,  -59021342, -40740897, 13064886,  47334183,  -42931665,
    -31269553, 36562110,  -8687712,  58635615,  38653585,  -33944808, -48422709,
    -27437622, 39981596,  -58160195, -19289359, -26276207, -26619950, -28369036,
    14291141,  -5971795,  50162978,  575459,    61597445,  -50121219, 1224686,
    7168060,   -1054400,  -35867708, -2621147,  -17519863, 31926182,  -17087902,
    37400474,  -21419614, -14057957, -28765687, 42234502,  -55120961, 41071975,
    -54572811, 61179263,  -17644934, -33241967, 34480129,  51635799,  34669059,
    -22706894, -60857152, 22818217,  -19330373, 10237238,  -25514540, -59749132,
    20042418,  58673157,  28430357,  2135016,   4583892,   -22824740, 61336711,
    -52665893, 53594090,  -46455497, -1660785,  -29995630, 29990222,  29604449,
    62347108,  -59472449, -26592290, -53108385, -22496165, 37379091,  23141678,
    -38382892, -58519027, -5210838,  37349309,  28897354,  50387823,  23312937,
    46437617,  37476823,  42539153,  61407662,  31969470,  49129555,  55612993,
    51404579,  -36783372, -9045034,  5041080,   -23818283, 45171548,  -10918684,
    -63559516, 60588810,  -58023262, 39254528,  66391483,  35190903,  48104492,
    -15614092, 55635698,  31148983,  46865591,  -12786146, -6687033,  56732991,
    -35134313, 40294979,  -64852092, 40430112,  -37386690, -25294097, 33986881,
    -856640,   -5290624,  9895048,   16398025,  58139220,  -2264253,  -2319449,
    -14156962, -12059091, 18827935,  54268554,  15273773,  -17692392, -55327423,
    61581909,  8012585,   -41666627, 8903825,   34219328,  24575338,  52528087,
    -19198941, -38261827, -56613061, 48019694,  -33698037, 63441820,  22168674,
    -37659563, -21182528, 25402918,  65418383,  43427657,  -798163,   40595321,
    24722586,  58578699,  31143859,  -10801133, -46731395, 4254378,   -38712696,
    20728827,  36058433,  30112609,  -17161483, 61818808,  2837793,   61033014,
    -8307019,  39114699,  30140264,  -46328468, -13268795, 48138854,  -42578737,
    -61295862, 62357090,  12056332,  5648277,   48941218,  5955693,   -28904333,
    2495802,   64543039,  -56835135, 29889674,  41378285,  38512382,  -22706863,
    46622997,  55563864,  56943708,  22425195,  62956715,  35158831,  64384212,
    66451419,  39876349,  -7131070,  53055576,  36533022,  9513330,   38537457,
    43127792,  -47462761, -16340550, -52580714, 3010054,   -15090614, 27356669,
    34973072,  36734407,  39753934,  40993017,  22407852,  -11992593, 52711341,
    42570051,  3620764,   26964291,  32534501,  32162275,  -60501873, -33106462,
    -18805017, -38094789, 39930754,  -36137339, -65716795, -47126038, 47236366,
    -12663902, 7229034,   16679645,  -38885722, 50820534,  -39402990, -59407710,
    -15005754, 58894782,  46855563,  35640315,  -34158507, 54090804,  -57231684,
    23987875,  45315781,  31667912,  39037346,  65596406,  -11223607, -47978233,
    -49985837, 15757069,  17737169,  -19520455, 17607398,  -36662666, -21396382,
    48645775,  20744213,  -51459159, 55615967,  20918175,  968868,    11788353,
    -31412450, 10302740,  52815969,  14954790,  -43052427, 66040201,  40893483,
    -46388170, -4114570,  -61027111, -24402655, -28909159, -50172401, 10266691,
    -12924534, -17639860, 58312814,  -57615175, -58258475, -19824456, -59540232,
    -14884422, -42164953, -51743652, -17506050, -42334760, -38740186, 46174600,
    -31124846, 15160982,  -32059516, -22384450, -57708169, 2567820,   -4739317,
    50860386,  -30194023, 12460261,  30198034,  -35975295, -49428094, 65076038,
    57836941,  -39478762, 61575688,  -15783721, -60718492, 39958406,  41240088,
    -20560675, 63829541,  20582220,  -48808626, 1491501,   46156920,  -24720855,
    49049981,  65615015,  6178179,   -65895672, 53398455,  -56513321, 49859743,
    42065399,  30882572,  1497579,   59314704,  34525443,  18434400,  64441281,
    -40231212, -27651357, 31146643,  -42071901, -8230793,  -32896355, 39612680,
    -52233246, -37817230, 56374945,  -28354296, -41338961, 64147190,  -48295492,
    -4833183,  -10131158, -53786268, 26073471,  -35436459, -45916399, -39977025,
    -62403007, 1608377,   -41555870, 18994216,  -28164353, 48764717,  27695134,
    -13094550, -6761085,  -48277403, -31404349, -4981853,  36267307,  6672276,
    54808107,  -45715577, 64397072,  -57541247, -2360550,  -1370907,  51588631,
    11895471,  -65440084, 55129405,  -24974215, -63905933, -15494930, 52047497,
    56313128,  -59647260, -56777969, 25285733,  51866819,  14157165,  -8995527,
    -25666046, -65728246, 59746146,  31176893,  -32784897, -21730350, 16292777,
    -12115340, -56999409, 18594681,  1367137,   32756789,  -3277911,  -51801287,
    -5215143,  29221306,  -20800065, 51979258,  42968325,  -17021280, -24845473,
    -30294439, -12375708, 19016380,  19027161,  -24101490, 6193283,   25596264,
    -19547238, -62666918, 21878274,  -61983679, 43265103,  62064705,  -47139696,
    48321293,  8132767,   3621332,   -30346855, -38995591, -65636923, -10303213,
    37056206,  30299488,  -61057214, -31586393, -53199720, 42492,     -23417331,
    26268181,  -55845378, 28042490,  25131860,  30751688,  -50299957, -26151948,
    43139079,  24040249,  -29158188, -33270808, -26807383, 15428785,  -40488300,
    -50683087, 65338355,  46983057,  -26388236, 37996476,  -19962811, 34321158,
    -14220863, -47798260, -41791149, -33677552, -7720029,  -14851758, -35012402,
    -59870692, -19199005, -55221677, -19533578, 40332875,  20157035,  24248769,
    -38713313, -13653637, 23505956,  -24960387, -20034128, 47182508,  -44787644,
    6050407,   43628609,  57451578,  53171443,  -20062735, -27407135, 18419192,
    64135754,  -41690695, -15058385, -15100302, 63511974,  32673755,  51560231,
    55205835,  -31421340, 9256315,   -3040020,  22552511,  -23101955, 220839,
    -60417006, -11256955, 51381794,  26344157,  -18320933, -63818803, 49921792,
    17750884,  -19935627, -36333798, -25763741, 14138411,  16871266,  -53807373,
    46824325,  -16985094, -28318301, -5918964,  -12062852, 36459370,  21647604,
    13888593,  64160399,  -47811197, -49936854, -371565,   -47117853, 15310191,
    -25981371, -2600256,  -37831740, 29785360,  2814322,   38447310,  -15730490,
    -57699960, -27837750, 35982389,  -29599033, 3602227,   -60711687, -27202549,
    -28187471, 11227969,  53435493,  -56302906, -30153854, 2504763,   52288823,
    -64436641, -408250,   62793770,  -54321771, 14437085,  -56249943, 32614062,
    38252104,  -24693419, -41132646, 60907355};
int32_t freq;
int32_t smooth;
int32_t seed2;
Init
LP = 0;
HP = 0;
for (i = 0; i < 64; i++)
  array[i] = -(1 << 26) + (GenerateRandomNumber() >> 5);
Position[i] = (GenerateRandomNumber() >> 5);
{}
Control Rate
if (inlet_active > 0) {
  MTOFEXTENDED(param_pitch + inlet_pitch, freq)
  max = (param_max + inlet_max) > 64 ? 64 : param_max + inlet_max;
  max = 4 > max ? 4 : max;
  int randomise = param_randAmp + inlet_randAmp;
  if ((randomise > 0) && (!rtrig)) {
    for (i = 0; i < 64; i++) {
      array[i] = -(1 << 26) + (GenerateRandomNumber() >> 5);
    }
    rtrig = 1;
  } else if (!(randomise > 0)) {
    rtrig = 0;
  }

  int randomose = param_randUpd + inlet_randUpd;
  if ((randomose > 0) && (!utrig)) {
    for (i = 0; i < 64; i++) {
      Position[i] = (GenerateRandomNumber() >> 5);
    }
    utrig = 1;
  } else if (!(randomose > 0)) {
    utrig = 0;
  }

  smooth = (1 << 27) - param_smooth + 1;
  smooth = ___SMMUL(smooth << 3, smooth << 2);
  smooth = ___SMMUL(smooth << 3, smooth << 2);
  seed2 = ___SMMUL(param_seed2 << 3, param_seed2 << 2) + inlet_seed2;
  ;
  for (i = 0; i < max; i++) {
    int16_t pas = (___SMMUL((i / param_div) << 6, (seed2 << 3) + (1 << 21)) +
                   param_seed1 + inlet_seed1) -
                  (((___SMMUL((i / param_div) << 6, (seed2 << 3) + (1 << 21)) +
                     param_seed1 + inlet_seed1) /
                    2048) *
                   2048);
    arrey[i] =
        arrey[i] +
        ___SMMUL(((___SMMUL(array[i] << 3, param_SeRa << 2) +
                   ___SMMUL(seed[pas] << 3, ((1 << 27) - param_SeRa) << 2)) -
                  arrey[i])
                     << 3,
                 smooth << 2);
    pesition[i] =
        pesition[i] + ___SMMUL((Position[i] - pesition[i]) << 3, smooth << 2);
  }
}

if (inlet_active > 0) {
  phase += freq;
  uint32_t position = ___SMMUL(phase >> 1, max);
  if (pesition[position << 1] < (param_chance + inlet_chance)) {
    hold = arrey[position << 1];
  }
  LP = LP + (((hold)-LP) >> 2);
  HP = HP + ((LP - HP) >> 8);
  outlet_out = LP - HP;
}

Privacy

© 2024 Zrna Research