aboutsummaryrefslogtreecommitdiffstats
path: root/.config/SuperCollider
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-04-29 18:40:56 +0200
committerDavid Runge <dave@sleepmap.de>2017-04-29 18:40:56 +0200
commit9272b5cc195a72a1ba3d0127961e6cea6533a23c (patch)
tree7b25f6ce0a62a9728babc562318bcb04f5428912 /.config/SuperCollider
parent856e6b21b558b7fb0d9fe40f50cefabf7ed889bc (diff)
downloaddotfiles-9272b5cc195a72a1ba3d0127961e6cea6533a23c.tar.gz
dotfiles-9272b5cc195a72a1ba3d0127961e6cea6533a23c.tar.bz2
dotfiles-9272b5cc195a72a1ba3d0127961e6cea6533a23c.tar.xz
dotfiles-9272b5cc195a72a1ba3d0127961e6cea6533a23c.zip
.config/SuperCollider/startup.scd: Use load() instead of readAllString.interpret for loading additional configuration.
Diffstat (limited to '.config/SuperCollider')
-rw-r--r--.config/SuperCollider/startup.scd10
1 files changed, 3 insertions, 7 deletions
diff --git a/.config/SuperCollider/startup.scd b/.config/SuperCollider/startup.scd
index a6c1c59..8406ad5 100644
--- a/.config/SuperCollider/startup.scd
+++ b/.config/SuperCollider/startup.scd
@@ -1,18 +1,14 @@
Server.local.options.numOutputBusChannels = 2;
Server.local.options.numInputBusChannels = 2;
-
-~config;
+Server.local.options.sampleRate = 48000.0;
if(PathName("/dev/fw1").isFile, {
postln("Adding settings for RME Fireface 800.");
- ~config = File.new(Platform.userConfigDir++"/startupfiles/rme_fireface800.scd", "r");
+ load(Platform.userConfigDir++"/startupfiles/rme_fireface800.scd");
});
if(("aplay -l |grep Babyface > /dev/null".systemCmd) == 0, {
postln("Adding settings for RME Babyface.");
- ~config = File.new(Platform.userConfigDir++"/startupfiles/rme_babyface.scd", "r");
+ load(Platform.userConfigDir++"/startupfiles/rme_babyface.scd");
});
-if(~config.isNil.not, {
- ~config.readAllString.interpret;
-});