From adb2bf9c112f52032f115752d2921a3f60387bb3 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 11 Jan 2018 15:48:34 +0100 Subject: .config/SuperCollider/startup.scd: Adding proper Dictionary based setups to all available internal and external sound cards, so ClassLibrary will get compiled successfully. --- .config/SuperCollider/startup.scd | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to '.config/SuperCollider/startup.scd') diff --git a/.config/SuperCollider/startup.scd b/.config/SuperCollider/startup.scd index 2945522..5815eaa 100644 --- a/.config/SuperCollider/startup.scd +++ b/.config/SuperCollider/startup.scd @@ -29,20 +29,41 @@ if(PathName("/dev/fw1").isFile, { // case defining name, number of input and output channels and a Dictionary // holding Symbols for accessing groups of inputs and outputs by name ~audioInterfaceOptions = case + { + ~alsaDevices.contains("PCH") + }{ + Dictionary.with(*[ + \name->'Internal', + \numInputs->2, + \numOutputs->2 + ]) + } { ~alsaDevices.contains("Babyface") }{ - ['RME Babyface', 12, 10] + Dictionary.with(*[ + \name->'RME Babyface', + \numInputs->10, + \numOutputs->12 + ]) } { ~alsaDevices.contains("XUSB") }{ - ['Behringer XUSB', 32, 32] + Dictionary.with(*[ + \name->'Behringer XUSB', + \numInputs->32, + \numOutputs->32 + ]) } { ~alsaDevices.contains("Scarlett 18i20") }{ - ['Focusrite Scarlett 18i20', 20, 18] + Dictionary.with(*[ + \name->'Focusrite Scarlett 18i20', + \numInputs->18, + \numOutputs->20 + ]) } { ~alsaDevices.contains("Fireface UFX ") @@ -76,5 +97,5 @@ postln("Initializing and connecting MIDI devices."); MIDIClient.init; MIDIIn.connectAll; -//TODO: load all quarks from ~/git/audio automatically, don't use symlinks +//TODO: use Quarks interface to install/update needed Quarks instead of symlinking. -- cgit v1.2.3-54-g00ecf