[PD] Clearing and Copying an array
matju at artengine.ca
Wed Oct 27 15:59:06 CEST 2010
On Wed, 27 Oct 2010, IOhannes m zmoelnig wrote:
> a) pd-vanilla [tabread from] [tabwrite to ]
> b) zexy's [tabdump]
> c) iem_tab's [tab_copy]
[#for 0 1024]
[t a a]
[#tabread from] |
Just like vanilla's except you don't have to make a counter on your own
(which was not drawn by Johannes in his example). replace 1024 by your
array's size (or feed it in middle inlet).
This is much faster than the vanilla equivalent because it only sends 3
messages in total instead of 3 times the number of elements. It's
basically as if you could "compile" your vanilla message-system patch.
For older versions of [#for], add a '1' argument as the step size ($3),
because it didn't have a default value.
| Mathieu Bouchard ------------------------------ Villeray, Montréal, QC
More information about the Pd-list