Hallo,
another one of those data structures question not many people could answer. ;)
I'm having difficulties in understanding x-spacing in [plot]ted arrays correctly, if the elements of the array contain the x-fields.
To me it's not clear if x is taken relative to the template's (0,0) point or relative to the previous array element or taken as a mysterious combination of both.
In the attached example I'm trying to make a graphical ADSR example which can be edited both graphically by using the mouse as well as numerically through sliders. The sliders should stay in sync with the graphical representation.
For that I poll the graphics window and read out the x-coordiantes. This is done in the subpatch "getter". The subpatch "calculations" translates slider positions to "set"-commands to the graphics.
Now the problem is to compute the Release's x-value.
If I only use "set" - that is, if the "getter" subpatch is off, all is fine: The slider values correspond to the graphical appearance. If however I use get as well ("getter" turned on) then a change to the "A" slider will also change the "R" slider. Now the actually strange this is, that it does not change the "D" slider which also has a position dependent on "A".
It might well be that I have a silly "order of execution" error myself here, but somehow I don't see it (probably being blinded by colors now)
I'd love it if someone has an idea on where my error is ...
Frank Barknecht _ ______footils.org__