class SongOffsets
package funkin.data.song
implements ICloneable<SongOffsets>
import funkin.data.song.SongData
Available on all platforms
Offsets to apply to the song's instrumental and vocals, relative to the chart. These are intended to correct for issues with the chart, or with the song's audio (for example a 10ms delay before the song starts). This is independent of the offsets applied in the user's settings, which are applied after these offsets and intended to correct for the user's hardware.
Constructor
new(instrumental:Float = 0.0, ?altInstrumentals:Map<String, Float>, ?vocals:Map<String, Float>, ?altVocals:Map<String, Map<String, Float>>)
Variables
optionalaltInstrumentals:Map<String, Float>
Apply different offsets to different alternate instrumentals.
optionalaltVocals:Map<String, Map<String, Float>>
The offset, in milliseconds, to apply to the songs vocals, relative to each alternate instrumental. This is useful for the circumstance where, for example, an alt instrumental has a few seconds of lead in before the song starts.
optionalinstrumental:Float
The offset, in milliseconds, to apply to the song's instrumental relative to the chart.
For example, setting this to -10.0 will start the instrumental 10ms earlier than the chart.
Setting this to -5000.0 means the chart start 5 seconds into the song.
Setting this to 5000.0 means there will be 5 seconds of silence before the song starts.
optionalvocals:Map<String, Float>
The offset, in milliseconds, to apply to the song's vocals, relative to the song's base instrumental. These are applied ON TOP OF the instrumental offset.