aboutsummaryrefslogtreecommitdiffstats
path: root/.config/SuperCollider/synthdefs.scd
blob: afa08287f75cf71fdd22d63f57fb821c5657e01c (plain)
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
postln("Adding custom SynthDefs");

// route 8 Ins to 8 Outs
SynthDef(\route8BussesToOut, {
  arg in=0,
  volume=#[0,0,0,0,0,0,0,0],
  out=0;
  Out.ar(
    out,
    In.ar(in, 8) * volume
  );
}).add;

// filter low frequency rumble on SoundIns
SynthDef(\filter8Rumble, {
  arg in=#[0,1,2,3,4,5,6,7],
      freq=20,
      out=0;
  Out.ar(
    out,
    HPF.ar(
      SoundIn.ar(in),
      freq
    )
  );
}).add;

// Mix down SoundIns to one Out
SynthDef(\mix4BussesToOut, {
  arg in=#[0,1,2,3],
      volume=#[0,0,0,0],
      out=0;
  Out.ar(
    out,
    Mix.new(SoundIn.ar(in, volume))
  );
}).add;

// Record 8 channels
SynthDef(\record8Channels, {
  arg numBuf,
  volume=#[0,0,0,0,0,0,0,0],
  in=0;
  DiskOut.ar(
    numBuf,
    In.ar(in, 8) * volume
  );
}).add;