Handles vibrations on note presses.

Constructor

new()

Creates a new NoteVibrationsHandler instance.

Variables

noteStatuses:Array<NoteStatus>

An array of each note status. Made for use in other classes.

Methods

@:value({ holdNoteEnded : false })tryHoldNoteVibration(holdNoteEnded:Bool = false):Void

Checks if any note status is equal to NoteStatus.isHoldNotePressed. If yes, then vibration is being triggered, amplitude value is stacked depending on how much hold notes are pressed.

tryNoteVibration():Void

Checks if any note status is equal to NoteStatus.isJustPressed. If yes, then vibration is being triggered, amplitude value is stacked depending on how much notes are pressed.