Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (48) Code (3) Doc (20) Help (11) Quark (14) SCDoc ↗ Forum ↗ Google ↗
  1. extPdef Quark

    ... ey { |key| patternpairs.pairsDo { |k, val| if(k === key) { ^val } }; ^nil } } + Pchain { atKey { |key| patterns.do { |p| if ( p.class == Pbind ){ ^p.atKey( key )}; }; ^nil } } + PatternProxy{ atKey{ |key| ^source.atKey( key ) } } /* + Pdef{ ...

  2. atKey Quark

    ... to access one key in another Pattern, i.e. PatternProxy (e.g. Pdef), Pbind and Pchain. Example s.boot; Pdef ( \one , Pbind ( \degree , Pseq ( (1..7), inf ), \dur , 1, \pan ,-1 ) ); Pdef ( \two , Pbind ( \degree , Pdef ( \one ).atKey( \degr ...

  3. MarkovSet Quark

    ... Do { |key, val| postf( "key: %\t\tvalue: %\n" , key, val) }; "" // compare: b = Pchain ( Pfsm2 (m), (instrument: \mark )); c = Pchain (a, (instrument: \mark )); Ppar ([b, c]).play;

  4. NodeProxyRolesSN Quark

    ... proxy, channelOffset = 0, index| var args = proxy.controlNames.collect(_.name); Pchain( (type: \set, id: { proxy.group.nodeID }, args: args), Pbindf( pattern, \play, Pfunc { |e| args.do { |n| e[n] !? { proxy.seti(n, e.channelOffset, e[n]) } ...

  5. PbindFx Quark

    ... Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ AbstractPbindFx : Pchain { classvar <>defaultSourceCleanupDelay = 0.3; classvar <>defaultFxCleanupDelay = 0.05; classvar <>defaultCleanupDt = 0.2; *new { |pbindData ...fxData| va ...

  6. pitch-processes Quark

    ... )) { BP(~bpKey).v.tryPerform(\setDefaultHook, key, value); }; }; ~asPattern = { Pchain( BPStream(\voicerPostArgs), BPStream(\override), BPStream(\voicerOverride), BPStream(\base) ) }; ~asStream = { ~asPattern.().asStream }; // for BPStream, ...

  7. TestPatternProxy Quark

    ... 9; }, x) }, { |x| Ppar([x, x]) }, { |x| Pfin(3, x) }, { |x| Pfin(6, x) }, { |x| Pchain(x, Pseq([(zz: 9), (yy: 10), (zz: 10, yy: 2)], inf)) }, { |x| Pchain( Pbindf(x, \xx, Pseq([1, 2]), \yy, Pfunc { |event| event[\zz] } ), Pbind(\zz, Pseries ...

  8. drum-samples Quark

    ... witch1( ~drums.collect { |thing| var pd = thing[\postDefaults]; if(pd.notNil) { Pchain( thing[\setParms], if(pd.size > 0 and: { pd.any(_.isPattern) }) { Pbind(*(pd.asKeyValuePairs)); } { pd } ) } { thing[\setParms] } }, Pkey(\bufIndex) ).as ...

  9. misc-perc Quark

    ... rParms = ~instrParms.copy; ~instrParmStreams = ~instrParms.collect(_.asStream); Pchain( // incredibly pointless hack follows Pfunc { |ev| var i = ev[\bufIndex]; if(~instrParms[i] !== ~saveInstrParms[i]) { ~saveInstrParms[i] = ~instrParms[i] ...

  10. startup11-chordal Quark

    ... Pairs"); case { argPairs.isPattern or: { argPairs.isKindOf(Routine) } } { out = Pchain(argPairs, out) } { argPairs.size > 0 } { // out = Pbindf(out, \argKeys, argPairs[0, 2..], *argPairs); out = Pbind(\argKeys, argPairs[0, 2..], *argPairs) ...

1 2 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow