Fracture:
Filter:
Fracture/Classes (extension) | Buffer | Live | Analysis | Machine Listening

Fracture
ExtensionExtension

Pitch-sensitive buffer recording and indexing utility

Description

Fracture is a tool for live indexing of pitch-indexed chips from a buffer. During buffer recording, "chips" are recorded according to the input's satisfaction of amplitude and pitch consistency thresholds. Chips are events of the type \chip that play on their parent fracture's default synth, or another synth spawned by the object FractureSynth. Fracture works best with monophonic pitched audio sources, but can also be used for without the pitch feature for simple transient detection.

Class Methods

.new

Create a new Fracture.

Arguments:

server

The server on which to allocate the buffer

in

Input bus or integer specifying hardware input channel

bufferSize

The size in seconds of the internal buffer

loopRecord

true = continue to record the buffer once it is full, overwriting its original contents and replacing associated chips. false = stop recording the buffer once it is full and lock the fracture

ampThresh

Minimum amplitude level for chips to be recorded.

pitchThresh

Minimum pitch detectability value (0..1).

minDur

Minimum chip duration in seconds.

maxDur

Maximum chip duration in seconds.

.load

Load a fracture from disk.

Arguments:

server

The server on which to allocate the buffer

path

Directory containing a buffer (AIFF) and chips archive (.TXT) to be loaded. If none specified, select path from dialog.

Instance Methods

.open

Start recording the fracture's buffer and indexing chips from the beginning or the point at which the fracture was last closed.

.close

Pause recording of the buffer. Chip library remains intact.

.save

Save the buffer and chip library to disk.

Arguments:

path

Directory in which the fracture's buffer (AIFF) and chips archive (.TXT) will be saved. If none specified, select path from dialog.

.clear

Stop recording processes and clear the buffer and chip library

.lock

Lock the fracture to prevent it from being opened. A Fracture cannot be unlocked once it has been locked.

.chips

Returns:

The array of chips recorded by this buffer.

.notes

Returns:

An array of available MIDI pitches encompassed by the chips in the fracture's library.

.noteChips

Returns:

An array of chips that match the given MIDI pitch or array of pitches.

.playNote

Play a random chip matching the note or array of notes provided.

.buffer

Returns:

The fracture's buffer.

.filePath

Returns:

The path of this fracture's save directory (if the fracture has been saved or loaded).

.defaultSynth

Get or set the fracture's default SynthDef (the default instrument for all chips created by this fracture). See FractureSynth.

.writeInterval

Get or set the interval at which the fracture analyzes audio and writes chips.

.clearInterval

Get or set the interval at which the fracture refreshes its chip library.

.ampThresh

Get or set the amplitude threshold of this fracture.

.pitchThresh

Get or set the pitch consistency threshold of this fracture (0..1).

.minDur

Get or set the minimum chip duration for this fracture in seconds.

.minDur

Get or set the maximum chip duration for this fracture in seconds.

Examples