«Re: Semi-Random Glitch SynthDef» by chuzoup

on 03 Jan'25 07:37 in patterncode forkglitchexperimentalrandom

根據 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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(
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;
)
raw 692 chars (focus & ctrl+a+c to copy)
reception
comments