-
... part of redUniverse toolkit /redFrik RedKMeans { var <>k, <>max, <>centroids, <classifications; *new {|k= 5, max= 15| ^super.newCopyArgs(k, max).reset; } reset { centroids= []; classifications= []; } classify {|vec| var minDist= inf, class ...
-
... ReturnClusterObject(return); } getReturnClusterObject{ |returnArray| var clusterClasses; if((returnArray[0].class == this.oclass) ){ ^this }{ if((returnArray[0].isNil) ){ ^nil } { //this needs to be fixed, it should return the class corresp ...
-
... + Spec { adaptToSpec { } } + ControlSpec { adaptToSpec { |spec| var res = this, class = this.class; if ( spec.respondsTo(\asControlSpec) ) { if( spec.isMemberOf( FreqSpec ) && { class == ControlSpec } ) { class = FreqSpec; }; spec = spec.as ...
-
... + Spec { adaptToSpec { } } + ControlSpec { adaptToSpec { |spec| var res = this, class = this.class; if ( spec.respondsTo(\asControlSpec) ) { if( spec.isMemberOf( FreqSpec ) && { class == ControlSpec } ) { class = FreqSpec; }; spec = spec.as ...
-
HelpFile2 utility class to create a help file for a class Inherits from: : Object : AbstractFunction : Stream : IOStream : UnixFILE : File This class can be used to create helpfiles for SuperCollider classes. You can create a helpfile fully ...
-
ControlPrototypes { classvar <registery; *initClass { registery=IdentityDictionary.new; } *define { arg ... assns; registery.addAll(assns); } *at { arg key,spec; // returns a list of possibles ^registery.at(key).value(key,spec) // could/sho ...
-
ControlPrototypes { classvar <registery; *initClass { registery=IdentityDictionary.new; } *define { arg ... assns; registery.addAll(assns); } *at { arg key, spec; // returns a list of possibles ^registery.at(key).value(key, spec) // could/s ...
-
MxUnit { classvar registery, <protoHandler; var <>source, <inlets, <outlets, <>handlers, <varPooling=false; var <>onLoad; var <>group, status; *make { arg source, class; var handlers; if(source.isKindOf(MxUnit) or: {source.isNil}, { ^source ...
-
//TODO add multiple options for arg + Object { *checkArgs{ |class, method, args, types| [args, types, (0..(args.size-1))].flopWith{ |aarg, type,i| if( ( (type.size > 0) and: { type.collect{|x| aarg.isKindOf(x) }.reduce('||').not }) || ( (ty ...
-
... .io) main author: [redFrik](https://github.com/redFrik) # OpenBCI SuperCollider classes for communicating with [Open Source Brain-Computer Interfaces](https://openbci.com). The following boards are supported... * [Cyton](https://docs.openbc ...