diff options
author | David Runge <dave@sleepmap.de> | 2019-03-05 09:34:32 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2019-03-05 09:34:32 +0100 |
commit | 1ee10e6b733a81389d9718363deb6cf7daec79d3 (patch) | |
tree | 9c98d99dc0d0b2805f7d674688b7bad345704376 /.config/SuperCollider/startup.scd | |
parent | 688a8394f0e3f7c962da8fcb7da2002822f99de2 (diff) | |
parent | c1e5d08d58034c8b53d4789dd32983016f4a5456 (diff) | |
download | dotfiles-1ee10e6b733a81389d9718363deb6cf7daec79d3.tar.gz dotfiles-1ee10e6b733a81389d9718363deb6cf7daec79d3.tar.bz2 dotfiles-1ee10e6b733a81389d9718363deb6cf7daec79d3.tar.xz dotfiles-1ee10e6b733a81389d9718363deb6cf7daec79d3.zip |
Merge branch 'master' of sleepmap.de:config/dotfiles
* 'master' of sleepmap.de:config/dotfiles:
.config/SuperCollider/functions.scd: Minor style fixes and adding of a convenience function for MIDI, to map to a given Bus.
.config/SuperCollider/functions.scd: Adding SSR specific helper functions. Adding TODOs.
.config/SuperCollider/functions.scd: Adding simple helper functions to connect/disconnect JACK clients by name:port_name. Adding function to add additional channels (above hardware in and outputs), which automatically increments Server.local.options.num{In,Out}putBuschannels.
.config/SuperCollider/synthdefs.scd: Being more clear in the description.
.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/qtile/config.py: Adding qutebrowser to web tag. Adding Carla and Cadence to audio tag.
.config/qtile/config.py: Adding WIP for retrieving and killing compton on demand. Adding call to DIY backlight script call, instead of xbacklight.
Diffstat (limited to '.config/SuperCollider/startup.scd')
-rw-r--r-- | .config/SuperCollider/startup.scd | 7 |
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; +}); |