[PD] changing values in unique tables/arrays

Frank Barknecht fbar at footils.org
Mon May 16 12:55:36 CEST 2005


Hallo,
daniel hat gesagt: // daniel wrote:
> im trying to figure out how to store/change values in unique
> tables/arrays and tabread them.

In you patch, you use $0 inside a bessage box, which is like using 0
in a message box. All $-variables work different when used in messages
and when used as object arguments.  Read the html-documentation for
the details. 

The solution in your case actually is very simple: Use a sender object
to write to the table: [s $0-readme]. Or [tabwrite $0-readme]. Or
(more complicated, but also more flexible): 
            
            [symbol $0-readme]
            |
            [makefilename pd-%s]
            |
[pack 0 0 0 s]
 |
 [; $4 $1 $2 $3(

You also should trigger your floats "value1-4" correctly by using a [t
b f]  after each of them (but the first). Otherwise it's totally
undefined if you first send the "bang" or the float value to  the pack
construct.

Ciao
-- 
 Frank Barknecht                               _ ______footils.org__
             
          _ __latest track: "scans" _ http://footils.org/cms/show/41




More information about the Pd-list mailing list