Feel 5.9
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
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.
virtual void QuantizeOriginalSequence ()
 Quantizes the original sequence, filling the QuantizedSequence list, arranging events on the beat.
virtual void ComputeLength ()
 Computes the length of the sequence.
virtual void QuantizeSequenceToBPM (List< MMSequenceNote > baseSequence)
 Makes every timestamp in the sequence match the BPM track.

Static Public Member Functions

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

Public Attributes

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

Protected Member Functions

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

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()

Color MoreMountains.Feedbacks.MMSequence.RandomSequenceColor ( )
static

Returns a random color for the sequence tracks.

Returns

◆ RoundFloatToArray()

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:
  • H:/Code/MoreMountains/feel/Assets/Feel/MMFeedbacks/MMFeedbacks/Sequencing/Scripts/MMSequence.cs