add getIds to dataset (and correct help)

nix
Pierre Alexandre Tremblay 5 years ago
parent c6cd158f53
commit 9ab48a6def

@ -77,7 +77,16 @@ The link::Classes/FluidLabelSet:: from which to retrieve the point's IDs associa
ARGUMENT:: action ARGUMENT:: action
A function to run when the import is done. A function to run when the import is done.
METHOD:: getIds
Export to the dataset IDs to a link::Classes/FluidLabelSet::.
ARGUMENT:: labelSet
The link::Classes/FluidLabelSet:: to export to. Its content will be replaced.
ARGUMENT:: action
A function to run when the export is done.
METHOD:: merge METHOD:: merge
Merge sourceDataSet in the current DataSet. It will update the value of points with the same label if overwrite is set to 1. To add columns instead, see the 'transformJoin' method of link::Classes/FluidDataSetQuery:: Merge sourceDataSet in the current DataSet. It will update the value of points with the same label if overwrite is set to 1. To add columns instead, see the 'transformJoin' method of link::Classes/FluidDataSetQuery::
@ -136,7 +145,7 @@ fork{
var count = PulseCount.kr(trig) - 1; var count = PulseCount.kr(trig) - 1;
var buf = LocalBuf(1); var buf = LocalBuf(1);
BufWr.kr(count, buf); BufWr.kr(count, buf);
FluidDataSetWr.kr(~ds.asUGenInput, buf: buf, trig: trig); FluidDataSetWr.kr(~ds.asUGenInput, idNumber: count, buf: buf, trig: trig);
FreeSelf.kr(count - 8); FreeSelf.kr(count - 8);
}.play.onFree{~ds.dump{|o| o.postln;~ds.free}} }.play.onFree{~ds.dump{|o| o.postln;~ds.free}}
) )

@ -114,7 +114,7 @@ OSCFunc({
var buf = LocalBuf.newFrom([0,1,2,3]); var buf = LocalBuf.newFrom([0,1,2,3]);
var noise = 4.collect{WhiteNoise.kr()}; var noise = 4.collect{WhiteNoise.kr()};
var trig = Impulse.kr(2); var trig = Impulse.kr(2);
var count = PulseCount.kr(trig,); var count = PulseCount.kr(trig);
4.do{|i| 4.do{|i|
BufWr.kr(noise[i], buf, DC.kr(i)); BufWr.kr(noise[i], buf, DC.kr(i));
}; };

Loading…
Cancel
Save