JubeatPlus 3.9.11
Loading...
Searching...
No Matches
EditSequence Class Reference

The chart-editor data model. More...

#include <EditSequence.h>

Inheritance diagram for EditSequence:
Collaboration diagram for EditSequence:

Instance Methods

(nullable NSMutableArray< NSNumber * > *) - getEventData
 Re-encodes the working event array into an array of boxed packed note words.
(BOOL) - checkEventsLegality:
 Validates that a decoded sequence blob has a recognised header and a consistent length.
(void) - createEvents:tempSlot:
 Parses a decoded sequence blob into one template slot.
(void) - refreshEditMusicBar
 Rebuilds the per-segment note-density table editMusicBar from the working events.
(void) - refreshMusicBar
 Packs editMusicBar into the nibble-per-segment musicBar bitmap.
(void) - refreshConflictTable
 Packs editConflictTable into the nibble-per-segment conflictTable bitmap.
(void) - loadTemplate:
 Loads a template slot into the working event array and clears the history.
(void) - createConflictTable
 Rebuilds editConflictTable by testing every note event for a conflict.
(BOOL) - checkConflictEvent:btn:
 Returns whether the note event at an index is a note on a given button.
(int) - searchBtnNearSector:btn:
 Returns the index of the note nearest a sector on a given button, or -1.
(int) - searchNearIndex:
 Returns the event index nearest a sector.
(int) - checkConflictByIndex:btn:vec:area:sameCheck:
 Searches by index in one direction for a conflicting note within an area.
(int) - checkConflictBySector:btn:vec:area:sameCheck:
 Searches by sector in one direction for a conflicting note within an area.
(BOOL) - checkConflictBySector:btn:area:sameCheck:
 Returns whether a sector conflicts with a note on a button, searching both directions.
(BOOL) - checkConflictByIndex:btn:area:sameCheck:
 Returns whether an index conflicts with a note on a button, searching both directions.
(BOOL) - checkConflictArea:vector:
 Returns whether the note at an index conflicts with another note in the given direction.
(BOOL) - checkConflict:vector:
 Returns whether the note at the current index conflicts, on a button, in a direction.
(BOOL) - checkKeyConflict:
 Returns whether adding a note on a button at the current sector would conflict.
(BOOL) - conflictKeyCheck:vector:
 Returns whether a run of notes on a button starting at the current index conflicts.
(void) - addHistory:
 Pushes an edit-part record onto the history, trimming and truncating as needed.
(int) - rollController:
 Replays or reverses one history entry, rebuilding the music-bar and conflict tables.
(int) - undoHistory
 Undoes the current history entry.
(int) - redoHistory
 Redoes the next history entry.
(void) - addHistoryParts:index:sector:type:value:
 Boxes one edit-part record (index, sector, type, value) and appends it to an array.
(int) - addNote:divide:isSwitch:
 Adds or toggles a note on a button, snapping to the nearest beat subdivision.
(int) - addNote:
 Adds a note at the current sector on a button, or deletes it when it already conflicts.
(BOOL) - deleteNote:
 Deletes the note nearest the current position on a button.
(float) - getNearBeatRate:
 Returns the beat-line rate nearest a fractional position, from the empty template.
(int) - getNearDiveBeatSector:divide:
 Returns the sector nearest a sector on a subdivided beat grid.
(float) - getNearDivBeatRate:divide:
 Returns the fractional position nearest a fractional position on a subdivided beat grid.
(float) - sector2rate:
 Converts a sector to a fractional position over the chart.
(unsigned int) - rate2sector:
 Converts a fractional position over the chart to a sector.
(int) - getFrontBeatSector:
 Returns the index of the beat line at or before a sector, from the empty template.
(int) - getBackBeatSector:
 Returns the sector of the first beat line after a sector, from the empty template.
(void) - eventArrayDecode:
 Decodes an array of boxed packed note words into the working event array.
(void) - importSequenceData:
 Loads a new chart into the working event array and rebuilds every derived table.
