hello frank,
i did not have lot's of time to look at it, but your new version works...
i have to look a the dyn object, i'm sure i'll find lot's of interesting idea for the future developement of [pmpd].
about the matrix of connection, you can create all the link and change only K and D to create or destroy the link. (if K=D=0 => no link)
i can imagine the result of the diferents structure, but changing the structure in real time can gives inpredictible result (adding or lossing energy...)
ok for the programing numbering of the masses and link. 'ill changes this.
++ Cyr
Frank Barknecht wrote:
Hallo, cyrille hat gesagt: // cyrille wrote:
after a quick look at your patch :
- i'll not say anymore that my patch are a mess :-)
There's a lot of cruft in it. Attached is the new version, slightly more ordered.
- there is no fixed point.
Okay, I added this now: The first and last masses now are fixed as in your example patch. This allows for models both fixed and free using the matrix editor: The "border" of the editor is used to do connections to "ground" now.
-there is no way to delete a link (ok, i add that to my todo list), so you'll not be able to change the structure in real time.
Yes, this would be nice. I think, Thomas Grill's "dyn" external could be a nice model for this, but I didn't think too deeply about this yet.
-it's a good idea, i don't know what your patch will do...
If you have seen the Csound scansynth tutorial you might get the idea of what I'm trying: http://www.csounds.com/scanned/toot/
My matrix editor is modeled after the matrices used in Csoudn to specify topologies.
-there are problems on the [pmpd] oject : in and out begin from 0, but masses and link beggin from 1. what is the most logic things to do : everything should beggin at 0 or 1?a
I think, in the attached patch I finally got the numbering right. Tomorrow after sleep I will try to understand what exactly I did. ;)
I would suggest to use "programmer's numbering" starting from 0 throughout the whole system. Any personal preferences put aside: The outlet/inlet numbering cannot be changed anymore, as it's starting with 0 everywhere in Pd already, so people probably are used to it already. The same with arrays/tables.
So masses and links starting with 0 would feel natural and it would also make programming easier (for example when using [until]--[counter] loops. Which reminds me: I should have used [repeat] more often.)
Ciao