GRhythmUtil A utility class for processing hit windows, and calculating the y-position of notes.

Static methods

staticgetHitWindow(note:NoteSprite):HitWindow

Get the current hit window for a note.

Parameters:

note

The note to get the hit window for.

Returns:

A HitWindow object containing the start, center, and end times of the hit window.

@:value({ conductorInUse : null, downscroll : false })staticgetNoteY(strumTime:Float, scrollSpeed:Float, downscroll:Bool = false, ?conductorInUse:Conductor):Float

Get the y-position of a note based on its strum time.

Parameters:

strumTime

The strum time of the note.

scrollSpeed

The scroll speed of the strumline.

downscroll

Whether the strumline is in downscroll mode.

conductorInUse

The conductor to use for calculating the y-position.

Returns:

The y-position of the note.

@:value({ inUseConductor : null, isControlled : true })staticprocessWindow(note:NoteSprite, isControlled:Bool = true, ?inUseConductor:Conductor):HitWindowRes

Process the hit window for a note.

Parameters:

note

The note to process.

isControlled

True if the note is controlled by the player, false otherwise.

Returns:

A HitWindowRes object containing the result of the hit window check.