(instancetype) - initWithData:sequenceData:
 Initialises the editor from a downloaded pack archive and an optional edit-note table.
(void) - reset
 Resets the play state and clears every recorded judgement.
(void) - seekToTime:
 Advances the play position to a time, updating the tempo, measure, beat, and clap state.
(void) - getMarkerState:
 Fills a per-panel marker-animation state array for the current position.
(const char *) - getMusicBar
 Returns the packed note-density music bar.
(const char *) - getConflictBar
 Returns the packed conflict music bar.
(const SequenceEvent *) - getSequenceEventTable
 Returns the working event array.
(const SequenceEvent *) - getSequencePasteTable
 Returns the area copy/paste clipboard event array.
(unsigned int) - getEndSector
 Returns the chart's end sector.
(unsigned int) - getConflictSector
 Returns the fixed conflict-detection window, in sectors.
(int) - getRewindMeasureSector
 Returns the sector of the measure two measures before the current position.
(int) - searchSectorIndex:
 Returns the index of the first event at or after a sector, or -1 past a terminator.
(BOOL) - exeAreaCopy:endSec:
 Copies the notes in a sector range into the clipboard.
(void) - exeAreaDelete:endSec:
 Deletes the notes in a sector range, pushing the deletion onto the history.
(int) - exeAreaPaste:
 Pastes the clipboard notes starting at a sector, skipping conflicts.
(unsigned int) - getTemplateNoteNum:
 Returns the note count of a template slot.
(unsigned int) - getNoteNum
 Returns the working note count.
(unsigned int) - getEventNum
 Returns the working event count.
(unsigned int) - getFirstMarker
 Returns the first-marker panel bitmask, computed from the leading same-sector notes.
(unsigned int) - getFirstSector
 Returns the sector of the first note.
(void) - printInfoParts:
 Prints debug information for an edit operation.
(void) - eventShift:destIndex:
 Moves a run of events from one index to another within events .

Class Methods

(void) + getMusicBarData:raw:
 Copies a chart's raw music-bar bitmap out of an encoded sequence blob.

Protected Attributes

SequenceEvent * eventsTemplate [kEditSequenceTemplateSlotCount]
 The four difficulty/structure templates, each a malloc'd 2000-entry event array.
unsigned int templateNumEvent [kEditSequenceTemplateSlotCount]
 The event count of each template slot.
unsigned int templateEndSector [kEditSequenceTemplateSlotCount]
 The end sector of each template slot.
unsigned int templateNotesNum [kEditSequenceTemplateSlotCount]
 The note count of each template slot.
char templateMusicBar [kEditSequenceTemplateSlotCount][kEditSequenceTemplateMusicBarByteCount]
 The raw per-segment note-density music bar of each template slot.
SequenceEvent * events
 The malloc'd working event array (2000 entries).
SequenceEvent * copyEvents
 The malloc'd area copy/paste clipboard (2000 entries).
unsigned int numEvent
 The number of events in events .
unsigned int numPlayEvent
 The scoring-note count parsed from the chart header.
unsigned int endSector
 The chart's final sector.
unsigned int notesNum
 The number of note events in events .
unsigned int numCopyEvent
 The number of events in copyEvents .
unsigned int judgedIndex
 The judgement cursor over events .
unsigned int currentTempo
 The tempo in effect at the play position.
unsigned int oldTempo
 The tempo in effect before the last change.
unsigned int lastHakuSector
 The sector of the last beat (haku) line.
unsigned int nextHakuSector
 The sector of the next beat (haku) line.
unsigned int lastMeasureSector
 The sector of the last measure line.
unsigned int nextMeasureSector
 The sector of the next measure line.
char musicBar [kEditSequenceMusicBarByteCount]
 The packed note-density music bar.
int editMusicBar [kEditSequenceMusicBarSegmentCount]
 Per-segment note-density counts.
char conflictTable [kEditSequenceMusicBarByteCount]
 The packed conflict music bar.
char editConflictTable [kEditSequenceMusicBarSegmentCount]
 Per-segment conflict flags.
