«soundfile playback» by LFSaw

on 09 Aug'11 23:48 in tiphowtoplaybacksoundfiles

automatically playback of all soundfiles in a directory

1
2
3
4
5
6
7
8
9
10
11
12
13
(
w = {|pathPattern|
var soundFiles;
// get sounds
soundFiles = SoundFile.collect(pathPattern);

// play back in order of their appearance
Pseq(soundFiles.collect{|file| file.cue((\dur: file.duration))}, 1).play;
}
)

// adjust path and evaluate the next line
w.value("/Volumes/usbImport/PMD620/200804062000/*.WAV")
raw 327 chars (focus & ctrl+a+c to copy)
reception
comments