Hi guys,<br><br>Thanks for all your suggestions and explanations ([trigger], [;semicolon message( acting a senders, dollars init variables vs. other dollar variables, the magic of $0, ...). Since I&#39;ll probably put a lot of scrolling graphs in my app, I think I&#39;ll go with the initialization argument solution and modify pdd_scroll as needed.<br>
<br>Cyrille, I did not have time to test mapping/timeroll yet. I guess this is in SVN extensions/abstractions/externals/.... I need to dig extensions in order to find ones I could use (widgets like gauges, knob, etc...).<br>
<br><br>Cheers,<br>Seb<br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Sebastien,<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Sebastien Lelong hat gesagt: // Sebastien Lelong wrote:<br>
<br>
  <br>
</div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have one question though (not related to [trigger]). In your example, as<br>
in Martin&#39;s, you use $0-a16 to name the array. I understand $0 is used when<br>
building an abstraction and creating multiple instances of this abstraction.<br>
My question is how can I configure this array, from the parent (from the<br>
patch using the abstraction) ? For instance, I&#39;d like to add &quot;xticks&quot;,<br>
&quot;ylabel&quot;, etc... I usually use a message, like:<br>
_________________<br>
[array1 ylabel -1 0 1 (<br>
<br>
but the same with $0-a16 obsviously doesn&#39;t work, since $0 is not known (I<br>
understand it&#39;s a counter incremented at each creation).     <br>
</blockquote></div></blockquote>
<br>
if there aren&#39;t too many of those arrays in your patch, probably Frank&#39;s solution is far more simple and convenient.<br>
<br>
another possibility would be using creation arguments as names. you would then use $1-arrayname in an abstraction instead of $0-arrayname which uses the first creation argument of the abstraction in your parent patch. (so $2 stands for the second creation argument and so on)<br>

<br>
if you create an object [myabstraction something]  in your parent patch you can access the array&#39;s properties by sending for example<br>
<br>
[ylabel -1 0 1(<br>
|<br>
[s something-arrayname]<br>
<br>
or like you wrote before using<br>
[; something-arrayname ylabel -1 0 1(]<br>
<br>
also have a look at /doc/2.control.examples/14.dollarsigns.pd for more stuff with dollar signs as creation arguments. (i found it kind of confusing the first time, so perhaps better don&#39;t try too hard and have a look later again)<br>

<br>
notice that dollar signs in messages like<br>
<br>
[$1 $2 (<br>
<br>
are not the same as dollar signs from creation arguments. That&#39;s one thing which can also seem strange when learning pd...<br>
<br>
Just try the below to understand what dollar signs stand for in messages.<br>
<br>
[one two three four(<br>
|<br>
[$2 $3 $1(<br>
|<br>
[print]<br>
<br>
Dollar sings in messages like the above are not affected by creation arguments, by default they return 0 (and an error message, just click on the message [$2 $3 $1( directly to see that).<br>
<br>
in the ppd_scroll abstraction you would have to change each $0-graph into $3-graph (because $1 and $2 are already in use) and then create instances of it like [ppd_scroll 10 1 myname] and send settings to myname-graph then.<br>

<br>
cheers,<br><font color="#888888">
Martin<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Sébastien Lelong<br><a href="http://www.sirloon.net">http://www.sirloon.net</a><br><a href="http://sirbot.org">http://sirbot.org</a><br>