short lastJudge [kEditSequencePanelCount]
 The most recent grade shown per panel.
unsigned int lastJudgeSector [kEditSequencePanelCount]
 The sector of that grade per panel.
ScoreData gameScore
 The live score summary, mirrored from the play engine.
NSMutableArray * editHistory
 The undo/redo history of boxed edit-part records.
int currentHistory
 The cursor into editHistory ; -1 when empty.
int clapIndex
 The clap sound-effect scan cursor.
int backSector
 The play position of the previous -seekToTime: frame.
BOOL bClapSE
 Whether a clap sound effect should fire this frame.
BOOL _enableUndo
 Whether an undo is available.
BOOL _enableRedo
 Whether a redo is available.
unsigned short _firstMarker
 The panel bitmask of the first marker.
unsigned int _currentSector
 The current play position, in sectors.
unsigned int _currentIndex
 The seek cursor over events .
unsigned int _firstMarkerSector
 The sector of the first marker.
double _currentTime
 The current play position, in seconds.

Properties

BOOL isClap
 Whether a clap sound effect should fire on the current frame.
float hakuPhase
 The normalised phase within the current beat (haku) interval, in [0, 1].
float measurePhase
 The normalised phase within the current measure interval, in [0, 1].
float playPosition
 The normalised play position over the whole chart, in [0, 1].
double currentTime
 The current play position, in seconds.
unsigned int currentSector
 The current play position, in sectors.
unsigned int currentIndex
 The seek cursor over the working events.
unsigned short firstMarker
 The panel bitmask of the first marker.
unsigned int firstMarkerSector
 The sector of the first marker.
BOOL enableUndo
 Whether an undo is available.
BOOL enableRedo
 Whether a redo is available.

Detailed Description

The chart-editor data model.

Method Documentation

◆ addHistory:

- (void) addHistory: (nullable NSArray *) parts

Pushes an edit-part record onto the history, trimming and truncating as needed.

Parameters
partsThe array of boxed edit-part records for one undoable operation.
Ghidra address:
0x215b94

◆ addHistoryParts:index:sector:type:value:

- (void) addHistoryParts: (nullable NSMutableArray *) parts
index: (int) index
sector: (int) sector
type: (int) type
value: (int) value 

Boxes one edit-part record (index, sector, type, value) and appends it to an array.

Parameters
partsThe destination array.
indexThe event index.
sectorThe event sector.
typeThe part type (0 an add, 1 a delete).
valueThe event value (panel index).
Ghidra address:
0x2161dc

◆ addNote:

- (int) addNote: (unsigned int) btn

Adds a note at the current sector on a button, or deletes it when it already conflicts.

Parameters
btnThe panel index.
Returns
0 always.
Ghidra address:
0x2166c8

◆ addNote:divide:isSwitch:

- (int) addNote: (unsigned int) btn
divide: (int) divide
isSwitch: (BOOL) isSwitch 

Adds or toggles a note on a button, snapping to the nearest beat subdivision.

Parameters
btnThe panel index.
divideThe beat subdivision (15 disables snapping).
isSwitchWhether a conflicting note is deleted instead of ignored.
Returns
0 on success, 1 when the event or note limit is reached, 2 when past the end.
Ghidra address:
0x216380

◆ checkConflict:vector:

- (BOOL) checkConflict: (unsigned int) btn
vector: (int) direction 

Returns whether the note at the current index conflicts, on a button, in a direction.

Parameters
btnThe panel index to match.
directionThe search direction.
Returns
YES when the note at the current index conflicts, NO otherwise.
Ghidra address:
0x2159d4

◆ checkConflictArea:vector:

- (BOOL) checkConflictArea: (unsigned int) index
vector: (int) direction 

Returns whether the note at an index conflicts with another note in the given direction.

Parameters
indexThe event index whose button and area are tested.
directionThe search direction.
Returns
YES when the note conflicts with another in that direction, NO otherwise.
Ghidra address:
0x215988

◆ checkConflictByIndex:btn:area:sameCheck:

