Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (71) Code (12) Doc (25) Help (11) Quark (23) SCDoc ↗ Forum ↗ Google ↗
  1. 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 ...

  2. Prt Quark

    ... eArgs { ^[key, resetSource] } // storeOn { |stream| this.printOn(stream) } } // Proutine, but protects against nil being passed in // intended for routines that yield events // this is a workaround for EventStreamPlayer-stop // no longer ne ...

  3. Prt Quark

    ... eArgs { ^[key, resetSource] } // storeOn { |stream| this.printOn(stream) } } // Proutine, but protects against nil being passed in // intended for routines that yield events // this is a workaround for EventStreamPlayer-stop // no longer ne ...

  4. startup10-melodic Quark

    ... rentEnvironment }; ~asNotePattern = { // Pfunc is roughly 6.7 times SLOWER than Prout Prout({ |inval| ~repeats.do { ~index = 0; while { ~index < ~sequence.size } { inval = ~sequence[~index].embedInStream(inval); // output ~index = ~index + ...

  5. startup10-melodic Quark

    ... rentEnvironment }; ~asNotePattern = { // Pfunc is roughly 6.7 times SLOWER than Prout Prout({ |inval| ~repeats.do { ~index = 0; while { ~index < ~sequence.size } { inval = ~sequence[~index].embedInStream(inval); // output ~index = ~index + ...

  6. Lift-test Quark

    ... + 10 * 10 // many chairs, many tables. // lift calls to routines ( d = ( first: Prout { loop { "first".postln; 1.yield } }.asStream, second: Prout { loop { "second".postln; 0.3.yield } }.asStream, third: Prout { loop { "second".postln; 2.yi ...

  7. rewriteString Quark

    ... ependent on the productions. // using a random stream of letters as axiom ( k = Prout { 50.do { "abcde" .choose.yield } }; c = [ "a" -> "aa" , "b" -> "bb" , "c" -> "dd" , "d" -> "dxx" , "x" -> "y" ]; ) // 1 level of rewriting ( z = k.asStre ...

  8. ControlValue Quark

    ... ^this.value } asPattern { |initialValue| if (initialValue.isKindOf(Symbol)) { ^Prout({ |event| event[initialValue] !? { |v| this.value = v; }; loop { this.asControlInput.yield } }) } { ^Prout({ if (initialValue.notNil) { this.value = initi ...

  9. MarkovSet Quark

    ... blockSize=0, completionFunc, maxLength=32; var pat; pat = if(blockSize == 0) { Prout.new { var item; while { item = iostream.readUpTo(delimiter); item.notNil and: { item != "" } } { (item ++ delimiter).asSymbol.yield; } } } { Prout.new { v ...

  10. startup11-chordal Quark

    ... #{ |inEvent| ~nextNotePattern.value(inEvent); ~updateNoteStream.value(inEvent); Prout({ |event| { event = ~noteStream.next(event).yield }.loop }); }; ~asPattern = #{ |inEvent| var out, argPairs; if(~fitFactors.notNil) { inEvent = inEvent.co ...

1 2 3 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow