-
... in, order=4, freq=440, mul=1, add=0; var df, out; order = order.asInteger; df = Dictionary[ 2->2.sqrt.reciprocal, 4->[0.924, 0.383], 6->[0.966, 0.707, 0.259], 8->[0.981, 0.831, 0.556, 0.195], 10->[0.988, 0.891, 0.707, 0.454, 0.156] ].at(ord ...
-
... iv(12)) } } +String { notemidi { var twelves, ones, octaveIndex, midis; midis = Dictionary[($c->0),($d->2),($e->4),($f->5),($g->7),($a->9),($b->11)]; ones = midis.at(this[0].toLower); if( (this[1].isDecDigit), { octaveIndex = 1; },{ octaveI ...
-
... andedWG", "Shakers", "ModalBar", "Mesh2D", "Resonate", "Whistle"); namenumber = Dictionary.new; names.do({arg item,i; namenumber[item] = i;}); } *at { arg name; ^namenumber[name]; } } StkInst : UGen { *ar { arg instNumber=6,freq=220,gate=1, ...
-
... , add) } } StkShakers : UGen { classvar shakerTypes; *initClass { shakerTypes = Dictionary[ "Maraca" -> 0, "Cabasa" -> 1, "Sekere" -> 2, "Guiro" -> 3, "Water Drops" -> 4, "Bamboo Chimes" -> 5, "Tambourine" -> 6, "Sleigh Bells" -> 7, "Sticks ...