editSong collects; they apply together, as one change.
Methods
addEvent()
authoredTracks or addTrack. It’s refused, with the reason, when it
means nothing on the track’s instrument or the format can’t write it. A .mid track holds every difficulty, so
scope says which one, or instrument; an event the format stores once for the instrument, such as star power,
is added for the instrument whichever difficulty asks. A .mid note’s velocity defaults to 100 and its channel
to 0.
Parameters
Returns
void
addTempo()
[SyncTrack] section or the conductor track, rounded as setTempo rounds.
Parameters
Returns
void
addTextEvent()
[Events] section or the events track.
Parameters
Returns
void
addTimeSignature()
[SyncTrack] section or the conductor track.
Parameters
Returns
void
addTrack()
addEvent can fill it in the same batch.
- In a
.chartfile, it’s an empty section, such as[ExpertSingle], at the end of the file. An empty section of that name that Clone Hero reads is returned instead. - In a
.midfile, a track holds every difficulty: a new one, such asPART GUITAR, goes after the last track. When the instrument has a track, that one is returned. Either way, the returned track’sdifficultyis the one asked for, soaddEventadds to that difficulty.
RangeError when Clone Hero already reads events for that instrument and difficulty.
Parameters
Returns
AuthoredTrack
remove()
Parameters
Returns
void
setLength()
Parameters
Returns
void
setMetadata()
null. A song without song.ini gets one, holding the .chart [Song] values Clone Hero read, so only the
edited value reads differently. A value song.ini can’t hold as written, such as one with a line break, is refused.
Parameters
Returns
void
setTempo()
.chart, whole
microseconds per beat in .mid.
Parameters
Returns
void
setText()
Parameters
Returns
void
setTick()
Parameters
Returns
void
setTimeSignature()
Parameters
Returns
void