diff options
author | David Runge <dave@sleepmap.de> | 2019-03-02 22:47:24 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2019-03-02 22:47:24 +0100 |
commit | 1d179c95673140392c8b91066d80ac45c698c7be (patch) | |
tree | b23b0b331cd6bb9aa45d2e4ac0924dc41ffb09f2 /.config/SuperCollider | |
parent | f3983913ec33b568ce0d0d9be853d0aafcddc5d0 (diff) | |
download | dotfiles-1d179c95673140392c8b91066d80ac45c698c7be.tar.gz dotfiles-1d179c95673140392c8b91066d80ac45c698c7be.tar.bz2 dotfiles-1d179c95673140392c8b91066d80ac45c698c7be.tar.xz dotfiles-1d179c95673140392c8b91066d80ac45c698c7be.zip |
.config/SuperCollider/synthdefs.scd: Adding first set of useful, minimal SynthDefs.
Diffstat (limited to '.config/SuperCollider')
-rw-r--r-- | .config/SuperCollider/synthdefs.scd | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.config/SuperCollider/synthdefs.scd b/.config/SuperCollider/synthdefs.scd new file mode 100644 index 0000000..4a75b4c --- /dev/null +++ b/.config/SuperCollider/synthdefs.scd @@ -0,0 +1,37 @@ +postln("Adding custom SynthDefs"); + +// route 8 Ins to Out +SynthDef(\route8BussesToOut, { + arg in=0, + volume=#[0,0,0,0,0,0,0,0], + out=0; + Out.ar( + out, + In.ar(in, 8) * volume + ); +}).add; + +// filter low frequency rumble on SoundIns +SynthDef(\filter8Rumble, { + arg in=#[0,1,2,3,4,5,6,7], + freq=20, + out=0; + Out.ar( + out, + HPF.ar( + SoundIn.ar(in), + freq + ) + ); +}).add; + +// Mix down SoundIns to one +SynthDef(\mix4BussesToOut, { + arg in=#[0,1,2,3], + volume=#[0,0,0,0], + out=0; + Out.ar( + out, + Mix.new(SoundIn.ar(in, volume)) + ); +}).add; |