BeatSequence

ScriptableObject

A 2d array of booleans that represents a sequence of beats

Fields

Field
Description

int StepCount

The number of steps in a sequence

int InstrumentCount

The number of instruments in a sequence

float SequenceLength

The length of a sequence in bars

Methods

Method
Description

int GetLength(int dimension)

Get either the step count or the instrument count dimension - 0 or 1, Step Count or Instrument Count

float GetSequenceLength()

Get the length of a sequence in bars

int Length()

Get the length of a sequence in beats

void ChangeStepsLength(int newLength)

Change the length of a sequence in beats newLength - New length in beats

Last updated