// title: Re: Semi-Random Glitch SynthDef // author: chuzoup // description: // 根據 Semi-Random Glitch SynthDef 的 code 進行一些微小的改動,隨意更換 `sig` 中的來源波形總是會有意想不到的效果。 // // --- // // With some minor changes to the code of "Semi-Random Glitch SynthDef", changing the source waveform held by `sig` can always have unexpected results. // code: ( SynthDef(\250102, { arg freq = 60, index = 1000, tRate = 5, aRate = 100, rate = 10, out = 0; var t_trig = LFPulse.kr(0.5 / tRate, 0.5); var noise = Hasher.ar(LFNoise0.ar(rate)); var sig = Saw.ar( freq + (noise * index), Decay.kr(Impulse.kr(aRate), noise * 0.01) ).tanh; FreeSelf.kr(t_trig); sig = Pan2.ar(sig, noise.range(-0.8, 0.8)); sig = FreeVerb.ar(sig, 0.4); Out.ar(out, sig); }).add; ) ( Pbind( \instrument, \250102, \freq, Pfunc({ 2000.rand }), \index, Pfunc({ 10000.rand }), \rate, Pfunc({ 10.rand }), \aRate, Pfunc({ 10.rand }), \tRate, 3 ).play; )