From 3d4e8438d0b0ca637ae62b0bf9d870841c8cfda1 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 3 Mar 2019 17:01:49 +0100 Subject: .config/SuperCollider/startup.scd: Introducing the concept of additional channels (to scsynth), above the hardware in and outputs (to be defined before starting the server). Conditionally adding functions.scd, holding custom functions. --- .config/SuperCollider/startup.scd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/SuperCollider/startup.scd b/.config/SuperCollider/startup.scd index 4bf8669..1bc834d 100644 --- a/.config/SuperCollider/startup.scd +++ b/.config/SuperCollider/startup.scd @@ -87,9 +87,12 @@ if(PathName("/dev/fw1").isFile, { }; }); }); +~additionalChannels = Dictionary.with(*[\inputs -> Dictionary.with(*[]), \outputs -> Dictionary.with(*[])]); Server.local.options.numInputBusChannels = ~audioInterfaceOptions.at(\numInputs); Server.local.options.numOutputBusChannels = ~audioInterfaceOptions.at(\numOutputs); postln("Loaded settings for: "++~audioInterfaceOptions.at(\name)); +postln("Additional channels: "++~additionalChannels.at(\inputs).values++"/ "++~additionalChannels.at(\outputs).values); + //postln("Initializing and connecting MIDI devices."); //MIDIClient.init; //MIDIIn.connectAll; @@ -98,3 +101,7 @@ postln("Loaded settings for: "++~audioInterfaceOptions.at(\name)); if (File.exists(Platform.userConfigDir++"/synthdefs.scd"), { File.readAllString(Platform.userConfigDir++"/synthdefs.scd").interpret; }); + +if (File.exists(Platform.userConfigDir++"/functions.scd"), { + File.readAllString(Platform.userConfigDir++"/functions.scd").interpret; +}); -- cgit v1.2.3-70-g09d2