-
Notifications
You must be signed in to change notification settings - Fork 0
/
doomscroll_sessions.scd
64 lines (42 loc) · 1.98 KB
/
doomscroll_sessions.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
s.options.memSize = 65536;
Server.default.options.outDevice_("Scarlett 2i4 USB")
// Server.default.options.outDevice_("USB Audio CODEC")
Server.default.options.inDevice_("Scarlett 2i4 USB")
// ServerOptions.inDevices
SuperDirt.start
~dirt.loadSoundFiles("/Users/sumanth/Music/samples/*");
// "/Users/sumanth/Music/reckoner-live/east_asia_2024/peripherals.scd".load()
load("/Users/sumanth/Library/Application Support/SuperCollider/synthdefs/mi-ugens.scd");
load("/Users/sumanth/Music/reckoner-live/synthdefs1.scd")
// define global effects for mutable instruments effects
(
~dirt.orbits.do { |x|
var clouds = GlobalDirtEffect(\global_mi_clouds, [\cloudspitch, \cloudspos, \cloudssize, \cloudsdens, \cloudstex, \cloudswet, \cloudsgain, \cloudsspread, \cloudsrvb, \cloudsfb, \cloudsfreeze, \cloudsmode, \cloudslofi]);
var verb = GlobalDirtEffect(\global_mi_verb, [\verbwet, \verbtime, \verbdamp, \verbhp, \verbfreeze, \verbdiff, \verbgain]);
x.globalEffects = x.globalEffects
.addFirst(clouds)
.addFirst(verb);
x.initNodeTree;
};
)
~looper = TidalLooper(~dirt);
// VOCAL BYPASS
(
SynthDef(\input, {
| out, sustain=1, freq=440, speed=1, begin=0, end=1, pan, accelerate, offset, volume|
var env = EnvGen.ar(Env.linen(0, sustain, 0), doneAction: Done.freeSelf);
var osc = PitchShift.ar(SoundIn.ar(0), pitchRatio: speed);
OffsetOut.ar(out, DirtPan.ar(osc, ~dirt.numChannels, pan, env));
}).add;
)
s.record
s.stopRecording
// install this repository
// Quarks.install("https://github.com/geikha/tidal-drum-machines.git");
~drumMachinesDir = Quarks.all.detect({ |x| x.name == "tidal-drum-machines" }).localPath;
~dirt.loadSoundFiles(~drumMachinesDir +/+ "machines" +/+ "*" +/+ "*", namingFunction: { |x| x.basename.replace("-","")})
SuperDirt.default = ~dirt;
(type:\dirt, s: \rolandtr909sd, n: 0).play;
MIDIClient.init;
~ableton = MIDIOut.newByName("IAC Driver", "Bus 1");
~dirt.soundLibrary.addMIDI(\ableton, ~ableton);