- (BOOL) checkConflictByIndex: (int) index
btn: (unsigned int) btn
area: (int) area
sameCheck: (BOOL) sameCheck 

Returns whether an index conflicts with a note on a button, searching both directions.

Parameters
indexThe reference event index.
btnThe panel index to match.
areaThe maximum sector distance that still counts as a conflict.
sameCheckWhether the reference index itself is excluded.
Returns
YES when a conflicting note is within the area, NO otherwise.
Ghidra address:
0x2158f8

◆ checkConflictByIndex:btn:vec:area:sameCheck:

- (int) checkConflictByIndex: (int) index
btn: (unsigned int) btn
vec: (int) direction
area: (int) area
sameCheck: (BOOL) sameCheck 

Searches by index in one direction for a conflicting note within an area.

Parameters
indexThe starting event index.
btnThe panel index to match.
directionThe search direction (1 forwards, -1 backwards, 0 in place).
areaThe maximum sector distance that still counts as a conflict.
sameCheckWhether the reference index itself is excluded.
Returns
The conflicting event index, or -1.
Ghidra address:
0x2152b4

◆ checkConflictBySector:btn:area:sameCheck:

- (BOOL) checkConflictBySector: (int) sector
btn: (unsigned int) btn
area: (int) area
sameCheck: (BOOL) sameCheck 

Returns whether a sector conflicts with a note on a button, searching both directions.

Parameters
sectorThe reference sector.
btnThe panel index to match.
areaThe maximum sector distance that still counts as a conflict.
sameCheckWhether the reference sector's own note is excluded.
Returns
YES when a conflicting note is within the area, NO otherwise.
Ghidra address:
0x215860

◆ checkConflictBySector:btn:vec:area:sameCheck:

- (int) checkConflictBySector: (int) sector
btn: (unsigned int) btn
vec: (int) direction
area: (int) area
sameCheck: (BOOL) sameCheck 

Searches by sector in one direction for a conflicting note within an area.

Parameters
sectorThe starting sector.
btnThe panel index to match.
directionThe search direction (1 forwards, -1 backwards, 0 in place).
areaThe maximum sector distance that still counts as a conflict.
sameCheckWhether the reference sector's own note is excluded.
Returns
The conflicting event index, or -1.
Ghidra address:
0x2155e4

◆ checkConflictEvent:btn:

- (BOOL) checkConflictEvent: (int) index
btn: (unsigned int) btn 

Returns whether the note event at an index is a note on a given button.

Parameters
indexThe event index.
btnThe panel index to match.
Returns
YES when the event is a note on that button, NO otherwise.
Ghidra address:
0x215168

◆ checkEventsLegality:

- (BOOL) checkEventsLegality: (nullable NSData *) data

Validates that a decoded sequence blob has a recognised header and a consistent length.

Parameters
dataThe decoded sequence blob.
Returns
YES if the blob is a well-formed chart.
Ghidra address:
0x21479c

◆ checkKeyConflict:

- (BOOL) checkKeyConflict: (int) btn

Returns whether adding a note on a button at the current sector would conflict.

Parameters
btnThe panel index to test.
Returns
YES when adding the note would conflict, NO otherwise.
Ghidra address:
0x215a1c

◆ conflictKeyCheck:vector:

- (BOOL) conflictKeyCheck: (unsigned int) btn
vector: (int) direction 

Returns whether a run of notes on a button starting at the current index conflicts.

Parameters
btnThe panel index to match.
directionThe scan direction.
Returns
YES when the run of notes conflicts, NO otherwise.
Ghidra address:
0x215a8c

◆ createConflictTable

- (void) createConflictTable

Rebuilds editConflictTable by testing every note event for a conflict.

Ghidra address:
0x215070

◆ createEvents:tempSlot:

- (void) createEvents: (nullable NSData *) data
tempSlot: (int) slot 

Parses a decoded sequence blob into one template slot.

Parameters
dataThe decoded sequence blob.
slotThe template slot (0 keeps only structural events; 1..3 are the difficulties).
Ghidra address:
0x2148d8

