aboutsummaryrefslogtreecommitdiffstats
path: root/.config/SuperCollider
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-11-03 18:32:49 +0100
committerDavid Runge <dave@sleepmap.de>2017-11-03 18:32:49 +0100
commitc7e753fce1b9aa36b54d78b210189df8f7be3d0c (patch)
tree26a58ebf604cfc44e6e4e5d8cf45fd3ec70a8ca7 /.config/SuperCollider
parentebb08ebba9b25aa3d37870853e6463bc430eef08 (diff)
downloaddotfiles-c7e753fce1b9aa36b54d78b210189df8f7be3d0c.tar.gz
dotfiles-c7e753fce1b9aa36b54d78b210189df8f7be3d0c.tar.bz2
dotfiles-c7e753fce1b9aa36b54d78b210189df8f7be3d0c.tar.xz
dotfiles-c7e753fce1b9aa36b54d78b210189df8f7be3d0c.zip
.config/SuperCollider/startup.scd: Adding checks and automatic configuration loading for behringer XUSB and Focusrite Scarlett 18i20.
Diffstat (limited to '.config/SuperCollider')
-rw-r--r--.config/SuperCollider/startup.scd11
1 files changed, 8 insertions, 3 deletions
diff --git a/.config/SuperCollider/startup.scd b/.config/SuperCollider/startup.scd
index 8406ad5..4d51dbf 100644
--- a/.config/SuperCollider/startup.scd
+++ b/.config/SuperCollider/startup.scd
@@ -3,12 +3,17 @@ Server.local.options.numInputBusChannels = 2;
Server.local.options.sampleRate = 48000.0;
if(PathName("/dev/fw1").isFile, {
- postln("Adding settings for RME Fireface 800.");
load(Platform.userConfigDir++"/startupfiles/rme_fireface800.scd");
});
-
if(("aplay -l |grep Babyface > /dev/null".systemCmd) == 0, {
- postln("Adding settings for RME Babyface.");
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);
+//TODO: load all quarks from ~/git/audio automatically, don't use symlinks