-
Notifications
You must be signed in to change notification settings - Fork 0
/
tidalserver.scd
172 lines (97 loc) · 3.38 KB
/
tidalserver.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
Server.killAll;
ServerOptions.outDevices
ServerOptions.inDevices
s.options.numInputBusChannels = 4
// Legacy
Server.default.options.outDevice_("Multi-Output Device");
Server.default.options.outDevice_("Soundflower (2ch)");
// Send to Mixer
Server.default.options.outDevice_("USB Audio CODEC");
// Send to headphones
Server.default.options.outDevice_("Built-in Output");
Server.default.options.inDevice_("USB Audio CODEC");
// Send to Focusrite
Server.default.options.inDevice_("Scarlett2i4 USB")
Server.default.options.outDevice_("Scarlett 2i4 USB")
// WONDERVILLE - CORTLAND's MIXER
Server.default.options.inDevice_("ZEDi10")
Server.default.options.outDevice_("ZEDi10")
// HDMI
Server.default.options.outDevice_("HDMI")
Server.default.options.inDevice_("Built-in Microph");
Server.default.options.outDevice
s.options.numOutputBusChannels = 12;
SuperDirt.start
SuperDirt.stop
s.record
s.stopRecording
~dirt.loadSoundFiles("/Users/Srinivasan/Music/samples/*");
//
// dirt.loadSoundFiles("/Users/Srinivasan/Music/Samples/TS-UndergroundVinylVol1/");
//
// ~dirt.loadSoundFiles("/Users/Srinivasan/Music/Samples/2020/*");
//
// ~dirt.loadSoundFiles("/Users/Srinivasan/Music/Samples/Burial/*");
//
// MIDI STUFF
MIDIClient.init;
~microkorg = MIDIOut.newByName("UM-ONE", "UM-ONE");
~blofeld = MIDIOut.newByName("Blofeld", "");
~dirt.soundLibrary.addMIDI(\microkorg, ~microkorg);
~dirt.soundLibrary.addMIDI(\blofeld, ~blofeld);
// TEMP JAM
~blofeld = MIDIOut.newByName("UM-ONE", "UM-ONE");
~dirt.soundLibrary.addMIDI(\blofeld, ~blofeld);
~blofeld.latency = 0
~microkorg.latency = -0.65;
OSCFunc.trace(false, true)
// print just play2 messages
OSCFunc.new({|msg, time, addr, recvport| msg.postln},'/play2')
Quarks.install("https://github.com/thgrund/tidal-looper.git")
s.start
// ~dirt = SuperDirt(2, s);
~looper = TidalLooper(~dirt);
~dirt.start
//
{ SoundIn.ar([0, 0]) }.play;
{ SoundIn.ar([1, 1]) }.play;
// 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;
)
// MULTI-CHANNEL EXPERIMENTS
s.options.memSize = 65536;
s.options.numOutputBusChannels = 2;
// Server.default.options.outDevice_("Soundflower (64ch)");
Server.default.options.outDevice_("Built-in Output");
~dirt = SuperDirt(1, s); // two output channels, increase if you want to pan across more channels
~dirt.start(57120, (4..16));
~dirt.loadSoundFiles("/Users/Srinivasan/Music/samples/*");
~dirt.loadSoundFiles("/Users/Srinivasan/Music/samples/eu_tour_samples/*");
SuperDirt.start
Quarks.install("https://github.com/florian-grond/SC-HOA")
Platform.userExtensionDir
s.options.outDevice_
// try different orders up to 5 and watch the scope window.
HOADecLebedev50.loadHrirFilters(s);
~order = 1;
// s.scope((~order+1).pow(2));
(
{
HOADecLebedev50.ar(~order,
HOAEncoder.ar(~order, SoundIn.ar(0)), hrir_Filters: 1 )
}.play
)
"/Users/Srinivasan/Music/reckoner-live/synthdefs1.scd".load()
s.options.memSize = 131072;
s.options.numOutputBusChannels = 8;
Server.default.options.outDevice_("SERIES 208i");
~dirt = SuperDirt(8, s); // two output channels,
~dirt.start(57120, (0..7));
// PARIS
"/Users/Srinivasan/Music/reckoner-live/paris.scd".load()