Skip to content

Instantly share code, notes, and snippets.

@ALOUT
Created May 31, 2014 01:14
Show Gist options
  • Save ALOUT/45c6e3482af7fd41102c to your computer and use it in GitHub Desktop.
Save ALOUT/45c6e3482af7fd41102c to your computer and use it in GitHub Desktop.
dewdrop_libMixerテンプレート
MixerChannelDef(\mix1x4, 1, 4,
SynthDef(\mix1x4, { |busin, busout, xpos, ypos, level|
var sig = In.ar(busin, 1);
sig = Pan4.ar(sig, xpos, ypos, level);
Out.ar(busout, sig);
ReplaceOut.ar(busin, sig);
}),
controls: (xpos: \bipolar,
ypos: \bipolar,
level: (value: 0.75, spec: \amp))
);
m = MixerChannel(\channel1, s, 1, 4);
m = MixerChannel.newFromDef(\channel1, \mix1x4, s);
a = m.play({ SinOsc.ar(Lag.kr(LFNoise0.kr(8).range(100, 200), 0.07), 0) });
b = m.play({ SinOsc.ar(Lag.kr(LFNoise0.kr(8).range(400, 800), 0.07), 0) });
m.automate(\xpos, { LFNoise1.kr(0.2) });
m.automate(\ypos, { LFNoise1.kr(0.3) });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment