aboutsummaryrefslogtreecommitdiffstats
path: root/.config/SuperCollider/startup.scd
blob: 9d905a2ea8de1a1e00e93e85fa91db081228f03c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Server.local.options.numOutputBusChannels = 2;
Server.local.options.numInputBusChannels = 2;
Server.local.options.sampleRate = 48000.0;

if(PathName("/dev/fw1").isFile, {
  load(Platform.userConfigDir++"/startupfiles/rme_fireface800.scd");
});
if(("aplay -l |grep Babyface > /dev/null".systemCmd) == 0, {
  load(Platform.userConfigDir++"/startupfiles/rme_babyface.scd");
});
if(("aplay -l |grep XUSB > /dev/null".systemCmd) == 0, {
  load(Platform.userConfigDir++"/startupfiles/behringer_xusb.scd");
});
if(("aplay -l |grep 'Scarlett 18i20' > /dev/null".systemCmd) == 0, {
  load(Platform.userConfigDir++"/startupfiles/focusrite_scarlett18i20.scd");
});
postln("Loaded settings for: "++Server.local.options.device);

postln("Initializing and connecting MIDI devices.");
MIDIClient.init;
MIDIIn.connectAll;

//TODO: load all quarks from ~/git/audio automatically, don't use symlinks