Class Audio.OnsetDetector

implements Audio.Sink

Constructors

OnsetDetector()

Properties

threshold
input Audio.Connector inputs as an array

Methods

onOnset(function handler)
play(Audio.Buffer buffer) immediately play an audio buffer.
play(Audio.Clip clip) immediately play an audio clip.
schedule(Audio.Buffer buffer, float measure, Time.Clock clock) schedule an audio buffer to play.
schedule(Audio.Clip clip, float measure, Time.Clock clock) schedule an audio clip to play.

Constructor Documentation


OnsetDetector()

Property Documentation


float threshold


array input

Audio.Connector inputs as an array. Adding or removing elements to this array has no effect on the underlying audio component.

Method Documentation


void onOnset(function handler)

Parameters


void play(Audio.Buffer buffer)

Immediately play an audio buffer.

Parameters


void play(Audio.Clip clip)

Immediately play an audio clip.

Parameters


void schedule(Audio.Buffer buffer, float measure, Time.Clock clock)

Schedule an audio buffer to play.

Parameters


void schedule(Audio.Clip clip, float measure, Time.Clock clock)

Schedule an audio clip to play.

Parameters



Creative Commons Logo This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.