From c7e753fce1b9aa36b54d78b210189df8f7be3d0c Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 3 Nov 2017 18:32:49 +0100 Subject: .config/SuperCollider/startup.scd: Adding checks and automatic configuration loading for behringer XUSB and Focusrite Scarlett 18i20. --- .config/SuperCollider/startup.scd | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.config/SuperCollider') 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 -- cgit v1.2.3-54-g00ecf