Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (807) Code (67) Doc (450) Help (188) Quark (73) Plugin (29) SCDoc ↗ Forum ↗ Google ↗
  1. NearestN Doc

    ... pos[1]) * ~size - 7, 14, 14)); }; ); s.sync; ( ~synth = { var mouse = Latch.kr([MouseX.kr, MouseY.kr], Impulse.kr(10)); var found = NearestN.kr(~treebuf, mouse, num:3); //found.poll(1); var findices = found[2,5..]; // original array index, ...

  2. play Doc

    ... gens but you do not need to { Out.ar(1, PinkNoise.ar(0.1)) }.play; { XOut.ar(0, MouseX.kr(0,1), PinkNoise.ar(0.1*[1,1])) }.play; // mouse x controls level ⧉ ✔ synthDef.play (target, args, addAction) returns: a Synth Note that you need an ou ...

  3. MatchingP Doc

    ... )); //son = PinkNoise.ar * LFPulse.kr(1); //son = (PlayBuf.ar(~dictsize, ~dict, MouseX.kr(0.1, 2, 1). loop: 1) * ([0.1, 0.3, 0.5]++{0}.dup(~dictsize-3))).sum; outputs = MatchingP.ar(~dict, son, ~dictsize, ntofind: ~ntofind); trig = outputs[ ...

  4. QuartzComposerView Doc

    ... m.maxFPS_(20); n.maxFPS_(20); m.start; n.start; ~meters = [m, n]; ) s.boot; // MouseX controls noise amp ( o = OSCresponder(s.addr, '/tr', { |time, resp, msg| { ~meters[msg[2]].level = (msg[3] + 0.01).explin(0.01, 1.01, 0, 1) }.defer; }).a ...

  5. Exercise_06_HOA_scenes_simple_manipulations Doc

    ... rce = { var in; in = \in.ar(0!~hoaNumChannels); HOATransRotateAz.ar(~order, in, MouseX.kr(-pi, pi)) }; ⧉ ✔ Here we have an example with HOATransRotateXYZ where we rotate the sound scene around all three axis. ( ~hoaTransformer.source = { va ...

  6. VDiskIn Doc

    ... SynthDef("help-VDiskin", { |out, bufnum = 0| Out.ar(out, VDiskIn.ar(1, bufnum, MouseX.kr(0.5, 2.0))); }).add; ) ( x = Synth.basicNew("help-VDiskin"); m = { |buf| x.addToHeadMsg(nil, [\bufnum, buf]) }; b = Buffer.cueSoundFile(s, ExampleFile ...

  7. PlayBuf Doc

    ... 0.5, 200, 1)); Out.ar(out, PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum), trig, MouseX.kr(0, BufFrames.kr(bufnum)), 1) ) }).play(s, [\out, 0, \bufnum, b]); // accelerating pitch SynthDef(\help_PlayBuf, { |out = 0, bufnum = 0| var rate; rate ...

  8. Instruction Doc

    ... tion(a); ) {Out.ar(0,Pan2.ar(0.5*FreeVerb.ar(Resonz.ar(Instruction.ar(b.bufnum),MouseX.kr(1000,5000,'exponential'),MouseY.kr(0.01,1.0,'exponential'))),0.0))}.play //discovered sounds ( a=[ 2, 0.98085289001465, 0, 0.0098705891385231, 3, 0.04 ...

  9. NodeProxy Doc

    ... Here is a simple example, using Ndef (NodeProxy works similarly): Ndef(\maus, { MouseX.kr }); Ndef(\haus, { Pan2.ar(Blip.ar(Ndef.kr(\maus, 1) * 70), SinOsc.kr(Ndef.ar(\maus, 1) * 5)) }).play; ⧉ ✔ NOTE: If you don't specify the number of cha ...

  10. PlaneTree Doc

    ... llection(s, ~treedata.flat, ~treedata[0].size); ( x = { PlaneTree.kr(~treebuf, [MouseX.kr(0,1), MouseY.kr(0,1)]).poll }.play ) x.free; ⧉ ✔ ------------------------ Data format Each node in the tree is represented by a multichannel frame in ...

prev 41 42 43 44 45 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow