[PD] Output a value in an array as a bang

Funs Seelen funsseelen at gmail.com
Fri Aug 20 13:43:18 CEST 2010

2010/8/19 João de Brito Vidigal <jbvidigal at gmail.com>

> Hi guys! Here I am with my troubled mind!
> I've been looking at this for hours and I can't seem to find an answer.
> I've actually been dreaming about all this for days!
> Well... Finally I made it with the list for ON/OFF values!
> With some modifications on Frank Barknecht's "flipper" I did what I
> needed... In a way!
> That's what brings me here!
> So, here's the thing:
> When I bang ON it stores a "1" in a table without repeating the index. It
> looks for a "0" to turn it to "1".
> When I bang OFF it only bangs one that is already ON.
> So basically the whole system 1) looks for an available slot to turn on; 2)
> looks for an unavailable slot to turn off.
> As I said before it stores this in a table.
> What I need and can't seem to be able to do is:
>       when the table writes a new value that value can be output through a
> bang in a corresponding index.
> Lets say I have a table of 5 indexes. If index 2 changes value from "0" to
> "1" a bang is triggered.
> It's so hard to explain... damn it! Hope you can understand!
> Thanks guys! You're being saviors...
Yes, for me it's hard to understand what you mean, but maybe this will help
you (and maybe not).

                              [2  \ => floatatom to read table-index 2
[tabread your_table]

> Joao Vidigal
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100820/c8898f36/attachment.htm>

More information about the Pd-list mailing list