BeatSequencer

MonoBehaviour

A class that can be used to watch for a sequence of beats and trigger events when the sequence is played

Fields

Field
Description

BeatSequenceList BeatSequences

The list of BeatSequences to play

List<BeatSequenceChange>BeatSequenceChanges

The list of sequence changes throughout the song

Action<int> OnInstrumentStep

Called when the sequencer steps through the sequence. The parameter is the index of the instrument that was triggered

Methods

Method
Description

void CallOnNextInstrumentStep

(int instrumentIndex, Action callback)

Assign a callback to be called when the next step of an instrument is triggered. Can be useful for example to trigger a particle effect when a drum is hit. instrumentIndex - Instrument you want the callback to happen on

callback - The callback to be called

Last updated