Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2366) Code (121) Doc (629) Help (191) Quark (1309) Plugin (116) SCDoc ↗ Forum ↗ Google ↗
  1. add Quark

    ... ec.maxval] ); } ) .mappedArgs_([ \input, \add ]) .prepareArgsFunc_({ |args| var index; index = args.indexOf( \value ); if( index.notNil && { index.even }) { args[index] = \input; }; args; }) .setSpec( \factor, [-1,1,\lin,0,0].asSpec ) .setS ...

  2. MxUnit Quark

    ... this.handlersForClass(class.superclass) }); match }) }; ^match } getInlet { arg index; if(index.isNil, { ^inlets.first }); if(index.isInteger, { ^inlets[index] }, { inlets.do { arg in; if(in.name == index, { ^in }) } }); Error("Inlet not fo ...

  3. p_select Quark

    ... Creates an UMap that can select a value from an Array of values in a UPattern. index: the index (0-n-1) vals: the Array of values n: the total number of values The 'vals' arg ranges are mapped to that of the parameter to which the UMap is ...

  4. 4a_Connecting_interfaces Quark

    ... ons to play the four sound slots MKtl('testa').elAt(\bt, \R, (0..3)).do { |but, index| but.action = { NTMI.slots.playAt(index) }; }; // first four S buttons to stop the sounds MKtl('testa').elAt(\bt, \S, (0..3)).do { |but, index| but.action ...

  5. UScoreList Quark

    ... do { |func| scores.do( func ); } last { ^scores.last } first { ^scores.first } indexOf { |obj| var index; index = scores.indexOf( obj ); if( index.isNil ) { scores.do({ |item, i| index = [ i, item.indexOf( obj ) ]; if( index[1].notNil ) { ...

  6. UScoreList Quark

    ... do { |func| scores.do( func ); } last { ^scores.last } first { ^scores.first } indexOf { |obj| var index; index = scores.indexOf( obj ); if( index.isNil ) { scores.do({ |item, i| index = [ i, item.indexOf( obj ) ]; if( index[1].notNil ) { ...

  7. ItemSpec Quark

    ... floor(warp.map(value.clip(0.0, 1.0)) * items.size) ); } unmap { arg value; var index = items.indexOf(value); if (index.isNil) { ^nil } { ^(index * (1.0 / items.size)); } } copy { ^this.class.newFrom(this) } }*/ ItemSpec { var <items, <warp ...

  8. WFSEditViews Quark

    ... h2; }; } { obj = drg.asWFSPath2.deepCopy; }; this.object = obj; }); } getNearestIndex { |point, scaler| // returns nil if outside radius var radius; radius = scaler.asArray.mean * 5; ^object.positions.detectIndex({ |pt, i| pt.asPoint.dist( ...

  9. extNatSort Quark

    ... ort({ |a, b| a.natLess(b) }); */ + String { natLess { |str2, equal = false| var index = 0, char1, char2, lastCommonChar; var isDig1, isDig2, numStr1 = "", numStr2 = ""; // speedups by early exit: /// for equal strings if (this == str2) { ^e ...

  10. GMGridContainer Quark

    ... e_( FunctionList() .addFunc({ this.prArrangeViews; }); ); } insertView { |view, index = nil| if(index.isNil) { thisViews.add(view); } { thisViews.insert(view, index); }; view.setParent(this); this.prArrangeViews; } removeView { |view| thisV ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow