-
Notifications
You must be signed in to change notification settings - Fork 0
/
livecode.scd
80 lines (62 loc) · 1.14 KB
/
livecode.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
71
72
73
74
75
76
77
78
79
80
//TODO: test unpatched synths reset
(
~timelinesCmdPeriod = {
s.quit;
~numChannels = 2;
~panWidth = 2;
~panOrientation = 1.5;
s.options.numBuffers = 2048;
s.options.numOutputBusChannels = ~numChannels;
s.options.memSize = 8192 * 10;
s.options.numOutputBusChannels = 10;
//s.sampleRate = 48000;
TimeLines.start(~numChannels, s, {"hello from the outside!".postln});
};
~timelinesCmdPeriod.value;
)
(
~x = {PinkNoise.ar(0.2)!2}.play;
)
~x.free
s.record("C:\\Users\\Carl\\Desktop\\monkeyStuff.wav");
(
s.stopRecording;
)
(
s.meter;
s.plotTree;
)
// REVERB
(
~timelines.reverbSynth.set(
\predelay, 0.13,
\revtime, 1.1,
\lpf, 4500,
\mix, 0.45
);
)
// COMPRESSOR
(
~timelines.compressorSynth.set(
\thresh, 0.1,
\slopeBelow, 1.0,
\slopeAbove, 1.0,
\clampTime, 0.01,
\relaxTime, 0.1
);
)
/*
1. Start SuperCollider
2. Start Emacs
3. Start a TimeLines GHCi session with one synth (?)
4. Run 'TimeLines.start' here
*/
''
/*
TODO:
- Automatically plug synths to main output if they haven't been plugged anywhere else
- Sort out channel numbers w/ busses
-
*/
~timelines.bufferDict['s1_fm_freq'].plot
~timelines.bufferDict['s1_fm_ratio'].plot