◆ deleteNote:

- (BOOL) deleteNote: (unsigned int) btn

Deletes the note nearest the current position on a button.

Parameters
btnThe panel index.
Returns
YES if a note was deleted.
Ghidra address:
0x216998

◆ eventArrayDecode:

- (void) eventArrayDecode: (nullable NSArray< NSNumber * > *) table

Decodes an array of boxed packed note words into the working event array.

Parameters
tableThe array of NSNumber packed words.
Ghidra address:
0x217028

◆ eventShift:destIndex:

- (void) eventShift: (int) srcIndex
destIndex: (int) destIndex 

Moves a run of events from one index to another within events .

Parameters
srcIndexThe source index.
destIndexThe destination index.
Ghidra address:
0x218650

◆ exeAreaCopy:endSec:

- (BOOL) exeAreaCopy: (int) startSec
endSec: (int) endSec 

Copies the notes in a sector range into the clipboard.

Parameters
startSecThe inclusive start sector.
endSecThe inclusive end sector.
Returns
YES if any note was copied.
Ghidra address:
0x217d50

◆ exeAreaDelete:endSec:

- (void) exeAreaDelete: (int) startSec
endSec: (int) endSec 

Deletes the notes in a sector range, pushing the deletion onto the history.

Parameters
startSecThe inclusive start sector.
endSecThe inclusive end sector.
Ghidra address:
0x217e50

◆ exeAreaPaste:

- (int) exeAreaPaste: (int) startSec

Pastes the clipboard notes starting at a sector, skipping conflicts.

Parameters
startSecThe paste-target start sector.
Returns
0 on success, 1 when a limit is reached, 2 when it would run past the end.
Ghidra address:
0x218168

◆ getBackBeatSector:

- (int) getBackBeatSector: (int) sector

Returns the sector of the first beat line after a sector, from the empty template.

Parameters
sectorThe reference sector.
Returns
The sector of the first beat line after the reference sector.
Ghidra address:
0x216fd4

◆ getConflictBar

- (const char *) getConflictBar

Returns the packed conflict music bar.

Returns
The packed conflict music bar.
Ghidra address:
0x217b74

◆ getConflictSector

- (unsigned int) getConflictSector

Returns the fixed conflict-detection window, in sectors.

Returns
The conflict-detection window, in sectors.
Ghidra address:
0x217bb4

◆ getEndSector

- (unsigned int) getEndSector

Returns the chart's end sector.

Returns
The chart's end sector.
Ghidra address:
0x217ba4

◆ getEventData

- (NSMutableArray< NSNumber * > *) getEventData

Re-encodes the working event array into an array of boxed packed note words.

Returns
A mutable array of NSNumber packed words, always 2000 entries long.
Ghidra address:
0x214654

◆ getEventNum

- (unsigned int) getEventNum

Returns the working event count.

Returns
The number of events in the working array.
Ghidra address:
0x2184b4

◆ getFirstMarker

- (unsigned int) getFirstMarker

Returns the first-marker panel bitmask, computed from the leading same-sector notes.

Returns
The panel bitmask of the chart's first marker.
Ghidra address:
0x2184c4

◆ getFirstSector

- (unsigned int) getFirstSector

Returns the sector of the first note.

Returns
The first note's sector.
Ghidra address:
0x21853c

◆ getFrontBeatSector:

- (int) getFrontBeatSector: (int) sector

Returns the index of the beat line at or before a sector, from the empty template.

Parameters
sectorThe reference sector.
Returns
The index of the beat line at or before the sector.
Ghidra address:
0x216f78

◆ getMarkerState:

- (void) getMarkerState: (int *) state

Fills a per-panel marker-animation state array for the current position.

Parameters
stateA 16-element destination array of packed marker states.
Ghidra address:
0x2179a4

◆ getMusicBar

- (const char *) getMusicBar

Returns the packed note-density music bar.

Returns
The packed note-density music bar.
Ghidra address:
0x217b64

