diff options
author | David Runge <dave@sleepmap.de> | 2019-03-23 19:01:25 -0700 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2019-03-23 19:01:25 -0700 |
commit | a4d84b405674d112b26d4a4cbe5479625d3dd3f0 (patch) | |
tree | ebf55e94477c9477caf5583e5837611f51567d61 /.config/SuperCollider | |
parent | 3987deccba8417269587a2f3b90f453cbc2a1bf9 (diff) | |
download | dotfiles-a4d84b405674d112b26d4a4cbe5479625d3dd3f0.tar.gz dotfiles-a4d84b405674d112b26d4a4cbe5479625d3dd3f0.tar.bz2 dotfiles-a4d84b405674d112b26d4a4cbe5479625d3dd3f0.tar.xz dotfiles-a4d84b405674d112b26d4a4cbe5479625d3dd3f0.zip |
.config/SuperCollider/synthdefs.scd: Adding SynthDef to record 8 channels to disk with a volume array (through control Bus).
Diffstat (limited to '.config/SuperCollider')
-rw-r--r-- | .config/SuperCollider/synthdefs.scd | 11 |
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; |