Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (889) Code (79) Doc (285) Help (132) Quark (392) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. neural sirens by clarkenciel (clarkenciel) Code

    ... ainLoop = { arg network, observations, steps=10, learningRate=0.1, action={}; Routine.new { steps do: { arg idx; var observation = observations.choose; var input = observation.first; var target = observation.last; var u ...

  2. Exercise_13_HOA_NRT_conversion_script_N3D_SN3D_FUMA Doc

    ... ptions.sampleRate; // length of the soundfile 2 convert ~myScore = Score.new(); Routine.run{ // we need to load the soundfile to get the buffer number for the NRT server ~sndbufBundle = s.makeBundle(false, { ~sndbuf = Buffer.read(s, ~hoaSou ...

  3. softPut Doc

    ... }); // knows it was in control EZSlider(w, 340@30, \knowsLast, [0.03, 3, \exp], Routine { |sl| var newVal, lastVal; loop { newVal = sl.value; Pdef(\test).softSet(\dur, newVal, 0.05, lastVal: lastVal); lastVal = newVal; \dummy.yield; } }); ) ...

  4. Polymorphism Doc

    ... lock ( var w, r; w = Window.new("trem", Rect(512, 256, 360, 130)); w.front; r = Routine({ arg appClockTime; ["AppClock has been playing for secs:",appClockTime].postln; 60.do({ arg i; 0.05.yield; w.bounds = w.bounds.moveBy(10.rand2, 10.rand ...

  5. LPCFile Quark

    ... cal Server".warn;}); } loadToBuffer { var c, numcycles, tmp; c = Condition.new; Routine.run{ this.server.sendMsg(\b_free, buffer); this.server.sync(c); this.loadToSignal; tmp = Buffer.alloc(this.server, signal.size, 1, bufnum: buffer); this ...

  6. Diamond Doc

    ... gious ratios to return in the chord. This defaults to 3 for a triad Returns: An Routine which yields a stream of arrays of ratios . getInterval For a given x and y index, return a ratio Arguments: x The index in the diamond row for o[x]/o[y ...

  7. How-to-Use-the-Interpreter Doc

    ... 9 of the following lines and press 'Enter': w = Window.new("Fading").front; r = Routine({ 200.do({|i| w.view.background = Color.blue(val: 1, alpha: 1 - (i * 0.005)); 0.005.wait; }); w.close; }); AppClock.play(r); ⧉ ✔ Some examples do requir ...

  8. RedDifferentialManchesterCode Doc

    ... te OffsetOut.ar(out, src*amp!2); }).add; ) //test counter ( t= 2400; //datarate Routine.run({ var encoder= RedDifferentialManchesterCode(8); inf.do{|i| var byte= (i%256).asInteger; var data= encoder.encodeValue(byte); s.bind{ Synth(\redBits ...

  9. ServerClock Doc

    ... t a time ~clock= ServerClock.new; ~clock.play(100,s); //will wait on trigID 100 Routine.run({ ~buffers= BBCutBuffer.array([Platform.resourceDir +/+ "sounds/break.aiff",Platform.resourceDir +/+ "sounds/break2.aiff"],[8,4]); //choose some fil ...

  10. Gen Quark

    ... n the stream and a 'next' method for generating the next Gen. Unlike Streams or Routines, a Gen doesn't modify itself when it produces the next item in the stream. Instead it returns another Gen. You can also copy and/or archive a Gen at an ...

prev 61 62 63 64 65 66 67 68 69 70 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow