RAM Disk vs. buffer~
Hello,
In terms of speed of access to a file (like super precise trigger), I was wondering if there was any difference between accessing an audio file from a RAM Disk with an sfplay~ object or from a buffer~ with a groove~ object.
I would guess it is exactly the same, but I was just wondering if someone had some insight about that.
thanks
Florent
groove and buffer for sure.
sfplay~ reads from disk.
buffer~ loads the file into RAM which is generally quicker than reading from the disk.
Thanks Evan for your answer.
But if the files are on a RAM Disk, they are basically in a block of RAM. http://en.wikipedia.org/wiki/RAM_drive
So sfplay~ would access the file at the same speed as groove~, right?
sfplay~ can preload cues in RAM, and you can even trigger the cues with a signal to get sample accuracy. There is no need for a RAM disk.
Do you hear latency when triggering a preloaded sound file?
Thanks a lot Patrick, I totally forgot about that option for sfplay~
and it sounds like there is no difference in triggering a pre-loaded sound with sfplay~ and groove~ that way:
my "latency" was actually coming from the looping function of sfplay~ that is not super accurate (apparently only within multiples of its disk buffer size)
you also could use a fast ssd.
thanks Petcode
the wikipedia article about RAM drives seems to mention that RAM is faster than SSD though
But why the need to use sfplay~ in the first place?
just because I have this huge old patch using sfplay~ objects and I am trying to find an easy way to make it work better without having to re-patch everything