-
... r controls (mix control goes from 0 to 1) mix = 0.1, clickRel = 0.01; var note, env, body, snd; env = Env.perc( attackTime:att * 3, releaseTime: rel, curve: crv).kr(doneAction: 2); note = SinOsc.ar(freq) * env; body = DynKlank.ar( specifica ...
-
... 8), 0.02, 1); var snd = RLPF.ar(Pulse.ar(freq, 0.2), \rfreq.kr(2500), 0.3); var env = EnvGen.kr(Env.adsr, \gate.kr(1), doneAction: 2); snd * env; }); // range of specific parameters Ndef( \sound1 ).addSpec(\freq, [60, 600, \exp]); Ndef( \so ...
-
... ngth + closeLength + dur;\ //minDur.poll;\ open = BufRd .ar(\ 1,\ openBufnum, \ EnvGen .ar( Env ([0, BufFrames .ir(openBufnum), 0], [openLength, 0]), gate: Impulse .ar(0)), \ 0, // no loop \ inter\ );\ \ steps = BufRd .ar(\ 1,\ stepBufnum, ...
-
Event patterns and array args setting and passing arrays and envelopes via patterns Part of: miSCellaneous This tutorial covers some use cases of array args, especially passing arrays to synths with patterns. Examples 1.) Alternative writin ...
-
... ound example ( SynthDef ( \sinegrain , { arg out=0, freq=440, sustain=0.02; var env; env = EnvGen .kr( Env .perc(0.001, sustain), 1, doneAction:2); Out .ar(out, SinOsc .ar(freq, 0, env * 0.1)) }).add; ) ( a = Pbind ( \dur , Pseq([0.5, 0.3, ...
-
... .do{|i|a=i.asInteger.rand2;if(a.even){a=a/2}{a=a*3+1};play{SinOsc.ar(a,0,0.1)!2*EnvGen.ar(Env.perc,1,1,0,1,2)};0.07.wait;}}.play // r{inf.do{|i|a=i.asInteger;if(a.even){a=a/2}{a=a*3+1};play{SinOsc.ar(a,0,0.1)!2*EnvGen.ar(Env.perc,1,1,0,1, ...
-
... StkGlobals. - It's beginner-friendly because it uses only basic UGens: SinOsc, EnvGen, Mix, Pan2, Out. Modified by Josh Mitchell and Bruno Ruviaro in July 2019. */ SynthDef(\FMRhodes1, { arg // standard meanings out = 0, freq = 440, gate = ...
-
// AlgaLib: SuperCollider implementation of Alga, an interpolating live coding environment. // Copyright (C) 2020-2022 Francesco Cameli. // This program is free software: you can redistribute it and/or modify // it under the terms of the GN ...
-
... ody starts midrange, quickly drops down to low freqs, and trails off bodyFreq = EnvGen.ar(Env([261, 120, 51], [0.035, 0.08], curve: \exp)); bodyAmp = EnvGen.ar(Env.linen(0.005, 0.1, 0.3), doneAction: 2); body = SinOsc.ar(bodyFreq) * bodyAmp ...
-
... (blend goes from 0 to 1) filterHarmonic = 5.04, rq = 1, blend = 0.83; var snd, env, vibrato; env = Env.asr(attackTime: att, sustainLevel: amp, releaseTime: rel).kr(gate: gate, doneAction: 2); vibrato = Vibrato.kr( freq: freq, rate: vrate, ...