Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (317) Code (69) Doc (87) Help (34) Quark (127) SCDoc ↗ Forum ↗ Google ↗
  1. TimeSpec Quark

    ... nf ), \delta , 1, \legato , 0.01, \instrument , \default ); p = Pbind ( \freq , Pfunc ({ rrand(200, 800) }), \delta , 0.25, \legato , 0.6, \instrument , \default ); c.play(quant: 4); // start a metronome e = p.play(quant: nil ); // not sync ...

  2. psSet-event-type Quark

    ... , currentEnvironment, \releaseHolder, `(IdentityDictionary.new), #[gt, t_trig], Pfunc { |ev| var gt = ev[\gt] ?? { 1 }; [ if(rest or: { ev.isRest ?? { false } }) { Rest(gt) } { gt }, ev[\t_trig] ?? { 1 } ] }, ).buildForProxy(proxy, channelO ...

  3. PHelpSynthPar Quark

    ... { Pclutch(Ptuple(helpSynthArgs[i]), Pkey(\setArgs)) }}), Pkey(\index)), \dummy, Pfunc({|e| e.use { var args = [~index, ~theseArgs, ~switchOn, ~switchOff, ~setArgs, ~hsStartIndices] ; helpSynth.currentSwitchIndex = ~index; helpSynth.play(*ar ...

  4. basicBufferPlayer Quark

    ... inf ), time: Pwhite (1, 3, inf ) * 0.25, rate: Pwhite (0.9, 1.5, inf ), start: Pfunc ({ |ev| rrand(0.0, ~buffers[ev[ \bufIndex ]].duration - (ev[ \time ] * ev[ \rate ])) * ~buffers[ev[ \bufIndex ]].sampleRate }), amp: Pexprand (0.1, 0.9, i ...

  5. basicBufferPlayer Quark

    ... inf ), time: Pwhite (1, 3, inf ) * 0.25, rate: Pwhite (0.9, 1.5, inf ), start: Pfunc ({ |ev| rrand(0.0, ~buffers[ev[ \bufIndex ]].duration - (ev[ \time ] * ev[ \rate ])) * ~buffers[ev[ \bufIndex ]].sampleRate }), amp: Pexprand (0.1, 0.9, i ...

  6. ControlValue Quark

    ... ttern { // |prefix, asValues=false| // if (asMap) { // if (prefix.notNil) { // ^Pfunc({ // |e| // this.prefixCollect(prefix, _.asMap); // }) // } { // ^Pfunc({ // |e| // Event.newFrom(this.envir).collect(_.asMap); // }) // } // } { // if (p ...

  7. sclang-dirt Quark

    ... ype, \dirt, \s, Pn(Plazy { var n = clumps.choose; postln(join(n, " ") ++ "\n"); Pfuncn({ n.choose }, 2 ** rrand(6, 9)) }), \cut, Prand([1, 2, 3], inf), \n, Pwhite(0, 20, inf), \speed, Pbrown(1, 1.2, 0.01), \amp, Pwhite().linexp(0, 1, 0.001, ...

  8. PHS Quark

    ... key ( \val ).collect { |x| (~middle == \rest ).if { \note }{ \rest } }, \post , Pfunc { |e| e.use { "demandIndex: " .post; ~demandIndex.postln; "timeGrains: " .post; ~timeGrains.postln; "dur: " .post; ~dur.postln; "val: " .post; ~val.postln ...

  9. basic_telepathy_test Quark

    ... ts.postln } }; ); t.beats = 10; ( t = TempoClock.new; Pbind(\freq, \rest, \ggg, Pfunc { thisThread.clock.elapsedBeats.postln }).play(t); ) t.beats = 10; //////////////////////////////////////////// // but, this makes it explicit. ( // basic ...

  10. PSdup Quark

    ... , -3]]), \dur , PLrand ([0.2, 0.4]), \amp , PLrand ([0.07, 0.12, 0.2]), \type , Pfunc { 0.1.coin.if { \rest }{ \note } }, \pan , 1 ); q = PS (p); // use PSdup as base for alterings // it takes the last event stored in PS(p) r = Pbindf ( Pad ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow