[CM] /tmp full with SND files.
e deleflie
edeleflie at gmail.com
Thu Jan 22 16:31:47 PST 2009
thanks Bill,
I've tried putting in a revert-sound after each re-sample ... but all
the temp files dont seem to be clearing themselves out any faster
(still fills up my hard drive).
I'm resampling a 4 channel file from 44100 to 48000 .... here's my
code .... maybe there's something wrong.... I dont remember what I was
thinking when I wrote it, but I seem to be re-sampling each channel
(of a 4 channel) independently ... could this be why I'm getting so
many tmp files?
; resample
(display (format #f "Resampling from ~D to
48000 \n" (srate insound)))
(src-sound (/ (srate insound) 48000) 1.0 insound 0)
(revert-sound insound)
(src-sound (/ (srate insound) 48000) 1.0 insound 1)
(revert-sound insound)
(src-sound (/ (srate insound) 48000) 1.0 insound 2)
(revert-sound insound)
(if (= (channels insound) 4) (src-sound (/
(srate insound) 48000) 1.0 insound 3)
(revert-sound insound)
)
an 88MB 4 channel file writes these tmp files ... (which fill up my harddrive).
-rw-r--r-- 1 amber amber 48032520 2009-01-22 16:22 snd_1246_0.snd
-rw-r--r-- 1 amber amber 31084544 2009-01-22 16:24 snd_1246_10.snd
-rw-r--r-- 1 amber amber 48032520 2009-01-22 16:22 snd_1246_1.snd
-rw-r--r-- 1 amber amber 48032520 2009-01-22 16:23 snd_1246_2.snd
-rw-r--r-- 1 amber amber 48032520 2009-01-22 16:23 snd_1246_3.snd
-rw-r--r-- 1 amber amber 192129992 2009-01-22 16:23 snd_1246_4.snd
-rw-r--r-- 1 amber amber 48032520 2009-01-22 16:23 snd_1246_5.snd
-rw-r--r-- 1 amber amber 48032520 2009-01-22 16:23 snd_1246_6.snd
-rw-r--r-- 1 amber amber 48032520 2009-01-22 16:24 snd_1246_7.snd
-rw-r--r-- 1 amber amber 48032520 2009-01-22 16:24 snd_1246_8.snd
-rw-r--r-- 1 amber amber 31195176 2009-01-22 16:24 snd_1246_9.snd
Etienne
On Fri, Jan 23, 2009 at 1:10 AM, Bill Schottstaedt
<bil at ccrma.stanford.edu> wrote:
>> (src-sound (/ (srate insound) 48000) 1.0 insound 0)
>
> each of these src-sound calls edits the original, and saves the
> new version in a temporary file (if it's large, which in this case
> I think it is). If you just keep calling src-sound, it just keeps
> saving things because at any time you might want to refer back
> to an earlier version. I can' tell for sure from the code fragment
> you sent, but it would probably fix the problem to put revert-sound
> after each src-sound -- this tells Snd that it need not save
> any edits related to that sound. You can also set the place
> Snd writes those files via temp-dir.
>
>
>
More information about the Cmdist
mailing list