-
Notifications
You must be signed in to change notification settings - Fork 0
/
2-18-platosidea-main.scd
70 lines (51 loc) · 1.36 KB
/
2-18-platosidea-main.scd
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//Evaluate each of these blocks in order
s.makeWindow
s.meter
(
//replace path by dragging 'setup-sctidal.scd' file here.
"/setup-sctidal.scd".load;
)
(
p.push;
p.reshaping = \elastic;
~out.ar(2);
)
//check before proceeding
p
q
currentEnvironment //ideally, you should now be inside a proxyspace
//////////////////////
(
~src = {
var sig;
sig = ~dirtOut0.ar;
};
~sou = {
var src, sig, sig1, sig2;
src = ~src.ar;
sig1 = src;
sig1 = XFade2.ar(DFM1.ar(sig1, 2000, 0.3, 1, 1, 0.003), DFM1.ar(sig1, 2000, 0.3, 1, 0, 0.003), LFCub.kr(1/16).range(-1.0, 1.0));
sig2 = AllpassC.ar(src, 1, 0.5, 1);
sig2 = JPverb.ar(sig2, 3, 0.68, 3, 0.8);
sig = XFade2.ar(sig1 * LFNoise2.kr(1/2).exprange(0.1, 0.5).lag(2), sig2 * LFNoise2.kr(1/2).exprange(0.1, 0.5).lag(2), Duty.kr(1/2, 0, Dbrown(-1.0, 1.0, 0.1, inf)));
// sig = sig2 + sig1;
sig = Splay.ar(sig);
sig = Limiter.ar(sig, 0.1);
};
)
~out = ~sou
~out.play
////////Once you've evaluated ~out.play, you should head over to atom ( or wherever you're running tidal from), and evaluate everything in 2-18-platosidea.tidal in order, you should then hear sounds.
//Play with them!
/////////////////////////
//to reload samples,
q[\dirt].loadSoundFiles("/samples/*");
//but first replace path by dragging in your samples folder here
//cleanup/////////////
(
q[\dirt].free;
p.pop;
p.clear;
currentEnvironment.clear;
)
currentEnvironment