aboutsummaryrefslogtreecommitdiffstats
path: root/.config/SuperCollider
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2019-03-03 17:01:49 +0100
committerDavid Runge <dave@sleepmap.de>2019-03-03 17:01:49 +0100
commit3d4e8438d0b0ca637ae62b0bf9d870841c8cfda1 (patch)
treea3817b053634529f05801c936a893ff82205a783 /.config/SuperCollider
parent3f6de062dfd39906b461b095afbba6ccdd3b0e5b (diff)
downloaddotfiles-3d4e8438d0b0ca637ae62b0bf9d870841c8cfda1.tar.gz
dotfiles-3d4e8438d0b0ca637ae62b0bf9d870841c8cfda1.tar.bz2
dotfiles-3d4e8438d0b0ca637ae62b0bf9d870841c8cfda1.tar.xz
dotfiles-3d4e8438d0b0ca637ae62b0bf9d870841c8cfda1.zip
.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.
Diffstat (limited to '.config/SuperCollider')
-rw-r--r--.config/SuperCollider/startup.scd7
1 files changed, 7 insertions, 0 deletions
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;
+});