-
... tion: 0) * SinOsc .ar(440,0,0.1) ) }.play(s);) ( // trigger a synth SynthDef ( "help-EnvGen" ,{ arg out=0; Out .ar(out, EnvGen .kr( Env .perc,1.0,doneAction: 2) * SinOsc .ar(440,0,0.1) ) }).send(s); // This synth has no output. It only chec ...
-
... tion: 0) * SinOsc .ar(440,0,0.1) ) }.play(s);) ( // trigger a synth SynthDef ( "help-EnvGen" ,{ arg out=0; Out .ar(out, EnvGen .kr( Env .perc,1.0,doneAction: 2) * SinOsc .ar(440,0,0.1) ) }).send(s); // This synth has no output. It only chec ...
-
... ents - Part 7 Practical Considerations Using your own ~instrument ( SynthDef ( \help_SPE7_BerlinB , { arg i_out=0, freq = 80, amp = 0.2, pan=0; var out, a, b; amp = Decay2 .kr( Impulse .kr(0), 0.05, 8, amp); out = RLPF .ar( LFPulse .ar(freq ...
-
... .rand.yield } }}); a.asStream.nextN(100).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 .ar(freq, 0, ...
-
... vers for scope // impulse train that can be moved between samples ( SynthDef ( \Help_SubsampleOffset , { |out, addOffset| var in, dt, sampDur, extraSamples, sampleOffset, resampledSignal; in = Impulse .ar(2000, 0, 0.3); // some input. sampD ...
-
... .alloc(s,512,1); b.sine1(1.0/[1,2,3,4,5,6], true , false , true ); SynthDef ( "help-OscN" ,{ arg out=0,bufnum=0; Out .ar(out, OscN .ar(bufnum, 500, 0, 0.5) ) }).play(s,[0,0,1,b]); ) b.free; ( // noninterpolating - there are noticeable arti ...
-
Style Guide for SuperCollider Documentation See also: Helper AutoClassHelper UGenHelpTemplate ClassHelpTemplate TopicHelpTemplate What this Guide Covers This document is intended as a style guide for SuperCollider documentation. SuperCollid ...
-
... 0.25,0.25],inf) ); x = a.asStream; 100.do({ x.next.postln; }); ) ( 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 .ar(freq, 0, ...
-
... wave Out .ar(0, zout); }).send(s); // this will record to the disk SynthDef ( "help-Diskout" , { arg bufnum; DiskOut .ar(bufnum, In .ar(0,2)); }).send(s); // this will play it back SynthDef ( "help-Diskin-2chan" , { arg bufnum = 0; Out .ar ...
-
... f ); b = a.asStream; 7.do({ b.next.postln; }); ) // 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 .ar(freq, 0, ...