-
( s.waitForBoot({ SynthDef(\sinePerc, { var x = SinOsc.ar(\freq.kr([440, 441])); var env = EnvGen.ar(Env.perc(releaseTime: \dur.kr(1)), \trig.kr(0), doneAction: Done.pauseSelf); OffsetOut.ar(\out.ir(0), x * env * \amp.kr(0.5)); }).add; //Wr ...
-
... a segmented envelope. Envs can be used both server-side, by an EnvGen within a SynthDef, and clientside, with methods such as at and asStream , below. An Env can have any number of segments which can stop at a particular value or loop seve ...
-
... ods Instance Methods Inherited instance methods Examples // used to lag pitch ( SynthDef(\lag3ud_help, { |out, freq = 300, lagup = 1, lagdown = 5| Out.ar(out, SinOsc.ar( // sine wave Lag3UD.kr( // lag the frequency freq, lagup, lagdown ), 0 ...
-
/* Recieved from https://github.com/supercollider-quarks/SynthDefPool/blob/master/pool/cs80lead_mh.scd Vangelis/Blade Runner lead sound, based on tutorial by meastempo @ http://www.youtube.com/watch?v=Fne0oIEv-WI Original by Mike Hairston P ...
-
... -. --. / .- .. .-. / "; ~ctlbus1 = Bus.control(s); MIDIIn.connectAll; ( SynthDef(\perc, {|freq=280| var ampEnv, snd, attack, release, sat, mod; release = 3; attack = ~ctlbus1.kr; sat = -2; mod = SinOsc.ar(4, 0, 2); ampEn ...
-
... Stream; 24.do({ x.next.postln }); ) // Pswitch used as a sequence of pitches: ( SynthDef(\help_sinegrain, { |out = 0, freq = 440, sustain = 0.05| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf); Out.ar(out, ...
-
... ); x = a.asStream; 9.do({ x.next(Event.new).postln }); ) ⧉ ✔ // sound example ( SynthDef(\sinegrain, { |out = 0, freq = 440, sustain = 0.02| var env; env = EnvGen.kr(Env.perc(0.001, sustain), 1, doneAction: Done.freeSelf); Out.ar(out, SinOs ...
-
... tle to add variation. Modified By Josh Mitchell and Bruno Ruviaro July 2019. */ SynthDef(\kalimba, { arg // Standard values out = 0, freq = 440, amp = 0.1, att = 0.001, rel = 3, pan = 0, crv = -8, // Other controls (mix control goes from 0 ...
-
... rrayedArg; desc = SynthDescLib.global[this]; desc.isNil.if { ^SimpleInputError("SynthDef unknown to SynthDescLib.global (forgot to add ?)") .method_(thisMethod).throw; }{ exclude = exclude.asArray; exclude = exclude ++ this.miSC_controlsToE ...
-
... Pbrown (0.0, 1.0, 0.2, inf ); a.asStream.nextN(1000).plot; ) // sound example ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(out, SinOsc . ...