CutFunc:
Filter:
BBCut/Classes (extension) | Libraries > BBCut > Cut synths

CutFunc
ExtensionExtension

Breakbeat cut rendering with an arbitrary function

Description

Cut renderer calling an arbitrary function. The function will be called at s.latency seconds before the cut is timed to occur. This is probably imperceptible for small latencies, though you may wish to compensate. However, in order to send your own OSC messages etc this is a necessary restriction.

Class Methods

.new

Arguments:

cutfunc

A function to be called for each cut, whichcut (an Integer), block (a BBCutBlock) and the clock (an ExternalClock) are passed in as the arguments. If left nil, it will not be called.

blockfunc

A function to be called for each new block, block (a BBCutBlock) and the clock (an ExternalClock) are passed in as the arguments. If left nil, it will not be called.

phrasefunc

A function to be called for each new phrase, block (a BBCutBlock) and the clock (an ExternalClock) are passed in as the arguments. If left nil, it will not be called.

compensate

Seconds of compensation, pass in s.latency to have the function render at the same time as the cut starts synthesising, else leave 0.0, especially if you are sending your own messages to the Server via the CutFunc

Examples