Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1763) Code (152) Doc (640) Help (197) Quark (771) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. Pslide1 Quark

    ... de, except that the step and len arguments need not be constants. If you supply patterns or streams for these arguments, they will be evaluated once per segment so that step and len can be variable. p = Pslide ((1..10), inf , 3, 1, 0).asStr ...

  2. 08_DurInterpolation Quark

    ( Alga.boot({ //Pattern to modify a = AP(( def: { SinOsc.ar * EnvPerc.ar(release: 0.1) * 0.1 }, dur: 0.5 )).play(chans:2); //Metronome b = AP(( def: { EnvPerc.ar(release: SampleDur.ir); Impulse.ar(0) }, dur: 1 )).play(chans:2); }) ) //Using ...

  3. Peuclid Quark

    Peuclid : Pattern { var <>numHits, <>numBeats, <>repeats; *new { |numHits = 7, numBeats = 12, repeats = 1| ^super.newCopyArgs(numHits, numBeats, repeats) } embedInStream { |inval| var currval = 0, lastval = -1; var repStream = repeats.asStr ...

  4. endless Quark

    + Pattern { endless { arg default; ^if(default.isNil) { Prout { arg inval; var outval, stream, previous; stream = this.asStream; loop { outval = stream.next(inval); if(outval.notNil) { previous = outval } {Êoutval = previous }; inval = outv ...

  5. auto-load-samples Quark

    /* If you have limited RAM, you may not want to preload all samples. Then you can use this script to dynamically try and load them. */ ( // keep track of what we have tried to load var failed = Set.new; // try to laod var autoLoad = { |soun ...

  6. Pbernoulli2 Quark

    /* FILENAME: Pbernoulli2 DESCRIPTION: A variant of Pbernoulli: Stacked coin tossed with random weight. AUTHOR: Marinus Klaassen (2012, 2021Q3) EXAMPLE: a = Pbernoulli2(5,0.1,inf).asStream; b = a.nextN(200); b.plot; b.histo(100,0,1.0).plot; ...

  7. TestPattern3 Quark

    ( Alga.maxIO = 2; Alga.initSynthDefs; Alga.boot({ AlgaSynthDef(\test, { SinOsc.ar(\freq.ar([440, 441]).poll) * EnvGen.ar(Env.perc(0.01, 0.1), doneAction:2) * DC.ar(0.5) }).add; AlgaSynthDef(\testImpulse, { //FreeSelf.kr(Impulse.kr(0)); EnvG ...

  8. CV Quark

    /* A CV models a value constrained by a ControlSpec. The value can be a single Float or an array of Floats. Whenever the CV's value changes, it sends a changed message labeled 'synch'. This way dependants (such as GUI objects or server valu ...

  9. ReaperControl Quark

    ... ----------------------------// // Add custom event types to control Reaper with patterns *addEventTypes{ /* // \reaperTrack // Example: ( r = ReaperControl.start(9292); Pdef(\r, Pbind( \type, \reaperTrack, \reaperControl, r, \reaperTrack, 1 ...

  10. p_line Quark

    /* \p_line Creates an pattern UMap making a line steps between two values over time. New values are generated each time the chain is started, or in a UPattern for each of the generated events. a: the start value b: the end value curve: a cu ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow