KDTree decouple response parsing from numNeighbours so that radius works

nix
Owen Green 5 years ago
parent 99aea5cbaf
commit 32e53cb955

@ -29,13 +29,13 @@ FluidKDTree : FluidRTDataClient {
kNearest{ |buffer, action| kNearest{ |buffer, action|
this.prSendMsg(\kNearest, this.prSendMsg(\kNearest,
[buffer.asUGenInput], action, [buffer.asUGenInput], action,
this.numNeighbours.collect{string(FluidMessageResponse,_,_)} [strings(FluidMessageResponse,_,_)]
); );
} }
kNearestDist { |buffer, action| kNearestDist { |buffer, action|
this.prSendMsg(\kNearestDist, [buffer.asUGenInput], action, this.prSendMsg(\kNearestDist, [buffer.asUGenInput], action,
[numbers(FluidMessageResponse,_,this.numNeighbours,_)] [numbers(FluidMessageResponse,_,nil,_)]
); );
} }
} }

Loading…
Cancel
Save