<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-flowed"
 style="font-family: -moz-fixed; font-size: 13px;" lang="x-western">Hi,
<br>
I have tried to change graph-on-parents settings by message for
displaying different arrays, it seems to work..
<br>
I did'nt test it with large tables.
<br>
(included patch : switchingGOPtables.pd).
<br>
<br>
Jean Yves Gratius <a class="moz-txt-link-rfc2396E"
 href="http://jy.gratius.free.fr">&lt;http://jy.gratius.free.fr&gt;</a>
<br>
<br>
<br>
Chuckk Hubbard a &eacute;crit :
<br>
<blockquote type="cite">On Dec 9, 2007 10:50 PM, Phil Stone <a
 class="moz-txt-link-rfc2396E" href="mailto:pkstone@ucdavis.edu">&lt;pkstone@ucdavis.edu&gt;</a>
wrote:
  <br>
&nbsp;
  <blockquote type="cite">Hi Chuck,
    <br>
    <br>
I think you're right; there's no way to avoid the copying.&nbsp; It's good
to
    <br>
dream, though.&nbsp; <span class="moz-smiley-s1"><span> :-) </span></span>
    <br>
&nbsp;&nbsp;&nbsp; </blockquote>
  <br>
I have done some experimenting, and I think I'm on to something.&nbsp; If
  <br>
you create a graph from the put menu, then right-click and select
  <br>
Open; and then Put an array on the opened subpatch, you can see the
  <br>
red outline where you can decide what will be graphed-on the parent
  <br>
graph.
  <br>
  <br>
It would not be too hard to send editmode and mouse movement messages
  <br>
to that canvas to move arrays around inside it; and it probably would
  <br>
actually be more efficient than copying.&nbsp; But I also notice that the
  <br>
graph subpatch has, in its options, an x and y margin, which moves the
  <br>
red outline.&nbsp; IF it's possible to change these values with messages,
  <br>
it could be trivial to move that red outline to cover several
  <br>
well-placed arrays, meaning that the graph would indeed switch arrays
  <br>
like you want.
  <br>
I started to look at the Pd code to see if I can find such a message
  <br>
mentioned; if I find it I'll let you know.
  <br>
  <br>
-Chuckk
  <br>
  <br>
  <br>
  <br>
&nbsp;
  <blockquote type="cite">Chuckk Hubbard wrote:
    <br>
&nbsp;&nbsp;&nbsp;
    <blockquote type="cite">It would be possible, if not CPU-efficient,
to have them all hidden in
      <br>
table objects, and simply use tabread and tabwrite to copy them to the
      <br>
skeleton array when you want to switch.&nbsp; You would only need one
      <br>
tabread and tabwrite pair, just different ways to specify the target
      <br>
of tabread.
      <br>
I would envision binding the tab key to page through them.
      <br>
      <br>
But it is possible to put several arrays in one graph which makes me
      <br>
wonder if there might even be a pure GUI way to do it.&nbsp; Kind of makes
      <br>
me want to take a look...
      <br>
      <br>
-Chuckk
      <br>
      <br>
On Dec 8, 2007 10:26 PM, Phil Stone <a class="moz-txt-link-rfc2396E"
 href="mailto:pkstone@ucdavis.edu">&lt;pkstone@ucdavis.edu&gt;</a>
wrote:
      <br>
      <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <blockquote type="cite">This probably fits into the category of a
wish for PD; I think there's
        <br>
no way to do it currently, but I'd love to be proven wrong!
        <br>
        <br>
I'd like to be able to change the data an array points to rather than
        <br>
actually change the data in the array.&nbsp; The scenario which me think of
        <br>
this is, I'd like to have a display of a currently-selected waveform
        <br>
(which could be one of many pre-allocated arrays).&nbsp; It would be
        <br>
wonderful to have a level of indirection where the display-array can be
        <br>
given a new address [object reference?] to one of the various
        <br>
pre-allocated arrays, after which it redraws itself.
        <br>
        <br>
I suppose this unleashes all the evils of pointers (multiple references
        <br>
to memory, etc.), but it would a serious advantage, performance-wise,
        <br>
for the scenario I'm envisioning.
        <br>
        <br>
I also think it would be very cool if arrays could act as buttons...but
        <br>
that's a different subject.
        <br>
        <br>
        <br>
Phil Stone
        <br>
pkstonemusic.com
        <br>
        <br>
        <br>
_______________________________________________
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:PD-list@iem.at">PD-list@iem.at</a>
mailing list
        <br>
UNSUBSCRIBE and account-management -&gt; <a
 class="moz-txt-link-freetext"
 href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
        <br>
        <br>
        <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </blockquote>
      <br>
      <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </blockquote>
&nbsp;&nbsp;&nbsp; </blockquote>
  <br>
  <br>
  <br>
&nbsp; </blockquote>
<br>
</div>
<div class="moz-text-plain" wrap="true" graphical-quote="true"
 style="font-family: -moz-fixed; font-size: 13px;" lang="x-western">
<pre wrap="">
</pre>
</div>
</body>
</html>