<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[warning: I&#x27;m saving an array with 440100 points!]]></title><description><![CDATA[<p>Hi Everyone,</p>
<p>I am using a few gong and bell sounds in something i am doing. These are audio files that are maybe 4 or so seconds long. I am putting the audio file into a soundfiler object, then into an array. I am doing this because I am playing the file back at different speeds.</p>
<p>I am getting this error in the console:</p>
<p>warning: I'm saving an array with 440100 points!</p>
<p>I guess my method is eating up a lot of ram or something.</p>
<p>What would be the best way to use this file so I can play it back at different speeds, but not eat up a lot of RAM?</p>
<p>Thank You. Nick</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14057/warning-i-m-saving-an-array-with-440100-points</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 16:30:49 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14057.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Sep 2022 00:18:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to warning: I&#x27;m saving an array with 440100 points! on Mon, 05 Sep 2022 00:18:07 GMT]]></title><description><![CDATA[<p>Hi Everyone,</p>
<p>I am using a few gong and bell sounds in something i am doing. These are audio files that are maybe 4 or so seconds long. I am putting the audio file into a soundfiler object, then into an array. I am doing this because I am playing the file back at different speeds.</p>
<p>I am getting this error in the console:</p>
<p>warning: I'm saving an array with 440100 points!</p>
<p>I guess my method is eating up a lot of ram or something.</p>
<p>What would be the best way to use this file so I can play it back at different speeds, but not eat up a lot of RAM?</p>
<p>Thank You. Nick</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14057/warning-i-m-saving-an-array-with-440100-points</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14057/warning-i-m-saving-an-array-with-440100-points</guid><dc:creator><![CDATA[nicnut]]></dc:creator><pubDate>Mon, 05 Sep 2022 00:18:07 GMT</pubDate></item><item><title><![CDATA[Reply to warning: I&#x27;m saving an array with 440100 points! on Tue, 06 Sep 2022 00:45:14 GMT]]></title><description><![CDATA[<blockquote>
<p>I guess my method is eating up a lot of ram or something.</p>
</blockquote>
<p>Well, loading sound files into memory is going to use memory, but that's not what the message is about.</p>
<p>FWIW, 441000 32-bit samples = 441000 * 4 bytes = 1764000 = about 1.7 MB, so a few such files would consume a few MB. In modern computers, this is nothing to be concerned about.</p>
<p>I believe the warning relates to the &quot;save contents&quot; checkbox in the array's properties. If enabled, it will write the array's data into the pd patch file... in ASCII decimal format, 9-10 bytes per sample. This is really inefficient. Usually you don't want to do this for audio arrays. So it tells you, &quot;hey btw, you're getting piles and piles of audio data written out as text into your patch, are you sure?&quot; and then you have the opportunity to right-click on the array and uncheck the &quot;save contents&quot; box.</p>
<p>Usually you shouldn't see that, though, because soundfiler should uncheck that box for you when you do &quot;read -resize&quot;:</p>
<p>&quot;warning: array array2: clearing save-in-patch flag&quot;</p>
<p>So I'm not sure how you're ending up with the box checked (unless you saw the &quot;clearing save-in-patch&quot; warning and manually went to Properties to re-check it).</p>
<p>Anyway if you're loading audio from a disk file, then there's no point in saving it in the patch. Save-in-patch is good for small arrays where you don't want to have a separate file for the data... but you already have a separate audio file. Hence &quot;save-in-patch&quot; + soundfiler is only wasting CPU time and disk space.</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14057/warning-i-m-saving-an-array-with-440100-points/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14057/warning-i-m-saving-an-array-with-440100-points/2</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Tue, 06 Sep 2022 00:45:14 GMT</pubDate></item><item><title><![CDATA[Reply to warning: I&#x27;m saving an array with 440100 points! on Tue, 06 Sep 2022 02:39:35 GMT]]></title><description><![CDATA[<p>hey <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a></p>
<p>Thank you for that information. I have like 40 arrays with soundfiles in them and all of them were checked with the &quot;save contents&quot; option. I just unchecked all of them and it made the warnings go away.</p>
<p>Thank you so much for the information. I just learned something new!</p>
<p>Take care. Nick</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14057/warning-i-m-saving-an-array-with-440100-points/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14057/warning-i-m-saving-an-array-with-440100-points/3</guid><dc:creator><![CDATA[nicnut]]></dc:creator><pubDate>Tue, 06 Sep 2022 02:39:35 GMT</pubDate></item></channel></rss>