Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Feedbacks.MMFeedbacksSequencer Class Reference

A MMSequencer with ready made slots to play MMFeedbacks More...

Inheritance diagram for MoreMountains.Feedbacks.MMFeedbacksSequencer:
MoreMountains.Feedbacks.MMSequencer

Public Member Functions

override void PlayTrackEvent (int index)
 When playing our event for control, we play our audiosource More...
 
override void EditorMaintenance ()
 When looking for changes we make sure we have enough sounds in our array More...
 
virtual void SetupFeedbacks ()
 Ensures the array is always the right length More...
 
- Public Member Functions inherited from MoreMountains.Feedbacks.MMSequencer
virtual void ToggleSequence ()
 Plays or stops the sequence based on its current state More...
 
virtual void PlaySequence ()
 Starts playing the sequence More...
 
virtual void StopSequence ()
 Stops the playback of the sequence More...
 
virtual void ClearSequence ()
 Clears the contents of the sequence More...
 
virtual void PlayBeat ()
 Triggers events on the beat if needed More...
 
virtual void ToggleActive (int trackIndex)
 Turns a sequence track active (will play its notes) or inactive (won't do it) More...
 
virtual void ToggleStep (int stepIndex)
 Toggles a whole step column, turning all its notes active or inactive More...
 
virtual void IncrementLength ()
 Adds one column at the end of the sequence More...
 
virtual void DecrementLength ()
 Removes the last column of the sequence More...
 
virtual void UpdateTimestampsToMatchNewBPM ()
 Parses the sequence contents and updates timestamps to match the new BPM More...
 
virtual void ApplySequencerLengthToSequence ()
 Rebuilds the sequence properties to match length and track count - will destroy contents More...
 
virtual void SetupTrackEvents ()
 Adds or rebuilds to the event list More...
 

Public Attributes

List< MMFeedbacksFeedbacks
 the list of audio clips to play (one per track) More...
 
- Public Attributes inherited from MoreMountains.Feedbacks.MMSequencer
MMSequence Sequence
 the sequence to design on or to play More...
 
int BPM = 160
 the intended BPM for playback and design More...
 
int SequencerLength = 8
 the number of notes in the sequence More...
 
bool Loop = true
 whether the sequence should loop or not when played back More...
 
bool RandomSequence = false
 if this is true the sequence will play in random order More...
 
bool PlayOnStart = false
 whether that sequencer should start playing on application start More...
 
AudioClip MetronomeSound
 a sound to play every beat More...
 
float MetronomeVolume = 0.2f
 the volume of the metronome sound More...
 
List< UnityEvent > TrackEvents
 a list of events to play every time an active beat is found on each track (one event per track) More...
 
bool Playing = false
 true if the sequencer is playing right now More...
 
bool PlayedOnce = false
 true if the sequencer has been played once More...
 
bool BeatThisFrame = false
 true if a perfect beat was found this frame More...
 
int LastBeatIndex = 0
 the index of the last played bit (our position in the playing sequence) More...
 
int LastBPM = -1
 
int LastTracksCount = -1
 
int LastSequencerLength = -1
 
MMSequence LastSequence
 
int CurrentSequenceIndex = 0
 
float LastBeatTimestamp = 0f
 

Protected Member Functions

override void OnBeat ()
 On beat we play our audio sources More...
 
- Protected Member Functions inherited from MoreMountains.Feedbacks.MMSequencer
virtual void Start ()
 On Start we initialize our sequencer More...
 
virtual void Initialization ()
 On init, initializes the metronome and plays the sequence if needed More...
 
virtual void Update ()
 On update we handle our beat More...
 
virtual void HandleBeat ()
 Determines if we're on a beat, and plays the beat if needed More...
 
virtual void PlayMetronomeSound ()
 Plays the sound of the metronome More...
 

Additional Inherited Members

- Protected Attributes inherited from MoreMountains.Feedbacks.MMSequencer
float _beatInterval
 
AudioSource _beatSoundAudiosource
 

Detailed Description

A MMSequencer with ready made slots to play MMFeedbacks

Member Function Documentation

◆ EditorMaintenance()

override void MoreMountains.Feedbacks.MMFeedbacksSequencer.EditorMaintenance ( )
virtual

When looking for changes we make sure we have enough sounds in our array

Reimplemented from MoreMountains.Feedbacks.MMSequencer.

◆ OnBeat()

override void MoreMountains.Feedbacks.MMFeedbacksSequencer.OnBeat ( )
protectedvirtual

On beat we play our audio sources

Reimplemented from MoreMountains.Feedbacks.MMSequencer.

◆ PlayTrackEvent()

override void MoreMountains.Feedbacks.MMFeedbacksSequencer.PlayTrackEvent ( int  index)
virtual

When playing our event for control, we play our audiosource

Parameters
index

Reimplemented from MoreMountains.Feedbacks.MMSequencer.

◆ SetupFeedbacks()

virtual void MoreMountains.Feedbacks.MMFeedbacksSequencer.SetupFeedbacks ( )
virtual

Ensures the array is always the right length

Member Data Documentation

◆ Feedbacks

List<MMFeedbacks> MoreMountains.Feedbacks.MMFeedbacksSequencer.Feedbacks

the list of audio clips to play (one per track)


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