as a beginner I am having trouble dealing with lists and accessing scalars within lists. Would be nice if you can point me in the right direction.
Background: I am using “netsend” to send data from a python code to pd. Within pd I want to store the messages which are being send. Essentially every message is referring to an “object”. A message contains five floats: e.x. “1 52 23 54 6”. The first float is the id of an object. The other floats are properties of the object.
Now when a message is send to pd I want my patch to:
Check if the object is already stored in my list, in other words: If an object with the same Id exists in the list
... Yes -> change the properties of that object
... No -> add (“append”) the object to the list
Delete an object if the message is “xx xx 0 xx xx”
In future I’d like to use these objects to create sounds (duh), similar to a sequencer as presented in the Help Browser
-> pure Data/ -> 4.data.structures/ -> 07.sequencer.
Thanks for taking the time!