New free message; no dice if server not running; working freeAll
parent
3777057995
commit
d6905db3a3
@ -1,42 +1,37 @@
|
||||
FluidKDTree : FluidManipulationClient {
|
||||
|
||||
var id;
|
||||
var id;
|
||||
|
||||
*new {|server|
|
||||
var uid = UniqueID.next;
|
||||
^super.new(server,uid).init(uid);
|
||||
}
|
||||
*new {|server|
|
||||
var uid = UniqueID.next;
|
||||
^super.new(server,uid)!?{|inst|inst.init(uid);inst}
|
||||
}
|
||||
|
||||
init {|uid|
|
||||
id = uid;
|
||||
}
|
||||
init {|uid|
|
||||
id = uid;
|
||||
}
|
||||
|
||||
fit{|dataset,action|
|
||||
this.prSendMsg(\fit,[dataset.asUGenInput],action);
|
||||
}
|
||||
fit{|dataset,action|
|
||||
this.prSendMsg(\fit,[dataset.asUGenInput],action);
|
||||
}
|
||||
|
||||
kNearest{ |buffer, k,action|
|
||||
this.prSendMsg(\kNearest,[buffer.asUGenInput,k],action,k.collect{string(FluidMessageResponse,_,_)});
|
||||
}
|
||||
kNearest{ |buffer, k,action|
|
||||
this.prSendMsg(\kNearest,[buffer.asUGenInput,k],action,k.collect{string(FluidMessageResponse,_,_)});
|
||||
}
|
||||
|
||||
kNearestDist { |buffer, k,action|
|
||||
this.prSendMsg(\kNearestDist,[buffer.asUGenInput,k],action,[numbers(FluidMessageResponse,_,k,_)]);
|
||||
}
|
||||
kNearestDist { |buffer, k,action|
|
||||
this.prSendMsg(\kNearestDist,[buffer.asUGenInput,k],action,[numbers(FluidMessageResponse,_,k,_)]);
|
||||
}
|
||||
|
||||
cols { |action|
|
||||
this.prSendMsg(\cols,[],action,[numbers(FluidMessageResponse,_,1,_)]);
|
||||
}
|
||||
cols { |action|
|
||||
this.prSendMsg(\cols,[],action,[numbers(FluidMessageResponse,_,1,_)]);
|
||||
}
|
||||
|
||||
read{ |filename,action|
|
||||
this.prSendMsg(\read,[filename.asString],action);
|
||||
}
|
||||
read{ |filename,action|
|
||||
this.prSendMsg(\read,[filename.asString],action);
|
||||
}
|
||||
|
||||
write{ |filename,action|
|
||||
this.prSendMsg(\write,[filename.asString],action);
|
||||
}
|
||||
|
||||
free { |action|
|
||||
if(server.serverRunning){this.prSendMsg(\free,[],action)};
|
||||
super.free;
|
||||
}
|
||||
write{ |filename,action|
|
||||
this.prSendMsg(\write,[filename.asString],action);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue