Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1076) Code (138) Doc (359) Help (130) Quark (446) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. What If 130830 by luka (Luka P.) Code

    A piece i'm working on for a dance performance. ( // 'random' sequences of rhythms, reverb,... z = { var trig, seq; trig = Impulse.kr(6); seq = Drand([ Dseq([4,0,0,1,Drand([1,4]),1,0,1]), Dseq([1,0,2,0,Dran ...

  2. ServerPatternTriggering3 Quark

    ... 000), Dwhite(500, 1000)]); var gate = Demand.kr(trig, 0, Dwhite(0.0, 1.0)); //A random number, so that gate will be reset var freqBusIndex = freqBusses + (series * 2); //Shift bus index by series var gateBusIndex = gateBusses + series; Out. ...

  3. SmoothSlider Quark

    ... olor Colors, Gradients and SCImages can be used with these getter/setters. ( // random colors w = Window ( "colorful" , Rect ( 200 , 200 , 250 , 120 ) ).front.decorate; 7 .do({ |i| SmoothSlider ( w, 30 @ 100 ) .knobColor_( Color .rand( 0 , ...

  4. Pspawner Doc

    ... // make some notes into triads Pbind(*[ctranspose: Pwhite(-0.1, 0.1)]), // add random detuning to notes Pbind(*[\scale, Scale.minor]), // alter the scale Pn(Pseq([p, (type: \rest, dur: 1.0)])), // repeat the pattern after a 1 second pause ...

  5. if Doc

    ... res if example if ( [false, true].choose, // Boolean expression (chooses one at random) { "expression was true".postln }, // true function { "expression was false".postln } // false function ) ( var a = 1, z; z = if (a < 5, { 100 },{ 200 }) ...

  6. HeatMap Quark

    ... colour) Allows you to highlight a single point of interest, as follows: // Some random data a = (0..9).scramble.blendAt((0.1, 0.2 .. 9)); h = a.heatMap(10, Rect (0, 0, 300, 200), xLabels: true , yLabels: true , colscheme: \bw ); h.highlight ...

  7. UGlobalControlKeySpec Quark

    ... ) != "mixed" ) { ^{ UGlobalControl.current.keys.choose }.dup(inArray.size); // randomize } { ^inArray }; }; } }

  8. UGlobalControlKeySpec Quark

    ... ) != "mixed" ) { ^{ UGlobalControl.current.keys.choose }.dup(inArray.size); // randomize } { ^inArray }; }; } }

  9. l-systems Pbindef by blueprint (blueprint) Code

    ... | glob, loc | // extend list notes being played (using some randomness :) ) glob[\patternnotes] = glob[\patternnotes].add(glob[\acceptablenotes].choose); // limit pattern to 8 notes. if (glob[\ ...

  10. FuncStream Doc

    ... tion that is called for each next stream value. // make a stream that returns a random number a = FuncStream({ 1.0.rand }); a.next; ⧉ ✔ It uses Function: -inEnvir to statically bind the function call to the environment in which the FuncStre ...

prev 51 52 53 54 55 56 57 58 59 60 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow