<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: URGENT : sfplay~ and RAM</title>
		<atom:link href="http://cycling74.com/forums/topic/urgent-sfplay-and-ram/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 00:44:03 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-26411</guid>
					<title><![CDATA[URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-26411</link>
					<pubDate>Wed, 14 Jun 2006 13:06:38 +0000</pubDate>
					<dc:creator>Manuel Poletti</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Cycling,</p>
<p>I&#8217;m experimenting strange RAM behaviour while using sfplay~ in  <br />
multichannel mode :</p>
<p>whatever the number of channels is &#8211; 4, 8, 6, 12 or 16 &#8211; , when I  <br />
preload several soundfiles into sfplay cues, and start playing each  <br />
cue sequentially, the RAM used by MSP is continuously increasing,  <br />
once the preloaded part of the sound has been read (cf &#8220;top&#8221; in  <br />
Terminal app).<br />
As I loop the sequence of cues, the free RAM gets soon totally  <br />
fullfilled, then, soon or later, Max simply quits &#8211; no crash log or so.<br />
It looks like sfplay~ continuously &#8220;preloads&#8221; the part of sound it  <br />
has to play, without ever clearing the already-read part from the RAM.<br />
Of course, I&#8217;ve tried, changing buffer size, using sflist~, splitting  <br />
soundfiles in smaller formats, installing a new system, on several  <br />
machines, downgrading Max to earlier versions, etc : same behaviour.</p>
<p>Thank you for a quick help from Cycling developers, we&#8217;re several  <br />
here to experiment LOTS of problems with sfplay~ in general, and THIS  <br />
OBJECT IS TOO IMPORTANT for live performances (some are thinking  <br />
using readsf~ from PD, via flext &#8211; cool).<br />
I have now a new sound installation wich cannot run safely, due to that.<br />
We must know if we can finally trust or not a simple multichannel  <br />
soundfile player in Max &#8211; or should we use f%$#@#@ sequencer ?</p>
<p>Thanks,</p>
<p>- and sorry, no time to google the site&#8230;</p>
<p>
_M</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78908</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78908</link>
					<pubDate>Wed, 14 Jun 2006 15:48:01 +0000</pubDate>
					<dc:creator>Manuel Poletti</dc:creator>

					<description>
						<![CDATA[
						<p>Precision :</p>
<p>same behavior with :<br />
- G5 bipro 2GHz (several), G4 Powerbook 17&#8243;<br />
- OS 10.4.5, OS 10.4.6<br />
- Max 4.5.4, 4.5.5, 4.5.6, 4.5.7<br />
- sfplay~ 1, 2, 4, 6, 8, 12, 16, using either [preload cueID] or  <br />
[open, 1] messages &#8211; different buffer sizes<br />
- use sflist~ to preload the files, then access them with named sfplay~<br />
- internal HD, external HD, boot from external HD (brand new OS 10.4.6)<br />
&#8230;</p>
<p>It looks that Max never frees the RAM sfplay~ uses, rather it is sent  <br />
to &#8220;inactive memory&#8221;, according to terminal.<br />
So, in fact, it is like sfplay loads slowly the entire soundfiles  <br />
into RAM.<br />
As soon as the entire RAM is handled by Max, if I try something using  <br />
another trhead (a network access, for instance), the audio starts  <br />
clicking, I get random delays between the different tracks from the  <br />
soundfile, etc., then crash.</p>
<p>Please help &#8211; I can&#8217;t buy 5 Gb of RAM to solve the problem&#8230;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78909</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78909</link>
					<pubDate>Wed, 14 Jun 2006 16:27:59 +0000</pubDate>
					<dc:creator>sfogar</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>please can you post a patch showing this behaviour ?</p>
<p>I too have experienced this same behaviour but only in certain patches<br />
(for example inside lloopp).</p>
<p>I have not been able to show to Joshua an evidence of the problem</p>
<p>All the best</p>
<p>Alessandro Fogar</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78910</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78910</link>
					<pubDate>Wed, 14 Jun 2006 16:41:39 +0000</pubDate>
					<dc:creator>Manuel Poletti</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>just open sfplay~.help, load a long soundfile, play it and watch the  <br />
RAM percentage in Terminal.<br />
Takes time if the sfplay~ is mono until the free RAM is empty (the  <br />
more channels the fastest).<br />
Take several soundfiles to make a full test, since it seems that Max  <br />
keeps track of preloaded files until you instanciate the object  <br />
again, or quit Max.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78911</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78911</link>
					<pubDate>Wed, 14 Jun 2006 16:50:09 +0000</pubDate>
					<dc:creator>Manuel Poletti</dc:creator>

					<description>
						<![CDATA[
						<p>><br />
> Take several soundfiles to make a full test, since it seems that  <br />
> Max keeps track of preloaded files until you instanciate the object  <br />
> again, or quit Max.</p>
<p>Sorry, quitting is not enough &#8211; you must RESTART the machine so that  <br />
Max loses track of the old preloaded file.<br />
C&#8217;mon&#8230;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78912</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78912</link>
					<pubDate>Wed, 14 Jun 2006 20:02:50 +0000</pubDate>
					<dc:creator>ph_m</dc:creator>

					<description>
						<![CDATA[
						<p>Hello Manuel,</p>
<p>I made several tests here with LightRegie120x and its sound files <br />
reader.<br />
You are absolutely right, available ram decreases during playback. The <br />
mac must be restarted to recover RAM.<br />
I noticed this does not happend when you repeat a file, it&#8217;s just with <br />
&#8220;new&#8221; ones.<br />
I finally &#8211; at that time- used the sflist~ option since I was never <br />
lucky with sfplay~ by itself: too many inpredictable crashes.<br />
I could simply not imagine a soundtrack abruptly stop during a theater <br />
performance&#8230; At this time, it works but in theater conditions, since <br />
soundtrack is not the most important thing, thanks to actors ;-)<br />
I use a G4 PWB 1.25 gHz / 1.25 Go ram/ Mac OSX 10.3.9 &#038; a 1 Go USB2 key <br />
for files. The current version of LR120x use the last available version <br />
of MaxMSP.<br />
I finally made some tests with a jit.qt.movie object wich can play aif <br />
files: the phenomenon does not happen. Maybe a short term alternative <br />
for you?<br />
Best,<br />
Philippe</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78913</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78913</link>
					<pubDate>Wed, 14 Jun 2006 20:16:51 +0000</pubDate>
					<dc:creator>sfogar</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>we already talked about this here:</p>
<p>  <a href="http://www.cycling74.com/forums/index.php?t=tree&#038;th=1133" rel="nofollow">http://www.cycling74.com/forums/index.php?t=tree&#038;th=1133</a> 9<br />
and here</p>
<p>  <a href="http://www.cycling74.com/forums/index.php?t=tree&#038;th=1510" rel="nofollow">http://www.cycling74.com/forums/index.php?t=tree&#038;th=1510</a> 9<br />
All the best</p>
<p>Alessandro Fogar</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78914</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78914</link>
					<pubDate>Thu, 15 Jun 2006 19:19:04 +0000</pubDate>
					<dc:creator>Francois Weber</dc:creator>

					<description>
						<![CDATA[
						<p>hi philippe / Manuel</p>
<p>I made several tests too and have the same sfplay~ behaviour.<br />
I use a G4 PWB 1.25 gHz / 1.25 Go ram/ Mac OSX 10.4.6 /Max 4.5.7.<br />
Same bug whith build app.</p>
<p>using jit.qt.movie is not a &#8220;MSP&#8221; alternative.<br />
using a seq. like Live, with a Max patch is a good idea to become crazy!</p>
<p>So, I need a simple way to play SFiles. is it so hard to do ?</p>
<p>Hope someone will solve sfplay~&#8217;S problemS. <br />
maybe at IRCAM&#8230;.</p>
<p>best,<br />
Francois</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78915</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78915</link>
					<pubDate>Thu, 15 Jun 2006 20:08:06 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78916</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78916</link>
					<pubDate>Thu, 15 Jun 2006 22:52:49 +0000</pubDate>
					<dc:creator>kochhw</dc:creator>

					<description>
						<![CDATA[
						<p>while i never had this problem before, yesterday it hit on me in its  <br />
full glory.<br />
a mildly complicated patch (mostly graphic stuff) for a 5.1.  <br />
installation setup completely started to screw up the machine. (last  <br />
days i hadnt had time to read the list, so i wasnt warned what could  <br />
be going wrong).</p>
<p>the things is: playing a 6 channel-.aif-file starts shifting the ram  <br />
to &#8220;inactive&#8221; (as seen in terminal &#8220;top&#8221;), which is never freed.  <br />
after playing a couple of those files, of course, paging starts and  <br />
then things go really bad. increasing diskbuffersize was no help.</p>
<p>what drove me nuts is, that it only occurs on the installation- <br />
machine (a minmac 1.42 ghz, 10.4.6, 512mb ram, max/msp/jitter  <br />
runtime/ demo-mode 4.5.7).<br />
with the same patch on my pb (1.5 ghz, 1.5 g ram, 10.4.6 max/msp/ <br />
jitter) this behaviour doesnt occur.<br />
strange.<br />
even stranger: out of curiosity i made a simple pd-patch for playing  <br />
the same multichannel-files. same problem on the minimac, no problem  <br />
on the pb.<br />
so it seems to be some bad system voodo rather than max alone.</p>
<p>my clumsy workaround: with the shell object i keep an eye on the free  <br />
ram. whenever it goes below a certain threshold, audio is stopped and  <br />
a buffer of approximately the size of the inactive memory is scripted  <br />
and then immediately destroyed. this frees the ram again (of course,  <br />
paging also happens, but it isnt that bad as before. tests still  <br />
running).</p>
<p>but still: what is it, that simply playing back audio-files can be  <br />
such a hassle???</p>
<p>puzzled<br />
hans</p>
<p>p.s.: the patch to reproduce (or not) is so simple, taht i barely  <br />
dont dare to attach, but anyway:</p>
<p>max v2;<br />
#N vpatcher 14 59 614 459;<br />
#P toggle 84 78 15 0;<br />
#P toggle 46 146 15 0;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P newex 81 183 101 196617 dac~ 1 2 3 4 5 6;<br />
#P message 68 114 30 196617 open;<br />
#N sfplay~  6 161280 0 ;<br />
#P newobj 81 142 119 196617 sfplay~ 6 161280;<br />
#P connect 4 0 0 0;<br />
#P connect 1 0 0 0;<br />
#P connect 3 0 2 0;<br />
#P connect 0 0 2 0;<br />
#P connect 0 1 2 1;<br />
#P connect 0 2 2 2;<br />
#P connect 0 3 2 3;<br />
#P connect 0 4 2 4;<br />
#P connect 0 5 2 5;<br />
#P pop;</p>
<p>
hans w. koch<br />
im krahnenhof 11<br />
d-50668 koeln<br />
+49-221-554902<br />
<a href="http://www.hans-w-koch.net" rel="nofollow">http://www.hans-w-koch.net</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78917</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78917</link>
					<pubDate>Fri, 16 Jun 2006 12:21:55 +0000</pubDate>
					<dc:creator>Manuel Poletti</dc:creator>

					<description>
						<![CDATA[
						<p>
On Jun 15, 2006, at 10:08 PM, Joshua Kit Clayton wrote:</p>
<p>> We will of course look into (don&#8217;t expect an *urgent* fix by some  <br />
> deadline imposed by your projects, however, as we have many  <br />
> priorities and this is surely not our topmost).</p>
<p>Sorry ?<br />
My project is certainly not a priority, but I would like to know if I  <br />
can trust soundfiles to be played on a computer with Max or not.<br />
For the time being, it seems that I could save the installation by  <br />
adding 4 Gb of RAM (soundfiles take 3.5 Gb).<br />
Fortunately, I didn&#8217;t have to pull out the money from my own pocket &#8211;  <br />
fortunately too, I could take enough time to track the problem (be  <br />
sure that I wouldn&#8217;t ring the support before at least 3 full days of  <br />
hard debugging), as I&#8217;m still a (temporar) employee.<br />
As mentionned by another user, discussions around this topic started  <br />
in 2004.<br />
if playing sounds with Max safely is not your topmost priority, I&#8217;m  <br />
very curious to know in wich position in the list comes the present  <br />
and future of doing audio with Max.</p>
<p>> Also note that cues remain resident in RAM. If you just generate  <br />
> more and more cues, they each will require the preload amount in  <br />
> RAM (for the *lifetime* of the cue). Replacing an existing cue  <br />
> number will free it and load a new one in place. However if you are  <br />
> just increasing cue numbers. RAM *will* grow without bound.</p>
<p>I only generate 12 cues in 2 sfplay~ object (so, 24 cues) using the  <br />
[preload cue-number filename] message.<br />
Sfplay~ have an argument of 12 tracks, and the 60480 recommended  <br />
value (.help) for the buffer size argument.<br />
Soundfiles have a length around 2mn each, each output is connected to  <br />
a dac-number.<br />
Then I play those 24 cues one after the other, using an int  <br />
corresponding to the cue-number.<br />
The total length of the loop is about 48 mn, wich is repeated from 11  <br />
a.m to 22 p.m.<br />
That&#8217;s all what I&#8217;m doing there.</p>
<p>> As for cue list looping leading to VRAM issues (including in a  <br />
> multi-channel setting), I&#8217;ve attached the following patch which  <br />
> does n cause RAM to grow without bound on my machine 10.4.7. Does  <br />
> this patch grow without bound for you, Manuel?</p>
<p>As far as I can see, no.<br />
Have a look on the patch issued from mine (maybe generate a 12 tracks  <br />
soundfile &#8211; I&#8217;ve put a small recorder inside &#8211; and replace the  <br />
filenames with yours).<br />
This one does.</p>
<p>Thank you,</p>
<p>_Manuel</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P newex 472 134 34 196617 pink~;<br />
#P toggle 379 163 15 0;<br />
#P message 396 163 30 196617 open;<br />
#P newex 421 215 157 196617 sfrecord~ 12;<br />
#P newex 472 159 41 196617 *~ 0.1;<br />
#P user ezdac~ 362 304 406 337 0;<br />
#P toggle 258 97 15 0;<br />
#P newex 258 116 29 196617 gate;<br />
#P message 86 38 109 196617 2 3 4 5 6 7 8 9 10 11;<br />
#P window linecount 3;<br />
#P message 288 35 407 196617 preload 2 01-LoupVoyeur-A , preload 3  <br />
03-Rencontre-A , preload 4 06-InBed-A , preload 5 09-Fugana-A ,  <br />
preload 6 11-Souffle-A , preload 7 01-LoupVoyeur-B , preload 8 03- <br />
Rencontre-B , preload 9 06-InBed-B , preload 10 09-Fugana-B ,  <br />
preload 11 11-Souffle-B;<br />
#P window linecount 1;<br />
#P newex 86 329 170 196617 dac~ 1 2 3 4 5 6 7 8 9 10 11 12;<br />
#P user meter~ 240 303 320 316 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#P user meter~ 226 285 306 298 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#P user meter~ 212 267 292 280 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#P user meter~ 198 249 278 262 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#P user meter~ 184 231 264 244 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#P user meter~ 170 213 250 226 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#P user meter~ 156 195 236 208 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#P user meter~ 142 177 222 190 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#P user meter~ 128 159 208 172 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#P user meter~ 114 141 194 154 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#P user meter~ 100 123 180 136 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#P user meter~ 86 105 166 118 50 0 168 0 103 103 103 255 153 0 255 0  <br />
0 217 217 0 153 186 0 12 3 3 3 3;<br />
#N sfplay~  12 120960 0 ;<br />
#P newobj 86 75 179 196617 sfplay~ 12;<br />
#P connect 16 0 15 0;<br />
#P connect 14 0 0 0;<br />
#P connect 15 0 0 0;<br />
#P connect 0 0 1 0;<br />
#P connect 0 0 13 0;<br />
#P connect 0 1 2 0;<br />
#P connect 0 1 13 1;<br />
#P connect 0 2 3 0;<br />
#P connect 0 2 13 2;<br />
#P connect 0 3 4 0;<br />
#P connect 0 3 13 3;<br />
#P connect 0 4 5 0;<br />
#P connect 0 4 13 4;<br />
#P connect 0 5 6 0;<br />
#P connect 0 5 13 5;<br />
#P connect 0 6 7 0;<br />
#P connect 0 6 13 6;<br />
#P connect 0 7 8 0;<br />
#P connect 0 7 13 7;<br />
#P connect 0 8 9 0;<br />
#P connect 0 8 13 8;<br />
#P connect 0 9 10 0;<br />
#P connect 0 9 13 9;<br />
#P connect 0 10 11 0;<br />
#P connect 0 10 13 10;<br />
#P connect 0 11 12 0;<br />
#P connect 0 11 13 11;<br />
#P connect 17 0 16 0;<br />
#P connect 0 12 16 1;<br />
#P connect 19 0 20 0;<br />
#P connect 22 0 20 0;<br />
#P connect 21 0 20 0;<br />
#P connect 19 0 20 1;<br />
#P connect 19 0 20 2;<br />
#P connect 19 0 20 3;<br />
#P connect 23 0 19 0;<br />
#P connect 19 0 20 4;<br />
#P connect 19 0 20 5;<br />
#P connect 19 0 20 6;<br />
#P connect 19 0 20 7;<br />
#P connect 19 0 20 8;<br />
#P connect 19 0 20 9;<br />
#P connect 19 0 20 10;<br />
#P connect 19 0 20 11;<br />
#P window clipboard copycount 24;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78918</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78918</link>
					<pubDate>Fri, 16 Jun 2006 15:20:16 +0000</pubDate>
					<dc:creator>dom</dc:creator>

					<description>
						<![CDATA[
						<p>If I recall correctly it was I who instigated a lot the discussion  <br />
regarding the problems with sfplay~. Mainly it not playing without a  <br />
second trigger. I found the main cause to be drive speed. It was  <br />
running on a powerbook at the time, moving all the audio onto a fast  <br />
firewire drive cured it for me, but I did end up using Live for all  <br />
critical audio just for safetys sake.</p>
<p>My apologies if this has already been suggested as I haven&#8217;t been  <br />
following the thread.</p>
<p>Peas</p>
<p>Dom</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78919</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78919</link>
					<pubDate>Fri, 16 Jun 2006 16:37:42 +0000</pubDate>
					<dc:creator>Manuel Poletti</dc:creator>

					<description>
						<![CDATA[
						<p>> Hope someone will solve sfplay~&#8217;S problemS.<br />
> maybe at IRCAM&#8230;.</p>
<p>a good joke ?-)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78920</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78920</link>
					<pubDate>Fri, 16 Jun 2006 18:34:36 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
On Jun 16, 2006, at 8:20 AM, Dominic Melville wrote:</p>
<p>> If I recall correctly it was I who instigated a lot the discussion  <br />
> regarding the problems with sfplay~. Mainly it not playing without  <br />
> a second trigger. I found the main cause to be drive speed. It was  <br />
> running on a powerbook at the time, moving all the audio onto a  <br />
> fast firewire drive cured it for me, but I did end up using Live  <br />
> for all critical audio just for safetys sake.</p>
<p>This is a different issue. That problem you are referring to is that  <br />
you need to disable HD sleep, or make sure the preload buffer is  <br />
large enough to wait for HD wake-up.</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78921</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78921</link>
					<pubDate>Fri, 16 Jun 2006 19:54:32 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
On Jun 16, 2006, at 5:21 AM, Manuel Poletti wrote:<br />
> As mentionned by another user, discussions around this topic  <br />
> started in 2004.<br />
> if playing sounds with Max safely is not your topmost priority, I&#8217;m  <br />
> very curious to know in wich position in the list comes the present  <br />
> and future of doing audio with Max.</p>
<p>In case it&#8217;s not obvious, we are committed to providing as robust and  <br />
reliable audio features as possible. Unfortunately, as far as we can  <br />
verify, Max is working properly in this regard. So it is for marginal  <br />
cases (which we are unable to verify) which this is an issue. I  <br />
appreciate your frustration, but while soundfile playback from disk  <br />
might seem to be a simple and fundamental operation to you, it is  <br />
actually quite complex, especially with sample accurate cue  <br />
triggering and looping, variable speed playback, management of  <br />
arbitrary channel/bitdepth/ sample rate sound files in the same  <br />
circular buffer fed from disk, not to mention taking into account  <br />
everything that happens under the hood in the OS with respect to  <br />
memory management, disk access, and file I/O (which, as far as I can  <br />
tell, sounds like where these sorts of reports are having a problem).</p>
<p>Thank you for the clear example. These are always recommended for any  <br />
reports.</p>
<p>After initial preload of 11 cues of 12 channel pink noise files  <br />
(10-15 seconds each):<br />
17846 MaxMSP      19.2%  2:12.15  22   651   694  32.6M  35.5M   <br />
51.0M   830M</p>
<p>After playback for several repetitions we have no signs of any  <br />
increase in RAM usage:<br />
17846 MaxMSP      20.0% 16:43.68  22   652   694  32.7M  35.6M   <br />
50.9M   830M</p>
<p>I also don&#8217;t see the inactive RAM steadily growing as Hans Koch  <br />
reported on the MacMini using either MaxMSP or PD. It just fluctuates  <br />
within a 16MB range.</p>
<p>I&#8217;ll leave in the background playing longer, but this leads me to  <br />
think that it is an OS issue as had been discussed in the previous  <br />
thread, and as suggested by Hans Koch&#8217;s post on the subject. I&#8217;ll try  <br />
to do a bit more research on how this might be the case, but, until  <br />
we can establish the problem, we can&#8217;t fix it. Even if we do  <br />
establish the problem, it sounds like it might be in the OS and out  <br />
of our control. Hans&#8217; fix for the inactive memory is also a curious  <br />
one, seemingly related to the memory manager&#8217;s inner workings rather  <br />
than anything in MaxMSP&#8217;s code.</p>
<p>
-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78922</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78922</link>
					<pubDate>Sat, 17 Jun 2006 11:06:42 +0000</pubDate>
					<dc:creator>Manuel Poletti</dc:creator>

					<description>
						<![CDATA[
						<p>> In case it&#8217;s not obvious, we are committed to providing as robust  <br />
> and reliable audio features as possible.</p>
<p>It is &#8211; I&#8217;ve experimented too many local cases where this kind of  <br />
sentence had to be understood as a legend, to not appreciate the  <br />
responsiveness here.<br />
That&#8217;s why I now use external pattented software (since 1997&#8230;).<br />
But it&#8217;s hard for me to hear that audio playback is not a prior  <br />
feature to be fixed in a software that is intended to produce audio.<br />
Numerous twisted real time/interactive/stochastic&#8230; anyway bloody  <br />
projects could be saved in the last minute using the old good &#8220;tape&#8221;.<br />
That&#8217;s what I hoped I could do using sfplay~.</p>
<p>> Unfortunately, as far as we can verify, Max is working properly in  <br />
> this regard. So it is for marginal cases (which we are unable to  <br />
> verify) which this is an issue. I appreciate your frustration, but  <br />
> while soundfile playback from disk might seem to be a simple and  <br />
> fundamental operation to you, it is actually quite complex,  <br />
> especially with sample accurate cue triggering and looping,  <br />
> variable speed playback, management of arbitrary channel/bitdepth/  <br />
> sample rate sound files in the same circular buffer fed from disk,  <br />
> not to mention taking into account everything that happens under  <br />
> the hood in the OS with respect to memory management, disk access,  <br />
> and file I/O (which, as far as I can tell, sounds like where these  <br />
> sorts of reports are having a problem).</p>
<p>I fully understand that what seems obvious as a software feature  <br />
since Sound Accelerator &#038; co appeared is hard to maintain over so  <br />
many versions of systems &#8211; especially when it has hundreds of  <br />
neighbours sitting in the same directory.<br />
But, since 1997, it is no more a marginal idea for the happy Maxers  <br />
like me to intend to simply play looped multichannel files from a  <br />
patcher during a &#8220;serious&#8221; production.<br />
So, excuse my surprise : if Digidesign couldn&#8217;t handle soundfile  <br />
playback safely, they would be dead today.<br />
It makes me remember &#8220;Jamais&#8221;-Max &#8211; wich disappeard ages ago &#8211; there  <br />
never were reliable soundfile playback&#8230;</p>
<p>> Thank you for the clear example. These are always recommended for  <br />
> any reports.<br />
><br />
> After initial preload of 11 cues of 12 channel pink noise files  <br />
> (10-15 seconds each):<br />
> 17846 MaxMSP      19.2%  2:12.15  22   651   694  32.6M  35.5M   <br />
> 51.0M   830M<br />
><br />
> After playback for several repetitions we have no signs of any  <br />
> increase in RAM usage:<br />
> 17846 MaxMSP      20.0% 16:43.68  22   652   694  32.7M  35.6M   <br />
> 50.9M   830M</p>
<p>Yes &#8211; Max seems to remain stable.<br />
On my powerbook (so, another machine), when I load the test patch  <br />
(with soundfiles preloaded), top says :</p>
<p>Processes:  52 total, 2 running, 50 sleeping&#8230; 213  <br />
threads            12:36:05<br />
Load Avg:  1.24, 0.65, 0.33     CPU usage:  23.7% user, 17.8% sys,  <br />
58.5% idle<br />
SharedLibs: num =  177, resident = 41.9M code, 4.78M data, 8.99M  <br />
LinkEdit<br />
MemRegions: num =  5172, resident =  133M + 10.3M private,  121M shared<br />
PhysMem:  92.7M wired,  135M active,  238M inactive,  466M used,   <br />
557M free<br />
VM: 5.02G +  109M   27643(0) pageins, 0(0) pageouts</p>
<p>283 MaxMSP 4.5  14.4%  1:12.18  26   804   605  38.3M  28.4M  51.8M    <br />
682M</p>
<p>After 10 minutes of playback, top displays :</p>
<p>Processes:  52 total, 3 running, 49 sleeping&#8230; 212  <br />
threads            12:45:40<br />
Load Avg:  0.96, 1.04, 0.73     CPU usage:  33.3% user, 22.0% sys,  <br />
44.7% idle<br />
SharedLibs: num =  177, resident = 38.0M code, 4.38M data, 6.15M  <br />
LinkEdit<br />
MemRegions: num =  5143, resident =  133M + 10.3M private,  116M shared<br />
PhysMem:  92.9M wired,  182M active,  735M inactive, 1011M used,  <br />
12.8M free<br />
VM: 4.93G +  109M   27656(0) pageins, 58(6) pageouts</p>
<p>  283 MaxMSP 4.5  22.4%  3:42.96  26   804   605  39.2M  26.7M   <br />
52.7M   682M</p>
<p>So, Max is OK, but the free RAM is put into inactive, and not &#8220;given  <br />
back&#8221; unless you restart the machine.<br />
Then the proportions of RAM remain more or less like that.<br />
If I run the files during hours, Max will crash soon or later.<br />
Now, we&#8217;ve added 4 Gb of RAM &#8211; + the original 1.5 Gb, wich is enough  <br />
to fit the 3.5 Gb of soundfiles in RAM &#8211; free RAM (1.5 Gb) is  <br />
stabilized once the whole files are read entireley,  and Max doesn&#8217;t  <br />
crash anymore.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78923</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78923</link>
					<pubDate>Sat, 17 Jun 2006 12:54:25 +0000</pubDate>
					<dc:creator>noid</dc:creator>

					<description>
						<![CDATA[
						<p>hi,</p>
<p>just joining in to confirm that there is more people out there having <br />
the same problem &#8211; sfplay eating all the ram&#8230;.</p>
<p>On 15.06.2006, at 22:08, Joshua Kit Clayton wrote:</p>
<p>> Replacing an existing cue number will free it and load a new one in <br />
> place.</p>
<p>exactly this is not happening on my system (I have to reboot the <br />
computer to get the ram back):</p>
<p>titanium 1 GHz, 10.3.8, max/msp 4.5.7</p>
<p>&#8230;..would be really great if there would be a fix sometimes&#8230;&#8230;</p>
<p>best<br />
noid</p>
<p>
arnold haberl: <a href="mailto:noid@klingt.org">noid@klingt.org</a><br />
dornerplatz 13/32, a-1170 wien<br />
+43-699-11 88 59 39</p>
<p><a href="http://noid.klingt.org/" rel="nofollow">http://noid.klingt.org/</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78924</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78924</link>
					<pubDate>Sat, 17 Jun 2006 18:40:37 +0000</pubDate>
					<dc:creator>Eric Lyon</dc:creator>

					<description>
						<![CDATA[
						<p>I stopped using sfplay~ in public performance several years ago due to unreliable playback (though it remains an excellent and valuable external for use in the studio). Instead I adopted the obvious solution of loading sounds into buffers for playback with groove~, but in that case of course you&#8217;re limited by the amount of RAM on your machine.</p>
<p>Joshua&#8217;s point is well-taken that unless the problem can be localized and made repeatable it is not easily solved. OTOH, on the same machine where I have had sfplay~ choke on a single stereo file (TiBook 1GHz, 512 MB RAM), I have never experienced a similar event from iTunes, or for that matter from Logic or Digital Performer. Or SoundHack. That suggests that, in theory, the problem could be solved. I&#8217;m not surprised that Pd gives similar performance, but it might still be worth checking if the SuperCollider or Csound disk file players prove more reliable.</p>
<p>In any case, even though this is reportedly a marginal problem (though of course it&#8217;s not marginal if it happens on *your* machine, especially in front of an audience), it would be nice if a universally reliable solution were found, because soundfile playback is a core functionality. Maybe even worth redesigning sfplay~ from scratch.</p>
<p>Best,<br />
Eric</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78925</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78925</link>
					<pubDate>Sat, 17 Jun 2006 18:47:55 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
Btw, I think we will be able to have this problem solved in the next  <br />
version of MaxMSP. It appears to be strange behavior in the File  <br />
Manager&#8217;s caching implementation which is an issue only on some  <br />
machines (none of which I own). There are ways to avoid the File  <br />
Manager&#8217;s cache implementation which we will use in the next version.  <br />
Thanks for your persistence in bringing this problem to our attention.</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78926</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78926</link>
					<pubDate>Sat, 17 Jun 2006 19:16:31 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
On Jun 17, 2006, at 11:40 AM, Eric Lyon wrote:</p>
<p>> Joshua&#8217;s point is well-taken that unless the problem can be  <br />
> localized and made repeatable it is not easily solved. OTOH, on the  <br />
> same machine where I have had sfplay~ choke on a single stereo file  <br />
> (TiBook 1GHz, 512 MB RAM), I have never experienced a similar event  <br />
> from iTunes, or for that matter from Logic or Digital Performer.</p>
<p>Hi Eric,</p>
<p>The above sounds like the well known HD sleep problem often discussed  <br />
on the list (and solutions posted for). And yes, Logic, and other  <br />
applications which require a similar sort of real time delivery from  <br />
the HD in time to synchronize with the RAM preloaded to play the  <br />
region will stop playback in such an instance that the HD cannot wake  <br />
up and deliver audio in time. This happens to me all the time in  <br />
Logic when the HD goes to sleep&#8230;all playback stops and I get a  <br />
dialog about not being able to synchronize audio. You might not  <br />
notice this if you just launch the program and hit play, since in  <br />
such a setting, the disk is almost always active, but if you pause  <br />
with enough time for the disk to sleep, I believe you should be able  <br />
to reproduce(unless your disk buffers in Logic are large enough to  <br />
compensate for this behavior&#8230;same is true for sfplay~). Note that  <br />
this is not the case with Sound Hack or iTunes, since in those  <br />
applications it is permissible to simply start playback once the disk  <br />
becomes active.</p>
<p>One solution to this problem is to not let the HD go to sleep. It has  <br />
been discussed that while MaxMSP is running, it should not let the HD  <br />
go to sleep, which we could do. However, I&#8217;m not sure that this is a  <br />
universally acceptable solution since people use MaxMSP for a variety  <br />
of different needs and so this should be configurable (but if  <br />
configurable, you can already do so in the energy saver control  <br />
panel, or use a large enough diskbuffer size to accommodate the  <br />
slowest of HD wakeups).</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78927</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78927</link>
					<pubDate>Sat, 17 Jun 2006 22:01:42 +0000</pubDate>
					<dc:creator>kochhw</dc:creator>

					<description>
						<![CDATA[
						<p>my tests led me to the same conclusion, since i experienced the very  <br />
same behaviour with pure-data and vlc-player on a machine which  <br />
choked on sfplay.<br />
the same patches run fine on another computer which has no problems  <br />
with sfplay either.<br />
(see my post on this thread on june 16th)</p>
<p>weird it is.<br />
hans</p>
<p>hans w. koch<br />
im krahnenhof 11<br />
d-50668 koeln<br />
+49-221-554902<br />
<a href="http://www.hans-w-koch.net" rel="nofollow">http://www.hans-w-koch.net</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78928</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78928</link>
					<pubDate>Sun, 18 Jun 2006 07:35:39 +0000</pubDate>
					<dc:creator>sfogar</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>consider that on my machine the sfplay~ inside a lloopp patch eats ram.</p>
<p>Instead, an sfplay~ inside the sfplay~.help or the patch submitted<br />
some time ago by Noid does not eat Ram.</p>
<p>If you want I can provide patch examples.</p>
<p>All the best</p>
<p>Alessandro Fogar</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78929</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78929</link>
					<pubDate>Mon, 24 Jul 2006 11:32:02 +0000</pubDate>
					<dc:creator>neal</dc:creator>

					<description>
						<![CDATA[
						<p>Did this fix make it into the current 4.6 public Beta?<br />
Also, do you have a list of the machines know to be problematic?</p>
<p>Many thanks,<br />
Neal</p>
<p>
Btw, I think we will be able to have this problem solved in the next<br />
version of MaxMSP. It appears to be strange behavior in the File<br />
Manager&#8217;s caching implementation which is an issue only on some<br />
machines (none of which I own). There are ways to avoid the File<br />
Manager&#8217;s cache implementation which we will use in the next version.<br />
Thanks for your persistence in bringing this problem to our attention.</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78930</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78930</link>
					<pubDate>Mon, 24 Jul 2006 17:50:38 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
On Jul 24, 2006, at 4:32 AM, neal wrote:</p>
<p>> Did this fix make it into the current 4.6 public Beta?</p>
<p>Yes.</p>
<p>> Also, do you have a list of the machines know to be problematic?</p>
<p>It is not specifically a HW problem, but rather a software behavior  <br />
(Finder&#8217;s File caching strategy) which we have no data that would  <br />
explain why it provides different behavior at different times. Seems  <br />
like it might be a bug or idiosyncrasy in Apple&#8217;s algorithm for  <br />
determining how much and how long to cache file information. As  <br />
previously mentioned I&#8217;ve never been able to reproduce these problems  <br />
(meaning whatever voodoo that needs to be in place on my machine for  <br />
Apple&#8217;s file caching to work the way I&#8217;d expect it to).</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78931</guid>
					<title><![CDATA[Re: URGENT : sfplay~ and RAM]]></title>
					<link>http://cycling74.com/forums/topic/urgent-sfplay-and-ram/#post-78931</link>
					<pubDate>Tue, 25 Jul 2006 11:41:36 +0000</pubDate>
					<dc:creator>neal</dc:creator>

					<description>
						<![CDATA[
						<p>Excellent, will start to move over to 4.6. I know this has been a long-running thread, and a frustrating (non-c74) bug for you guys to fix&#8230; Thanks for the new version.</p>
<p>Neal</p>
<p>
> <br />
> > Did this fix make it into the current 4.6 public Beta?<br />
> <br />
> Yes.<br />
></p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

