aboutsummaryrefslogtreecommitdiffstats
path: root/.config/SuperCollider/synthdefs.scd
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2019-04-11 10:47:21 +0200
committerDavid Runge <dave@sleepmap.de>2019-04-11 10:47:21 +0200
commita90fea89aded695b34a0dd51c98cbef01f436604 (patch)
tree6f9ac8ca6093a9367548d2c2386b7b4333dbca86 /.config/SuperCollider/synthdefs.scd
parent4fe976ea40dea127d4dfa14b84a5ccda7ec036ae (diff)
parent3a8e03d9adc84dc71d401f4255b691957e5d0a4a (diff)
downloaddotfiles-a90fea89aded695b34a0dd51c98cbef01f436604.tar.gz
dotfiles-a90fea89aded695b34a0dd51c98cbef01f436604.tar.bz2
dotfiles-a90fea89aded695b34a0dd51c98cbef01f436604.tar.xz
dotfiles-a90fea89aded695b34a0dd51c98cbef01f436604.zip
Merge branch 'master' of sleepmap.de:config/dotfiles
* 'master' of sleepmap.de:config/dotfiles: .config/sway/config: Adding mod+space as layout toggle. Quoting unused focus mode toggle. Adding clock to bar. .config/SuperCollider/synthdefs.scd: Adding SynthDef to record 8 channels to disk with a volume array (through control Bus).
Diffstat (limited to '.config/SuperCollider/synthdefs.scd')
-rw-r--r--.config/SuperCollider/synthdefs.scd11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/SuperCollider/synthdefs.scd b/.config/SuperCollider/synthdefs.scd
index 51d320d..afa0828 100644
--- a/.config/SuperCollider/synthdefs.scd
+++ b/.config/SuperCollider/synthdefs.scd
@@ -35,3 +35,14 @@ SynthDef(\mix4BussesToOut, {
Mix.new(SoundIn.ar(in, volume))
);
}).add;
+
+// Record 8 channels
+SynthDef(\record8Channels, {
+ arg numBuf,
+ volume=#[0,0,0,0,0,0,0,0],
+ in=0;
+ DiskOut.ar(
+ numBuf,
+ In.ar(in, 8) * volume
+ );
+}).add;