Corgi Engine  v9.2
MoreMountains.Feedbacks.MMSequence Class Reference

This scriptable object holds "sequences", data used to record and play events in sequence MMSequences can be played by MMFeedbacks from their Timing section, by Sequencers and potentially other classes More...

Inheritance diagram for MoreMountains.Feedbacks.MMSequence:

Public Member Functions

virtual void SortOriginalSequence ()
 Sorts the original sequence based on timestamps More...
 
virtual void QuantizeOriginalSequence ()
 Quantizes the original sequence, filling the QuantizedSequence list, arranging events on the beat More...
 
virtual void ComputeLength ()
 Computes the length of the sequence More...
 
virtual void QuantizeSequenceToBPM (List< MMSequenceNote > baseSequence)
 Makes every timestamp in the sequence match the BPM track More...
 

Static Public Member Functions

static Color RandomSequenceColor ()
 Returns a random color for the sequence tracks More...
 
static float RoundFloatToArray (float value, float[] array)
 Rounds a float to the closest float in an array (array has to be sorted) More...
 

Public Attributes

float Length
 the length (in seconds) of the sequence More...
 
MMSequenceList OriginalSequence
 the original sequence (as outputted by the input sequence recorder) More...
 
float EndSilenceDuration = 0f
 the duration in seconds to apply after the last input More...
 
List< MMSequenceTrackSequenceTracks
 the list of tracks for this sequence More...
 
bool Quantized
 whether this sequence should be used in quantized form or not More...
 
int TargetBPM = 120
 the target BPM for this sequence More...
 
List< MMSequenceListQuantizedSequence
 the contents of the quantized sequence More...
 
bool RandomizeTrackColorsButton
 

Protected Member Functions

virtual void OnValidate ()
 On validate, we initialize our track's properties More...
 
virtual void RandomizeTrackColors ()
 Randomizes track colors More...
 

Protected Attributes

float[] _quantizedBeats
 
List< MMSequenceNote_deleteList
 

Detailed Description

This scriptable object holds "sequences", data used to record and play events in sequence MMSequences can be played by MMFeedbacks from their Timing section, by Sequencers and potentially other classes

Member Function Documentation

◆ ComputeLength()

virtual void MoreMountains.Feedbacks.MMSequence.ComputeLength ( )
virtual

Computes the length of the sequence

◆ OnValidate()

virtual void MoreMountains.Feedbacks.MMSequence.OnValidate ( )
protectedvirtual

On validate, we initialize our track's properties

◆ QuantizeOriginalSequence()

virtual void MoreMountains.Feedbacks.MMSequence.QuantizeOriginalSequence ( )
virtual

Quantizes the original sequence, filling the QuantizedSequence list, arranging events on the beat

◆ QuantizeSequenceToBPM()

virtual void MoreMountains.Feedbacks.MMSequence.QuantizeSequenceToBPM ( List< MMSequenceNote baseSequence)
virtual

Makes every timestamp in the sequence match the BPM track

◆ RandomizeTrackColors()

virtual void MoreMountains.Feedbacks.MMSequence.RandomizeTrackColors ( )
protectedvirtual

Randomizes track colors

◆ RandomSequenceColor()

static Color MoreMountains.Feedbacks.MMSequence.RandomSequenceColor ( )
static

Returns a random color for the sequence tracks

Returns

◆ RoundFloatToArray()

static float MoreMountains.Feedbacks.MMSequence.RoundFloatToArray ( float  value,
float[]  array 
)
static

Rounds a float to the closest float in an array (array has to be sorted)

Parameters
value
array
Returns

◆ SortOriginalSequence()

virtual void MoreMountains.Feedbacks.MMSequence.SortOriginalSequence ( )
virtual

Sorts the original sequence based on timestamps

Member Data Documentation

◆ _deleteList

List<MMSequenceNote> MoreMountains.Feedbacks.MMSequence._deleteList
protected

◆ _quantizedBeats

float [] MoreMountains.Feedbacks.MMSequence._quantizedBeats
protected

◆ EndSilenceDuration

float MoreMountains.Feedbacks.MMSequence.EndSilenceDuration = 0f

the duration in seconds to apply after the last input

◆ Length

float MoreMountains.Feedbacks.MMSequence.Length

the length (in seconds) of the sequence

◆ OriginalSequence

MMSequenceList MoreMountains.Feedbacks.MMSequence.OriginalSequence

the original sequence (as outputted by the input sequence recorder)

◆ Quantized

bool MoreMountains.Feedbacks.MMSequence.Quantized

whether this sequence should be used in quantized form or not

◆ QuantizedSequence

List<MMSequenceList> MoreMountains.Feedbacks.MMSequence.QuantizedSequence

the contents of the quantized sequence

◆ RandomizeTrackColorsButton

bool MoreMountains.Feedbacks.MMSequence.RandomizeTrackColorsButton

◆ SequenceTracks

List<MMSequenceTrack> MoreMountains.Feedbacks.MMSequence.SequenceTracks

the list of tracks for this sequence

◆ TargetBPM

int MoreMountains.Feedbacks.MMSequence.TargetBPM = 120

the target BPM for this sequence


The documentation for this class was generated from the following file: