aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-04-27 13:23:01 +0200
committerDavid Runge <dave@sleepmap.de>2017-04-27 13:23:01 +0200
commit751b118c547660318ce0d10412dbfa67067050da (patch)
treeb713ea3ec1eacf413f57f35e413846b64f0c4ca4
parent2cce7c81287e5094d14781776f6ccba7492c1385 (diff)
downloaddotfiles-751b118c547660318ce0d10412dbfa67067050da.tar.gz
dotfiles-751b118c547660318ce0d10412dbfa67067050da.tar.bz2
dotfiles-751b118c547660318ce0d10412dbfa67067050da.tar.xz
dotfiles-751b118c547660318ce0d10412dbfa67067050da.zip
.config/SuperCollider/startup.scd: Adding conditionals to check for RME Fireface800 and RME Babyface and load additional input/out configuration accordingly.
-rw-r--r--.config/SuperCollider/startup.scd17
1 files changed, 14 insertions, 3 deletions
diff --git a/.config/SuperCollider/startup.scd b/.config/SuperCollider/startup.scd
index 413d8b0..a6c1c59 100644
--- a/.config/SuperCollider/startup.scd
+++ b/.config/SuperCollider/startup.scd
@@ -1,7 +1,18 @@
-
Server.local.options.numOutputBusChannels = 2;
Server.local.options.numInputBusChannels = 2;
-if(("ls /dev/fw1".systemCmd) < 0, {
- File.readInterpret(Platform.userConfigDir++"/startupfiles/rme_fireface800.scd");
+~config;
+
+if(PathName("/dev/fw1").isFile, {
+ postln("Adding settings for RME Fireface 800.");
+ ~config = File.new(Platform.userConfigDir++"/startupfiles/rme_fireface800.scd", "r");
+});
+
+if(("aplay -l |grep Babyface > /dev/null".systemCmd) == 0, {
+ postln("Adding settings for RME Babyface.");
+ ~config = File.new(Platform.userConfigDir++"/startupfiles/rme_babyface.scd", "r");
+});
+
+if(~config.isNil.not, {
+ ~config.readAllString.interpret;
});