Feel
5.1
The best way to improve your game's feel and make it extra juicy
|
A MMSequencer with ready made slots to play MMFeedbacks More...
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< MMFeedbacks > | Feedbacks |
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... | |
TimeScales | TimeScale = TimeScales.Scaled |
the timescale on which this sequencer should play 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... | |
float | InternalTime => TimeScale == TimeScales.Scaled ? Time.time : Time.unscaledTime |
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 | |
Public Types inherited from MoreMountains.Feedbacks.MMSequencer | |
enum | TimeScales { TimeScales.Scaled, TimeScales.Unscaled } |
Protected Attributes inherited from MoreMountains.Feedbacks.MMSequencer | |
float | _beatInterval |
AudioSource | _beatSoundAudiosource |
A MMSequencer with ready made slots to play MMFeedbacks
|
virtual |
When looking for changes we make sure we have enough sounds in our array
Reimplemented from MoreMountains.Feedbacks.MMSequencer.
|
protectedvirtual |
On beat we play our audio sources
Reimplemented from MoreMountains.Feedbacks.MMSequencer.
|
virtual |
When playing our event for control, we play our audiosource
index |
Reimplemented from MoreMountains.Feedbacks.MMSequencer.
|
virtual |
Ensures the array is always the right length
List<MMFeedbacks> MoreMountains.Feedbacks.MMFeedbacksSequencer.Feedbacks |
the list of audio clips to play (one per track)