BBCutBuffer:
Filter:
BBCut/Classes (extension) | Libraries > BBCut > Core

BBCutBuffer
ExtensionExtension

A buffer in BBCut2

Description

Holds data on a buffer including any segmentation (event positions). Derived from the Buffer class and has methods for choosing playback segments.

Class Methods

.new

Arguments:

filename

File location of a soundfile to load. Default path is to the SC3 source folder.

beatlength

Number of beats in the soundfile, also used to estimate the source tempo in beats per second.

eventlist

Array giving a segmentation of the sound file measured in sample frames. The class can construct one for you if you pass in a granularity, ie 0.5 for eighth note cuts imposed throughout the soundfile length- see below. If left nil the default is an even segmentation in eighth notes.

action

A function to be evaluated when the buffer is done loading. This instance of BBCutBuffer is passed as an argument.

.array

Arguments:

filenames

Array of sound file locations to load

beatlengths

Number of beats in the soundfile, also used to estimate the source tempo in beats per second.

eventlists

Array of Arrays of event positions.

action

A function to be evaluated when all buffers are done loading. This instance of BBCutBuffer is passed as an argument.

Examples