BufFolders:
Filter:
PolyBuf/Classes (extension) | Buffer

BufFolders
ExtensionExtension

Load folder of sound files and subfolders of soundfiles to buffers in a dictionary

Description

This is a simple class that handles loading a directory tree of sound files (like a sound library) into a Dictionary of buffers, making them easily accessible.

If you just want to load the sound files at the root of a folder, check out BufFiles (which also has descriptions of all the convenience functions that comes with this).

Each folder's contents are accessible as an array of buffers at the dict key of the same name as the folder.

Supported file types: aiff, wav, wave, riff, sun, next, sd2, ircam, raw, mat4, mat5, paf, svx, nist, voc, w64, pvf, xi, htk, sds, avr, flac, caf, upper and lowercase versions are supported. It will automatically skip all files that are illegal formats.

If the server is not booted, it will wait for hte server to boot before loading the files.

Class Methods

.new

Arguments:

server
path

A string

normalize

Boolean. Set to true, this will normalize all buffers

actionWhenDone

a Function that will called when the class is done loading.

Instance Methods

.gui

Open up a gui wit an overview of all folders loaded. Each folder is represented by a BufFiles: gui - see that help file for more information.

Examples