Re: [PD] is $0 the same on every load?

2008-07-23 Thread Atte André Jensen
Chris McCormick wrote:

 I understand. You want throw-away auto-ids. I'm not sure if anyone has
 come up with a satisfactory way of doing that, but I will have a think
 about it.

At least auto-ids. They shouldn't be thrown more away than they are the 
same next time :-)

 Incidentally, How I handle timing is I have a global timer [s-metro]
 that keeps going up and up, and I use [mod 4] to (for example) have a
 loop of 4 ticks or [mod 32] for 32 ticks. Sometimes I get crazy and add
 together two [mod]s to get some weird sounding rhythms.

Sounds just like mine. Except I need the concept of parts (like in 
verse, chorus, etc). I've put some basic stuff together that allow me to 
specify 8 parts. Each part have a length, and a goto-part so when a 
part is done it goes to the next one. Besides this you can request a 
certain part to come up next. This is all reflected and controlled from 
my bcr.

What this means for my ticker is that it has on/off switches for each 
part, so a given ticker might only output if we're playing part 0 or 2.

-- 
peace, love  harmony
Atte

http://atte.dk   | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] is $0 the same on every load?

2008-07-23 Thread Frank Barknecht
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.

Ciao
-- 
 Frank Barknecht _ __footils.org__

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] is $0 the same on every load?

2008-07-23 Thread Atte André Jensen
Frank Barknecht wrote:

 I don't yet understand: What exactly do you want to store?

Such tickers would have gui-switches for which parts (like in 
structure) they're active in. That's what I'd like to store...

 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.

Right, I understand. I promise I'll refer from using $0 this way ever 
again :-)

-- 
peace, love  harmony
Atte

http://atte.dk   | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] is $0 the same on every load?

2008-07-23 Thread Damian Stewart
Atte André Jensen schreef:
 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.

hmm.. so what if i have for example a delay abstraction which a GOP gui, 
and i want to have multiple instances of this abstraction? i suppose i'd 
have to name each one individually, passing a name on initialisation?

what if i have a delay abstraction inside a synth abstraction, and i 
want two instances of the synth abstraction? then i have two instances 
of the delay abstraction but no easy way to name them without messily 
chaining up the name strings...

from memory this is one of the reasons why i have yet to knuckle down 
and figure out sssad for my own stuff - my state saving system is 
current a piece of paper with pencil numbers scrawled all over it.

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] is $0 the same on every load?

2008-07-23 Thread IOhannes m zmoelnig
Damian Stewart wrote:
 Atte André Jensen schreef:
 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.
 
 hmm.. so what if i have for example a delay abstraction which a GOP gui, 
 and i want to have multiple instances of this abstraction? i suppose i'd 
 have to name each one individually, passing a name on initialisation?
 
 what if i have a delay abstraction inside a synth abstraction, and i 
 want two instances of the synth abstraction? then i have two instances 
 of the delay abstraction but no easy way to name them without messily 
 chaining up the name strings...

hmm, the subject suggests this is about $0, so i am not sure whether i 
fully understand your question (or what you are missing): just use 
$0-mydel.
that $0 is not 1026 shouldn't be a problem for you either.


mfga.sdr
IOhannes

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] is $0 the same on every load?

2008-07-23 Thread Atte André Jensen
Damian Stewart wrote:

 my state saving system is 
 current a piece of paper with pencil numbers scrawled all over it.

I like paper, but I think sssad is cooler :-)

-- 
peace, love  harmony
Atte

http://atte.dk   | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] is $0 the same on every load?

2008-07-22 Thread Roman Haefeli
On Tue, 2008-07-22 at 22:37 +0200, Atte André Jensen wrote:
 Hi
 
 Can I expect $0 to always be the same in a given abstraction every time 
 I load a patch?
 
 The reason I ask, is I'd like to use $0 as an unique identifier together 
 with sssad...


from my experience: yeah, if you open your patches in the exact same
order, then all $0 are the same.

BUT:
it is not documented anywhere, how $0 behaves in detail. it might be
possible, that in a future versions of pd it starts counting from
another value than 1000 (which is a pretty arbitrary decision anyway).
DON'T rely on it. also i don't think, that it is a good idea to force
yourself to open your patches always in the same order. your system will
fail, as soon as you edit your patch only in the slightiest way. it is
recommended to do your own counter, that only counts what really needs
to be counted for your state saving.

roman




___ 
Der fr�he Vogel f�ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] is $0 the same on every load?

2008-07-22 Thread Atte André Jensen
Roman Haefeli wrote:
 it is
 recommended to do your own counter, that only counts what really needs
 to be counted for your state saving.

Thanks for the advice, I'll take this route.

-- 
peace, love  harmony
Atte

http://atte.dk   | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] is $0 the same on every load?

2008-07-22 Thread Chris McCormick
On Tue, Jul 22, 2008 at 10:37:44PM +0200, Atte André Jensen wrote:
 The reason I ask, is I'd like to use $0 as an unique identifier together 
 with sssad...

Is this so you can save and load different groups of pre-sets
separately? I have been trying to think of a nice portable solution to
that problem, using sssad. I have some ideas, but nothing concrete yet.

Best,

Chris.

---
http://mccormick.cx

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] is $0 the same on every load?

2008-07-22 Thread Atte André Jensen
Chris McCormick wrote:

 Is this so you can save and load different groups of pre-sets
 separately? I have been trying to think of a nice portable solution to
 that problem, using sssad. I have some ideas, but nothing concrete yet.

No.

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?

-- 
peace, love  harmony
Atte

http://atte.dk   | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] is $0 the same on every load?

2008-07-22 Thread Chris McCormick
On Wed, Jul 23, 2008 at 07:25:58AM +0200, Atte André Jensen wrote:
 Chris McCormick wrote:
 
 Is this so you can save and load different groups of pre-sets
 separately? I have been trying to think of a nice portable solution to
 that problem, using sssad. I have some ideas, but nothing concrete yet.
 
 No.
 
 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.

I understand. You want throw-away auto-ids. I'm not sure if anyone has
come up with a satisfactory way of doing that, but I will have a think
about it.

Incidentally, How I handle timing is I have a global timer [s-metro]
that keeps going up and up, and I use [mod 4] to (for example) have a
loop of 4 ticks or [mod 32] for 32 ticks. Sometimes I get crazy and add
together two [mod]s to get some weird sounding rhythms.

Chris.

---
http://mccormick.cx

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list