This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
SynthDef(\SawAndMoogFilter, { |out, freq=440, amp=0.1, gate=1,cutoff=1000,resonance=2| | |
var snd = Splay.ar(SinOsc.ar(freq * [1,2,3,4], mul:0.25)); | |
snd = MoogFF.ar(snd, cutoff * 10, resonance); | |
snd = snd * EnvGen.ar(Env.adsr(0.501, 0.1, 0.7, 0.8), gate, doneAction:2); | |
OffsetOut.ar(out, snd * amp) | |
}).add; | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Quarks.install(”wslib”);な書き方 | |
Pbind(\midinote, Pseq(["D2", "Bb3", "G4", "Bb5"].namemidi, inf)).play; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~makeEffect = {| name, func, lags, numChannels = 2 | | |
SynthDef(name, {| i_bus = 0, gate = 1, wet = 1| | |
var in, out, env, lfo; | |
in = In.ar(i_bus, numChannels); | |
env = Linen.kr(gate, 2, 1, 2, 2); // fade in the effect | |
out = SynthDef.wrap(func, lags, [in, env]); | |
XOut.ar(i_bus, wet * env, out); | |
}, [0, 0, 0.1] ).add; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s.boot; | |
s.quit; | |
( | |
SynthDef(\drums, {|out = 0, bassLevel = 0, | |
snareLevel = 0, hatLevel = 0, tomLevel = 0, | |
pan1 = 0, pan2 = 0, pan3 = 0, pan4 = 0| | |
var env1, env2, env3, bass, snare, hat, tom, bassOut, snareOut, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SynthDef("808kick", { arg gate=0; | |
var daNoise,daOsc,env1,env2,env3; | |
env1=Env.perc(0.001,1,80,-20); | |
env2=Env.perc(0.001,1,1,-8); | |
env3=Env.perc(0.001,1,80,-8); | |
daNoise=LPF.ar(WhiteNoise.ar(1),EnvGen.kr(env1,gate)+20); | |
daOsc=LPF.ar(SinOsc.ar(EnvGen.kr(env3,gate)+20),200); | |
Out.ar(0,Pan2.ar( | |
Mix.ar([daNoise,daOsc]), | |
0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
SynthDef(\mdapiano1, { |out=0, freq=440, gate=1| | |
var son = MdaPiano.ar(freq, gate, release: 0.9, stereo: 0.3, sustain: 0); | |
DetectSilence.ar(son, 0.01, doneAction:2); | |
Out.ar(out, son * 0.1); | |
}).add; | |
) | |
TempoClock.default.tempo = 0.8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s = Server.default; | |
s.waitForBoot{ | |
s.recChannels_(2); | |
s.recHeaderFormat_('WAV'); | |
s.recSampleFormat_('float'); | |
s.prepareForRecord("/Users/kinksaiz/Desktop/multi.wav"); | |
s.sync; | |
s.record; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~amen = Buffer.readChannel(s,"/Applications/SuperCollider/sounds/Break001.aiff", channels:[0,0]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @phrontist | |
// https://soundcloud.com/phrontist/lazy-amen-break-glitches | |
s.reboot; | |
s.stop; | |
~amen = Buffer.readChannel(s,"/Applications/SuperCollider/sounds/fools_gold.wav", channels:[0,0]); | |
SynthDef(\loop, {| out = 0, bufnum = 0, gate = 1, pos = 0, speed = 1, freq = 0, endfreq = 0.001, sustain, wobble = 1, boost = 1| |
OlderNewer