class SongNoteDataRaw
package funkin.data.song
implements ICloneable<SongNoteDataRaw>
import funkin.data.song.SongData
Available on all platforms
The underlying data for a single note.
Constructor
Variables
data:Int
Data for the note. Represents the index on the strumline.
0 = left, 1 = down, 2 = up, 3 = right
floor(direction / strumlineSize) specifies which strumline the note is on.
0 = player, 1 = opponent, etc.
optionalkind:Null<String> = null
The kind of the note.
This can allow the note to include information used for custom behavior.
Defaults to null for no kind.
optionalparams:Array<NoteParamData>
The parameters for the note. Used for custom behavior on custom note kinds. Defaults to an empty array.
Methods
buildTooltip():String
Build a tooltip string for this note, as seen when hovering in the Chart Editor.
Returns:
The tooltip string to display.
clone():SongNoteDataRaw
Clone this song note data, creating a new independent instance with identical data.
Returns:
The newly created song note data.
cloneParams():Array<NoteParamData>
Clone the params data for this node, creating a new independent instance.
Returns:
A new array of cloned NoteParamData instances.
inlinegetDirection(strumlineSize:Int = 4):Int
The direction of the note, if applicable. Strips the strumline index from the data.
0 = left, 1 = down, 2 = up, 3 = right
Parameters:
strumlineSize | The size of the strumline for the current song. Defaults to 4. |
|---|
Returns:
The direction of the note as an index.
getDirectionName(strumlineSize:Int = 4):String
The name of the direction of the note, if applicable. Strips the strumline index from the data.
Parameters:
strumlineSize | The size of the strumline for the current song. Defaults to 4. |
|---|
Returns:
The direction of the note as a name.
getMustHitNote(strumlineSize:Int = 4):Bool
Returns true if the note is one that Boyfriend should try to hit (i.e. it's on his side). TODO: The name of this function is a little misleading; what about mines?
Parameters:
strumlineSize | Defaults to 4. |
|---|
Returns:
True if it's Boyfriend's note.
getStepLength(force:Bool = false):Float
Parameters:
force | Set to |
|---|
Returns:
The length of the hold note in steps, or 0 if this is not a hold note.
getStepTime(force:Bool = false):Float
Parameters:
force | Set to |
|---|
Returns:
The position of the note in the song, in steps.
getStrumlineIndex(strumlineSize:Int = 4):Int
The strumline index of the note, if applicable. Strips the direction from the data.
0 = player, 1 = opponent, etc.
Parameters:
strumlineSize | The size of the strumline for the current song. Defaults to 4. |
|---|
Returns:
The strumline index of the note.
setStepLength(value:Float):Void
Set the length of the hold note, in steps.
Parameters:
value | The desired length of the hold note, in steps. Use |
|---|