diff options
author | David Runge <dave@sleepmap.de> | 2018-01-11 15:48:34 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2018-01-11 15:48:34 +0100 |
commit | adb2bf9c112f52032f115752d2921a3f60387bb3 (patch) | |
tree | 7ff812c778ef0efc1d7dce0424cac7df2ef61202 /.config/SuperCollider | |
parent | 1720556c1663336870d0e513f0893fc9abfe7ca7 (diff) | |
download | dotfiles-adb2bf9c112f52032f115752d2921a3f60387bb3.tar.gz dotfiles-adb2bf9c112f52032f115752d2921a3f60387bb3.tar.bz2 dotfiles-adb2bf9c112f52032f115752d2921a3f60387bb3.tar.xz dotfiles-adb2bf9c112f52032f115752d2921a3f60387bb3.zip |
.config/SuperCollider/startup.scd: Adding proper Dictionary based setups to all available internal and external sound cards, so ClassLibrary will get compiled successfully.
Diffstat (limited to '.config/SuperCollider')
-rw-r--r-- | .config/SuperCollider/startup.scd | 29 |
1 files changed, 25 insertions, 4 deletions
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 @@ -30,19 +30,40 @@ if(PathName("/dev/fw1").isFile, { // 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. |