<?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: &quot;streaming&quot; sampler?</title>
		<atom:link href="http://cycling74.com/forums/topic/streaming-sampler/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/streaming-sampler/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 16:46:07 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/streaming-sampler/#post-25795</guid>
					<title><![CDATA[&quot;streaming&quot; sampler?]]></title>
					<link>http://cycling74.com/forums/topic/streaming-sampler/#post-25795</link>
					<pubDate>Fri, 05 May 2006 14:03:11 +0000</pubDate>
					<dc:creator>jbm</dc:creator>

					<description>
						<![CDATA[
						<p>Hey All,</p>
<p>It&#8217;s been a few years since I even looked at sfplay~ for any &#8220;heavy lifting&#8221; as far as sampler instruments go&#8230; However, since most commercial samplers today are disk-streaming based, I wonder if anyone has any reports on sfplay~ performance with current hardware (you know, S-ATA, 8 MB cache, and so on&#8230;)? With the addition of playback speed, sfplay~ seems a pretty decent candidate for certain sampler functions&#8230;</p>
<p>Also, looking at the documentation, it looks as though either the &#8220;open&#8221; or &#8220;preload&#8221; message will cause sfplay~ to load the sample &#8220;head&#8221; into RAM (disk buffer?), based on the disk buffer size. Given a large disk buffer size, is the playback of this first portion handled in essentially the same way (by MaxMSP, not me) as playing from the buffer~ object? I guess  what I&#8217;m asking is whether, given a hefty disk buffer size, sfplay~ can compete with play~/buffer~ in any way, shape, or form. </p>
<p>Sorry for what sounds like a &#8220;newbie&#8221; question. I assure you, it&#8217;s not. What I&#8217;m after is the &#8220;inside dirt&#8221; on sfplay~&#8230; I&#8217;m really drawn to the simplicity of file-handling in sfplay~/sflist~, and of course the potential for minimizing RAM usage, but I don&#8217;t want to get into a huge programming job just to find it&#8217;s not up to the task when it comes to playback.</p>
<p>J.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/streaming-sampler/#post-76402</guid>
					<title><![CDATA[Re: &#8220;streaming&#8221; sampler?]]></title>
					<link>http://cycling74.com/forums/topic/streaming-sampler/#post-76402</link>
					<pubDate>Sun, 07 May 2006 12:22:13 +0000</pubDate>
					<dc:creator>jbm</dc:creator>

					<description>
						<![CDATA[
						<p>Okay, I&#8217;ll try re-phrasing this&#8230;</p>
<p>Given a short sample: samp_144k.wav (a sample 144k in size)</p>
<p>Will a play~/groove~ + buffer~ sized to the sample (144k -> ms @ sr), play back samp_144k.wav in essentially the same way as an sfplay~ with a disk buffer of 144k? That is, are play~/groove~ + buffer~ any more efficient internally to MSP than sfplay~ + disk buffer?</p>
<p>
My dilemma is that either I&#8217;ll be doing a lot of reading to buffer~ objects and playing from groove~ during playback, or I&#8217;ll be preloading a bunch of samples (with a large disk buffer setting) to sflist~ and playing them back from sfplay~ during playback. Both will be disk intensive. It seems to me that sflist~ will be easier on the system for preloading, on average, because it&#8217;s only ever loading the disk buffer, whereas buffer~ must load all of the sample data to be played. Because the disk buffer is always the same size, the work load should remain roughly consistent when using sfplay~, whereas with buffer~, the disk activity will spike each time a new sample needs to be buffered. Is this clear thinking? So, given that the disk activity will be high either way, which is really the better option?</p>
<p>J.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/streaming-sampler/#post-76403</guid>
					<title><![CDATA[Re: &#8220;streaming&#8221; sampler?]]></title>
					<link>http://cycling74.com/forums/topic/streaming-sampler/#post-76403</link>
					<pubDate>Mon, 08 May 2006 18:55:11 +0000</pubDate>
					<dc:creator>wippen</dc:creator>

					<description>
						<![CDATA[
						<p>This is a very relevant question, but I cannot supply the answer.  During some preparations for a class I was giving, I made a 12-voice sampler using sfplay instead of my normal buffer-based techniques.  I could not hear any extra latency nor observe any disk-use problems, but I didn&#8217;t spend much time searching for them, either.</p>
<p>This sort of sampler has some obvious advantages over a buffer scheme, particularly when it comes to larger installations or a great amount of sound material.  One problem which I can imagine is interuptions in smooth disk-use when the OS needs to do something else.</p>
<p>So:  who has the real information?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/streaming-sampler/#post-76404</guid>
					<title><![CDATA[Re: &#8220;streaming&#8221; sampler?]]></title>
					<link>http://cycling74.com/forums/topic/streaming-sampler/#post-76404</link>
					<pubDate>Mon, 08 May 2006 19:11:31 +0000</pubDate>
					<dc:creator>jbm</dc:creator>

					<description>
						<![CDATA[
						<p>Woohoo!!! A reply!!!</p>
<p>Obviously, I&#8217;m with you on the importance of this question. I&#8217;m embarking on a massive re-write of a patch I made, and I&#8217;m seriously considering the sfplay~ route. I&#8217;m glad to hear you had a decent experience with it. Personally, I can&#8217;t see any great reasons why it would be a problem, other than what you mention about HD activity level &#8212; though you add an important point in mentioning system-related/background HD access.</p>
<p>However, in my situation I&#8217;m just looking for the &#8220;lesser of two evils&#8221;, since with constant reloading/resizing of buffer~s I&#8217;m still at the mercy of the HD. (And besides, there is no great way around system priorities, short of renicing the app (or Max), which actually appears to do very little, in my experience.) So, on an semi-educated-guess level, I don&#8217;t see any major problems with going for sfplay~&#8230; but it would be nice to get the &#8220;official&#8221; position, in case there&#8217;s some evil lurking behind sfplay~&#8217;s innocent exterior.</p>
<p>Anyway, thanks for the support. Hopefully we&#8217;ll see a little more action on this question now!</p>
<p>cheers,</p>
<p>J.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/streaming-sampler/#post-76405</guid>
					<title><![CDATA[Re: &#8220;streaming&#8221; sampler?]]></title>
					<link>http://cycling74.com/forums/topic/streaming-sampler/#post-76405</link>
					<pubDate>Wed, 10 May 2006 05:27:23 +0000</pubDate>
					<dc:creator>Stefan Tiedje</dc:creator>

					<description>
						<![CDATA[
						<p>jbmaxwell wrote:<br />
> Will a play~/groove~ + buffer~ sized to the sample (144k -> ms @ sr),<br />
> play back samp_144k.wav in essentially the same way as an sfplay~<br />
> with a disk buffer of 144k? That is, are play~/groove~ + buffer~ any<br />
> more efficient internally to MSP than sfplay~ + disk buffer?</p>
<p>It depends how often you play the same material. If you play everything <br />
only once, then I would assume that the sfplay~ method is more effective.</p>
<p>When the Giga Sampler arrived at the market there was a memory problem. <br />
They wanted to play a piano sound which could not fit into memory of <br />
that time. Times have changed.</p>
<p>As sampler usually wants to play a sample more than once, if you load it <br />
into memory you can play it as often you want, but need to load it only <br />
once at initialisation time.</p>
<p>I can easily fit hours worth of samples into the memory, If you still <br />
would not likely play any of these sounds twice, then sfplay~ is <br />
certainly more efficient. But even if you only partially reuse samples, <br />
then you hit the disk less frequent with buffers.</p>
<p>If you have a lot of samples cues, which you want to load from disk, you <br />
also need a lot of memory. That means as soon your samples are shorter <br />
than the sfplay~ diskbuffer size of 20160 bytes, you will need more <br />
memory than with filling buffers.</p>
<p>These are logical assumptions&#8230; To proove them, you should test it. You <br />
can run tests by placing your abstractions into a poly~, then just <br />
increase the number of voices till it will hit your limits.</p>
<p>Share the results&#8230;</p>
<p>good luck</p>
<p>Stefan</p>
<p>&#8211; </p>
<p>  [][]  [][][]  [][]  [][][]<br />
[][][][][][][][][][][][][][][]</p>
<p>         Stefan Tiedje<br />
         Klanggestalter<br />
     Electronic Composition<br />
               &#038;<br />
         Improvisation</p>
<p>            /~~~~~<br />
     \   /|() ()|<br />
     ))))) )|  |  |( \<br />
     ///     _/)/ )))))<br />
             ___/   ///</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-x&#8212;-<br />
&#8211;_____&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;&#8211;<br />
&#8211;(_|_ &#8212;-|&#8212;&#8211;|&#8212;&#8211;()&#8212;-<br />
&#8211; _|_)&#8212;-|&#8212;&#8211;()&#8212;&#8212;&#8212;&#8211;<br />
&#8212;&#8212;&#8212;-()&#8212;&#8212;&#8212;&#8212;x&#8212;&#8211;</p>
<p>14, Av. Pr. Franklin Roosevelt,<br />
94320 Thiais, France<br />
Phone at CCMIX +33-1-57 42 91 09</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/streaming-sampler/#post-76406</guid>
					<title><![CDATA[Re: &#8220;streaming&#8221; sampler?]]></title>
					<link>http://cycling74.com/forums/topic/streaming-sampler/#post-76406</link>
					<pubDate>Wed, 10 May 2006 06:50:37 +0000</pubDate>
					<dc:creator>jbm</dc:creator>

					<description>
						<![CDATA[
						<p>Stefan,</p>
<p>Thanks for the input. My system will change the samples in memory fairly regularly, but only to a certain point; during a certain stage of work. After that, the samples are likely to stay the same, so it&#8217;s hard to say where my model sits in the whole Giga scheme. But I have considered the possibility of using _both_ sfplay~ and buffer~/groove~. If I could devise an abstraction/poly~ which took the same arguments for either of the two options, then I could create a system which dynamically &#8220;decided&#8221; which to use, based on context/usage (and &#8220;re-usage&#8221;). But I&#8217;ll take your advice and build a patcher to test them&#8230; If I can manage to build both versions using the same arguments, it should make testing very simple.</p>
<p>Also, if you&#8217;re wondering why all this is an issue? Yes, I am dealing with _far_ too much sample material to fit into memory. Ouch!</p>
<p>J.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

