Hallo, Atte André Jensen hat gesagt: // Atte André Jensen wrote:
I have an abstraction that counts the beats (or 1/8 notes or other note values) and sends out 0, 1, 2, 3 etc for every beat. The idea is to instantiate this for every "instrument" that needs to know about time. So in one piece it might be two in others 50. A convienient way to store them was simply to refer to $0, since I didn't have to worry about making some unique identifier up for each instance.
Does it make sense?
I don't yet understand: What exactly do you want to store?
Generally one should not assume anything about $0 except that it is a unique number in every .pd-file. Well, currently you can also assume that it starts at 1000 and will only grow but assuming anything else is bad and will break in the long run.
So for sssad: You can use keys like [sssad $0-somekey] but as soon as you save them to a file or message box, you will have something like 1026-somekey in your storage and you can only restore it if you're lucky because 1026 doesn't equal $0. 1026 even is a completely different concept than $0.
Frank Barknecht _ ______footils.org__