Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1500) Code (97) Doc (308) Help (89) Quark (1000) Plugin (6) SCDoc ↗ Forum ↗ Google ↗
  1. extSequenceableCollection Quark

    ... eCollection { miSC_isKeysAndValues { |requiredKeys| ^this.size.even and: { this.select({|x,i| i.even }).every({|x| (x.isKindOf(Symbol) || x.isKindOf(String)) && (requiredKeys.isNil or: { requiredKeys.includes(x.asSymbol) }) })} } miSC_isPos ...

  2. p_alternate Quark

    ... .setSpec( \a, UAdaptSpec() ) .setSpec( \b, UAdaptSpec() ) .category_( 'pattern_selection' );

  3. crossfade Quark

    ... b = 1.0, crossfade = 0.5| (a * (1-crossfade)) + (b * crossfade) }) .category_( 'selection' ) .mappedArgs_( [ \a, \b ] );

  4. SQWERTYKeyboard Quark

    ... ookupButton(\cmdR).fixedWidth_(40); }; OSCFunc({|msg| var keycodes= msg[3][2..].select{|x| x>0}; var modifiers= msg[3][0]; //detect modifiers like shift etc { codeTextString.string= modifiers.asString+keycodes; infoTextString.string= ""; ro ...

  5. WFSPathURL Quark

    ... ormatURL( url ), wfsPath ); }; } wfsPath { ^all[ url ]; } draw { |drawMode = 0, selected, pos, showControls = false, pixelScale = 1| if( this.wfsPath.notNil ) { this.wfsPath.draw( drawMode, selected, pos, showControls, pixelScale ); }; } ur ...

  6. FileSystem Quark

    ... tandardizePath; if( path.isFolder ) { ^FileSystemType( (path ++ "/*").pathMatch.select( _.isFolder ).collect({ |item| item.standardizePath.absolutePath( path ++ "/" ) }) ); } { ("Path" + path.pad($') + "doesn't exist (yet)").postln; ^FileSy ...

  7. SCMMIDIInNoteRangeView Quark

    /* FILENAME: SCMIDIInNoteRangeView DESCRIPTION: Select a MIDIIn source AUTHOR: Marinus Klaassen (2012, 2021Q4) EXAMPLE: m = SCMIDIInNoteRangeView(noteOnAction: { |...args| args.postln; }, noteOffAction: {|...args| args.postln; }).front; a = ...

  8. painter Quark

    ... wWidth, aWindowHeight ; // TODO: should be taken into account for ne and nv var selected, key; // for mouse binding var a, b, orient; //for GeoListener initview graph = aGraph ; runner = aRunner ; geoListener = aGeoListener; runner.addDepen ...

  9. LazyList Quark

    ... d), { this.tail.collect(f) }) } do{ |f| f.(this.head); this.tail.do(f); ^Unit } select { |pred| ^if( pred.(head) ) { LazyListCons( head, { this.tail.select(pred) } ) } { this.tail.select(pred) } } //can't use ++ with LazyListEmpty append { ...

  10. complex-copy-paste_frp_style Quark

    ... delta) || (absdif(current, new) < delta) ){Some(new)}{None()} } <%> eSig <@> e).selectSome }; var outES = es.collect(checked).mreduce; outSig = outES.hold(0.0); outES }; //FRP /* Notes: The logic is essentially separated into two parts, the ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow