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

@:value({ instrumental : 0.0 })new(instrumental:Float = 0.0, ?altInstrumentals:Map<String, Float>, ?vocals:Map<String, Float>, ?altVocals:Map<String, Map<String, Float>>)

Variables

@:optional@:default([])optionalaltInstrumentals:Map<String, Float>

Apply different offsets to different alternate instrumentals.

@:optional@:default([])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.

@:optional@:default(0)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.

@:optional@:default([])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.

Methods

getInstrumentalOffset(?instrumental:String):Float

getVocalOffset(charId:String, ?instrumental:String):Float

setInstrumentalOffset(value:Float, ?instrumental:String):Float

setVocalOffset(charId:String, value:Float):Float

toString():String

Produces a string representation suitable for debugging.