◆ getMusicBarData:raw:

+ (void) getMusicBarData: (char *) raw
raw: (nullable NSData *) data 

Copies a chart's raw music-bar bitmap out of an encoded sequence blob.

Parameters
rawThe 60-byte destination buffer.
dataThe encoded sequence blob; ignored unless longer than 96 bytes.
Ghidra address:
0x214738

◆ getNearBeatRate:

- (float) getNearBeatRate: (float) rate

Returns the beat-line rate nearest a fractional position, from the empty template.

Parameters
rateThe fractional position over the chart, in [0, 1].
Returns
The nearest beat-line rate.
Ghidra address:
0x216c98

◆ getNearDivBeatRate:divide:

- (float) getNearDivBeatRate: (float) rate
divide: (int) divide 

Returns the fractional position nearest a fractional position on a subdivided beat grid.

Parameters
rateThe fractional position over the chart, in [0, 1].
divideThe beat subdivision.
Returns
The nearest fractional position on the subdivided beat grid.
Ghidra address:
0x216ee8

◆ getNearDiveBeatSector:divide:

- (int) getNearDiveBeatSector: (int) sector
divide: (int) divide 

Returns the sector nearest a sector on a subdivided beat grid.

Parameters
sectorThe reference sector.
divideThe beat subdivision (15 returns the sector unchanged).
Returns
The nearest sector on the subdivided beat grid.
Ghidra address:
0x216d14

◆ getNoteNum

- (unsigned int) getNoteNum

Returns the working note count.

Returns
The number of note events in the working array.
Ghidra address:
0x2184a4

◆ getRewindMeasureSector

- (int) getRewindMeasureSector

Returns the sector of the measure two measures before the current position.

Returns
The rewind-target measure sector.
Ghidra address:
0x217bbc

◆ getSequenceEventTable

- (const SequenceEvent *) getSequenceEventTable

Returns the working event array.

Returns
The working event array.
Ghidra address:
0x217b84

◆ getSequencePasteTable

- (const SequenceEvent *) getSequencePasteTable

Returns the area copy/paste clipboard event array.

Returns
The clipboard event array.
Ghidra address:
0x217b94

◆ getTemplateNoteNum:

- (unsigned int) getTemplateNoteNum: (int) slot

Returns the note count of a template slot.

Parameters
slotThe template slot.
Returns
The template slot's note count.
Ghidra address:
0x218484

◆ importSequenceData:

- (void) importSequenceData: (nullable NSArray< NSNumber * > *) table

Loads a new chart into the working event array and rebuilds every derived table.

Parameters
tableThe array of boxed packed note words.
Ghidra address:
0x2171f0

◆ initWithData:sequenceData:

- (instancetype) initWithData: (nullable KUnzip *) data
sequenceData: (nullable NSArray< NSNumber * > *) sequenceData 

Initialises the editor from a downloaded pack archive and an optional edit-note table.

Parameters
dataThe KUnzip archive holding the three difficulty sequence entries.
sequenceDataThe edit-note table to load, or nil to start from the empty template.
Returns
The initialised editor, or nil if any difficulty entry is malformed.
Ghidra address:
0x21725c

◆ loadTemplate:

- (void) loadTemplate: (int) slot

Loads a template slot into the working event array and clears the history.

Parameters
slotThe template slot to load.
Ghidra address:
0x214f24

◆ printInfoParts:

- (void) printInfoParts: (nullable NSString *) info

Prints debug information for an edit operation.

The binary body is empty.

Parameters
infoThe debug label.
Ghidra address:
0x21864c

◆ rate2sector:

- (unsigned int) rate2sector: (float) rate

Converts a fractional position over the chart to a sector.

Parameters
rateThe fractional position, in [0, 1].
Returns
The corresponding sector.
Ghidra address:
0x216f5c

◆ redoHistory

- (int) redoHistory

Redoes the next history entry.

Returns
The history entry count.
Ghidra address:
0x2161cc

◆ refreshConflictTable

- (void) refreshConflictTable

