Ok, got it. Thanks.<br><br><div class="gmail_quote">On Tue, Oct 16, 2012 at 10:37 AM, Jonathan Wilkes <span dir="ltr">&lt;<a href="mailto:jancsika@yahoo.com" target="_blank">jancsika@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ah, I see:<br>
<br>
When you load a sound using [soundfiler] (which I assume is what you&#39;re doing)<br>
Pd is trying to keep you from accidentally saving an enormous array with<br>
the patch.  I suppose the logic it uses is based on the notion that a) a  _default_<br>
&quot;Put&quot; menu array is very small (only 100 elements), b) &quot;save contents<br>
with patch&quot; is checked by default, and c) anyone wanting to actually save<br>
array data with a patch is going to pick an array size and stick with it.  Thus in<br>
d_soundfile.c you get this logic:<br>
<br>
* if the soundfile loaded is the exact same size as the array, it won&#39;t change the<br>
status of the &quot;save contents&quot; checkbutton.<br>
* if the soundfile is a different size than the array then it resizes the array,<br>
assumes that the &quot;save contents&quot; was checked simply because it&#39;s the<br>
default and not because the user wanted it checked, and finally<br>
turns it off and gives you a warning.<br>
<br>
It has certainly kept me from saving unwanted array state with<br>
a patch.  But as you&#39;ve experienced, that behavior doesn&#39;t make much<br>
sense if you actually want to save array data and aren&#39;t sticking with a<br>
specific size.<br>
<div class="im"><br>
-Jonathan<br>
<br>
<br>
&gt;________________________________<br>
&gt; From: Alexandros Drymonitis &lt;<a href="mailto:adrcki@gmail.com">adrcki@gmail.com</a>&gt;<br>
&gt;To: Jonathan Wilkes &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;<br>
&gt;Cc: PD-list &lt;<a href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br>
</div>&gt;Sent: Tuesday, October 16, 2012 2:55 AM<br>
<div class="HOEnZb"><div class="h5">&gt;Subject: Re: [PD] &#39;save contents&#39; in an array<br>
&gt;<br>
&gt;<br>
&gt;Yes, I&#39;m aware of all this saving contents issues. What I did was clicking on &#39;save contents&#39; and the load some sound and I was getting this message:<br>
&gt;warning: array array1: clearing save-in-patch flag<br>
&gt;<br>
&gt;But loading the sound first and then clicking on &#39;save contents&#39; and then saving the patch works. I guess I was a bit stressed out when I was trying to do this and couldn&#39;t really think properly.<br>
&gt;<br>
&gt;<br>
&gt;On Tue, Oct 16, 2012 at 2:04 AM, Jonathan Wilkes &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt; wrote:<br>
&gt;<br>
&gt;Yes it should save the array contents with the patch.<br>
&gt;&gt;<br>
&gt;&gt;What version of Pd and what operating system?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;Also-- you can attach small patches to your message<br>
&gt;&gt;so other people can inspect it.  But if you have an array,<br>
&gt;&gt;usually you want to make sure that you _don&#39;t_ save<br>
&gt;&gt;<br>
&gt;&gt;save the contents with the patch. Otherwise your patch<br>
&gt;&gt;can become very large.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;-Jonathan<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt;________________________________<br>
&gt;&gt;&gt; From: Alexandros Drymonitis &lt;<a href="mailto:adrcki@gmail.com">adrcki@gmail.com</a>&gt;<br>
&gt;&gt;&gt;To: Jonathan Wilkes &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;<br>
&gt;&gt;&gt;Cc: PD-list &lt;<a href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br>
&gt;&gt;&gt;Sent: Monday, October 15, 2012 4:23 PM<br>
&gt;&gt;&gt;Subject: Re: [PD] &#39;save contents&#39; in an array<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;Ok, but if you save the patch after you&#39;ve clicked on &#39;save contents&#39; in your array, shouldn&#39;t it save the patch with the contents in the array?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;On Mon, Oct 15, 2012 at 11:20 PM, Jonathan Wilkes &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;Yes but if I recall correctly clicking the checkbox doesn&#39;t automatically save the<br>
&gt;&gt;&gt;&gt;patch.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;-Jonathan<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;________________________________<br>
&gt;&gt;&gt;&gt;&gt; From: Alexandros Drymonitis &lt;<a href="mailto:adrcki@gmail.com">adrcki@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;To: PD-list &lt;<a href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br>
&gt;&gt;&gt;&gt;&gt;Sent: Monday, October 15, 2012 4:15 PM<br>
&gt;&gt;&gt;&gt;&gt;Subject: [PD] &#39;save contents&#39; in an array<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;Hi all,<br>
&gt;&gt;&gt;&gt;&gt;If you activate the &#39;save contents&#39; tick in an array, it supposed to save whatever you save in it, so next time you open the patch,  the arryay&#39;s contents will be there, right? I&#39;ve made a patch but this really won&#39;t work. Any ideas why?<br>

&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;Thanks<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;_______________________________________________<br>
&gt;&gt;&gt;&gt;&gt;<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt;&gt;&gt;&gt;&gt;UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>