Hello,
I would like to be able to change the Y range of arrays and at the same time be able to keep it within the bounding box. Is this presenty possible either through messages (I skimmed through the array sources and it didn't look like it) or some externs?
thanks.
Le 23 Mai 2004 13:28, Michal Seta a écrit :
I would like to be able to change the Y range of arrays and at the same time be able to keep it within the bounding box. Is this presenty possible either through messages (I skimmed through the array sources and it didn't look like it) or some externs?
I don't think it's possible to dynamically change the resolution of the samples. Maybe I don't understand the question... -- Marc
I think I found out, how this was done already, but I cannot find the solution anymore. there are some problems:
(only if you create the array via message, but maybe there is a default graph name???) 2) you have to enforce a redraw (I dont know how, ...) but besides that, the message to change bounds is pd-graphname coords arg1 arg2 arg3 arg4 arg5 ar6 arg7 arg8(?)... arg1: x from arg2: y to arg3: x to arg4: y from arg5: screen width arg6: screen height arg7: is graph on parent arg8 ???
of course after changing the bounds, you should also resize the array to the correct length. hmm, maybe someone can finish this puzzle. marius.
----- Original Message ----- From: "Marc Lavallée" marc@hacklava.net To: pd-list@iem.at Sent: Sunday, May 23, 2004 9:56 PM Subject: Re: [PD] Dynamically setting array bounds
Le 23 Mai 2004 13:28, Michal Seta a écrit :
I would like to be able to change the Y range of arrays and at the same time be able to keep it within the bounding box. Is this presenty possible either through messages (I skimmed through the array sources and it didn't look like it) or some externs?
I don't think it's possible to dynamically change the resolution of the samples. Maybe I don't understand the question... -- Marc
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
I know that if you send soundfiler a "read -resize sound.wav array" message it will automatcally resize the array. hope that helps.
-ish
Michal Seta wrote:
Hello,
I would like to be able to change the Y range of arrays and at the same time be able to keep it within the bounding box. Is this presenty possible either through messages (I skimmed through the array sources and it didn't look like it) or some externs?
thanks.
Ian Smith-Heisters heisters@0x09.com writes:
I know that if you send soundfiler a "read -resize sound.wav array" message it will automatcally resize the array. hope that helps.
that's X values (horizontal). I want vertical. Thanks for the effort, anyways.
Any other ideas?
Michal Seta wrote:
Hello,
I would like to be able to change the Y range of arrays and at the same time be able to keep it within the bounding box. Is this presenty possible either through messages (I skimmed through the array sources and it didn't look like it) or some externs?
thanks.
Hi,
have you tried :
; array_name bounds x1 y1 x2 y2
Saludos
Mirko Petrovich prab@terra.cl writes:
; array_name bounds x1 y1 x2 y2
Yes! That's what I was looking for, thanks. Except it works as follows:
array_name bounds X-from Y-to X-to Y-from
Maybe a little counter-intuitive but I guess I could get used to it.
Now, a question for extra points:
can I also set Screen Width/Height via a message?
Ah, nevermind for now. I just noticed Marius' answer to my previous question and I will try o figure out what's up with creating graphs from scratch... but not tonight...
Michal Seta mis@creazone.32k.org writes:
Now, a question for extra points:
can I also set Screen Width/Height via a message?