Packs editConflictTable into the nibble-per-segment conflictTable bitmap.

Ghidra address:
0x214eb8

◆ refreshEditMusicBar

- (void) refreshEditMusicBar

Rebuilds the per-segment note-density table editMusicBar from the working events.

Ghidra address:
0x214d98

◆ refreshMusicBar

- (void) refreshMusicBar

Packs editMusicBar into the nibble-per-segment musicBar bitmap.

Ghidra address:
0x214e44

◆ reset

- (void) reset

Resets the play state and clears every recorded judgement.

Ghidra address:
0x2175b0

◆ rollController:

- (int) rollController: (BOOL) undo

Replays or reverses one history entry, rebuilding the music-bar and conflict tables.

Parameters
undoYES to undo the current entry, NO to redo the next entry.
Returns
The history entry count at the time of the call.
Ghidra address:
0x215ce8

◆ searchBtnNearSector:btn:

- (int) searchBtnNearSector: (int) sector
btn: (int) btn 

Returns the index of the note nearest a sector on a given button, or -1.

Parameters
sectorThe reference sector.
btnThe panel index to match.
Returns
The nearest matching note's event index, or -1 when there is none.
Ghidra address:
0x2151b4

◆ searchNearIndex:

- (int) searchNearIndex: (int) sector

Returns the event index nearest a sector.

Parameters
sectorThe reference sector.
Returns
The nearest event's index.
Ghidra address:
0x215244

◆ searchSectorIndex:

- (int) searchSectorIndex: (int) sector

Returns the index of the first event at or after a sector, or -1 past a terminator.

Parameters
sectorThe reference sector.
Returns
The index of the first event at or after the sector, or -1 past a terminator.
Ghidra address:
0x217d08

◆ sector2rate:

- (float) sector2rate: (int) sector

Converts a sector to a fractional position over the chart.

Parameters
sectorThe sector.
Returns
The fractional position over the chart, in [0, 1].
Ghidra address:
0x216f40

◆ seekToTime:

- (void) seekToTime: (double) time

Advances the play position to a time, updating the tempo, measure, beat, and clap state.

Parameters
timeThe new play time, in seconds.
Ghidra address:
0x217754

◆ undoHistory

- (int) undoHistory

Undoes the current history entry.

Returns
The history entry count.
Ghidra address:
0x2161bc

Property Documentation

◆ currentIndex

- (unsigned int) currentIndex
readnonatomicassign

The seek cursor over the working events.

Ghidra address:
0x2186f4

◆ currentSector

- (unsigned int) currentSector
readnonatomicassign

The current play position, in sectors.

Ghidra address:
0x2186e4

◆ currentTime

- (double) currentTime
readnonatomicassign

The current play position, in seconds.

Ghidra address:
0x2186d4

◆ enableRedo

- (BOOL) enableRedo
readnonatomicassign

Whether a redo is available.

Ghidra address:
0x218734

◆ enableUndo

- (BOOL) enableUndo
readnonatomicassign

Whether an undo is available.

Ghidra address:
0x218724

◆ firstMarker

- (unsigned short) firstMarker
readnonatomicassign

The panel bitmask of the first marker.

Ghidra address:
0x218704

◆ firstMarkerSector

- (unsigned int) firstMarkerSector
readnonatomicassign

The sector of the first marker.

Ghidra address:
0x218714

◆ hakuPhase

- (float) hakuPhase
readnonatomicassign

The normalised phase within the current beat (haku) interval, in [0, 1].

Ghidra address:
0x217c38

◆ isClap

- (BOOL) isClap
readnonatomicassign

Whether a clap sound effect should fire on the current frame.

Ghidra address:
0x2161ac

◆ measurePhase

- (float) measurePhase
readnonatomicassign

The normalised phase within the current measure interval, in [0, 1].

Ghidra address:
0x217c84

◆ playPosition

- (float) playPosition
readnonatomicassign

The normalised play position over the whole chart, in [0, 1].

Ghidra address:
0x217cd0

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