This class lets you design a quantized MMSequence using a sequencer interface, and lets you play a quantized sequence, triggering events on beats if specified
More...
This class lets you design a quantized MMSequence using a sequencer interface, and lets you play a quantized sequence, triggering events on beats if specified
◆ TimeScales
Enumerator |
---|
Scaled | |
Unscaled | |
◆ ApplySequencerLengthToSequence()
virtual void MoreMountains.Feedbacks.MMSequencer.ApplySequencerLengthToSequence |
( |
| ) |
|
|
virtual |
Rebuilds the sequence properties to match length and track count - will destroy contents
◆ ClearSequence()
virtual void MoreMountains.Feedbacks.MMSequencer.ClearSequence |
( |
| ) |
|
|
virtual |
Clears the contents of the sequence
◆ DecrementLength()
virtual void MoreMountains.Feedbacks.MMSequencer.DecrementLength |
( |
| ) |
|
|
virtual |
Removes the last column of the sequence
◆ EditorMaintenance()
virtual void MoreMountains.Feedbacks.MMSequencer.EditorMaintenance |
( |
| ) |
|
|
virtual |
◆ HandleBeat()
virtual void MoreMountains.Feedbacks.MMSequencer.HandleBeat |
( |
| ) |
|
|
protectedvirtual |
Determines if we're on a beat, and plays the beat if needed
◆ IncrementLength()
virtual void MoreMountains.Feedbacks.MMSequencer.IncrementLength |
( |
| ) |
|
|
virtual |
Adds one column at the end of the sequence
◆ Initialization()
virtual void MoreMountains.Feedbacks.MMSequencer.Initialization |
( |
| ) |
|
|
protectedvirtual |
◆ OnBeat()
virtual void MoreMountains.Feedbacks.MMSequencer.OnBeat |
( |
| ) |
|
|
protectedvirtual |
◆ PlayBeat()
virtual void MoreMountains.Feedbacks.MMSequencer.PlayBeat |
( |
| ) |
|
|
virtual |
Triggers events on the beat if needed
◆ PlayMetronomeSound()
virtual void MoreMountains.Feedbacks.MMSequencer.PlayMetronomeSound |
( |
| ) |
|
|
protectedvirtual |
Plays the sound of the metronome
◆ PlaySequence()
virtual void MoreMountains.Feedbacks.MMSequencer.PlaySequence |
( |
| ) |
|
|
virtual |
Starts playing the sequence
◆ PlayTrackEvent()
virtual void MoreMountains.Feedbacks.MMSequencer.PlayTrackEvent |
( |
int |
index | ) |
|
|
virtual |
◆ SetupTrackEvents()
virtual void MoreMountains.Feedbacks.MMSequencer.SetupTrackEvents |
( |
| ) |
|
|
virtual |
Adds or rebuilds to the event list
◆ Start()
virtual void MoreMountains.Feedbacks.MMSequencer.Start |
( |
| ) |
|
|
protectedvirtual |
On Start we initialize our sequencer
◆ StopSequence()
virtual void MoreMountains.Feedbacks.MMSequencer.StopSequence |
( |
| ) |
|
|
virtual |
Stops the playback of the sequence
◆ ToggleActive()
virtual void MoreMountains.Feedbacks.MMSequencer.ToggleActive |
( |
int |
trackIndex | ) |
|
|
virtual |
Turns a sequence track active (will play its notes) or inactive (won't do it)
- Parameters
-
◆ ToggleSequence()
virtual void MoreMountains.Feedbacks.MMSequencer.ToggleSequence |
( |
| ) |
|
|
virtual |
Plays or stops the sequence based on its current state
◆ ToggleStep()
virtual void MoreMountains.Feedbacks.MMSequencer.ToggleStep |
( |
int |
stepIndex | ) |
|
|
virtual |
Toggles a whole step column, turning all its notes active or inactive
- Parameters
-
◆ Update()
virtual void MoreMountains.Feedbacks.MMSequencer.Update |
( |
| ) |
|
|
protectedvirtual |
On update we handle our beat
◆ UpdateTimestampsToMatchNewBPM()
virtual void MoreMountains.Feedbacks.MMSequencer.UpdateTimestampsToMatchNewBPM |
( |
| ) |
|
|
virtual |
Parses the sequence contents and updates timestamps to match the new BPM
◆ _beatInterval
float MoreMountains.Feedbacks.MMSequencer._beatInterval |
|
protected |
◆ _beatSoundAudiosource
AudioSource MoreMountains.Feedbacks.MMSequencer._beatSoundAudiosource |
|
protected |
◆ BeatThisFrame
bool MoreMountains.Feedbacks.MMSequencer.BeatThisFrame = false |
true if a perfect beat was found this frame
◆ BPM
int MoreMountains.Feedbacks.MMSequencer.BPM = 160 |
the intended BPM for playback and design
◆ CurrentSequenceIndex
int MoreMountains.Feedbacks.MMSequencer.CurrentSequenceIndex = 0 |
◆ InternalTime
◆ LastBeatIndex
int MoreMountains.Feedbacks.MMSequencer.LastBeatIndex = 0 |
the index of the last played bit (our position in the playing sequence)
◆ LastBeatTimestamp
float MoreMountains.Feedbacks.MMSequencer.LastBeatTimestamp = 0f |
◆ LastBPM
int MoreMountains.Feedbacks.MMSequencer.LastBPM = -1 |
◆ LastSequence
MMSequence MoreMountains.Feedbacks.MMSequencer.LastSequence |
◆ LastSequencerLength
int MoreMountains.Feedbacks.MMSequencer.LastSequencerLength = -1 |
◆ LastTracksCount
int MoreMountains.Feedbacks.MMSequencer.LastTracksCount = -1 |
◆ Loop
bool MoreMountains.Feedbacks.MMSequencer.Loop = true |
whether the sequence should loop or not when played back
◆ MetronomeSound
AudioClip MoreMountains.Feedbacks.MMSequencer.MetronomeSound |
a sound to play every beat
◆ MetronomeVolume
float MoreMountains.Feedbacks.MMSequencer.MetronomeVolume = 0.2f |
the volume of the metronome sound
◆ PlayedOnce
bool MoreMountains.Feedbacks.MMSequencer.PlayedOnce = false |
true if the sequencer has been played once
◆ Playing
bool MoreMountains.Feedbacks.MMSequencer.Playing = false |
true if the sequencer is playing right now
◆ PlayOnStart
bool MoreMountains.Feedbacks.MMSequencer.PlayOnStart = false |
whether that sequencer should start playing on application start
◆ RandomSequence
bool MoreMountains.Feedbacks.MMSequencer.RandomSequence = false |
if this is true the sequence will play in random order
◆ Sequence
MMSequence MoreMountains.Feedbacks.MMSequencer.Sequence |
the sequence to design on or to play
◆ SequencerLength
int MoreMountains.Feedbacks.MMSequencer.SequencerLength = 8 |
the number of notes in the sequence
◆ TimeScale
the timescale on which this sequencer should play
◆ TrackEvents
List<UnityEvent> MoreMountains.Feedbacks.MMSequencer.TrackEvents |
a list of events to play every time an active beat is found on each track (one event per track)
The documentation for this class was generated from the following file:
- Assets/CorgiEngine/ThirdParty/MoreMountains/MMFeedbacks/MMFeedbacks/Sequencing/Scripts/MMSequencer.cs