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__
hi, list
since PD 0.37 it is possible to define more than one midi port, but how can i distinguish them within PD ?
my problem is, i want to send control data to an external device and noteon/off data to another program with a virtual midi port. is this possible within one instance of PD ? in MAX there's a midiport-message you can send to midi-communication objects like "notein" etc., or a symbol starting with "a" as a port-identifier.
thanks for any help
oliver
Hallo, oliver hat gesagt: // oliver wrote:
my problem is, i want to send control data to an external device and noteon/off data to another program with a virtual midi port. is this possible within one instance of PD ?
The midi channel numbers count up: first device is 1-16, second is 17-32 and so on. (Or did it start a 0? I always forget.)
Frank Barknecht _ ______footils.org__
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
I'm having difficulties in understanding x-spacing in [plot]ted arrays correctly, if the elements of the array contain the x-fields.
Okay, I found it out on my own. Of course it was an error in my patch, where one [receive] had the wrong name. Stupid me.
For the record: (x,y) fields specify (x,y) position relative to a template's (0,0).
Frank Barknecht _ ______footils.org__