Forgot all that. You don't need externals. PD already does exactly this.
What you're doing is mapping one set of numbers to another:
0 -> 1 3 -> 2 5 -> 3 10 -> 4
The left-hand column is a table index, the right hand column is the value at that index. Try setting up a table with a message like [my-tab 0 1 1 1 2 2 3 3 3 3 3 4( -- then tabread the values of that table with the index 1 through 4. You'll get exactly the result you're looking for.
Alternatively, you could do this:
| [sel 0 3 5 10] | | | | [1( [2( [3( [4(
Hope this helps!
David
homepage: http://www.davidgolightly.net
From: Mathieu Bouchard matju@artengine.ca To: hard off hard.off@gmail.com CC: pd list pd-list@iem.at Subject: Re: [PD] ordered numbers Date: Fri, 21 Oct 2005 05:24:26 -0400 (EDT)
On Fri, 21 Oct 2005, hard off wrote:
preferably without using externals, can anyone tell me how to do this:
If it's going to be for any possible list length, good luck without externals. Else, with -lib gridflow:
| [#grade] | [# + 1] | [#export_list] |
Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju Freelance Digital Arts Engineer, Montréal QC Canada
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list