Helper class to process faders

Static methods

@:has_untypedstaticinlinecreate():Fader

Variables

mFrom:Float32

Value to fade from

mTo:Float32

Value to fade to

mDelta:Float32

Delta between from and to

mTime:Time

Total time to fade

mStartTime:Time

Time fading started

mEndTime:Time

Time fading will end

mCurrent:Float32

Current value. Used in case time rolls over.

mActive:Int32

Active flag; 0 means disabled, 1 is active, 2 is LFO, -1 means was active, but stopped

Methods

@:has_untypedinlinedestroy():Void

setLFO(aFrom:Float32, aTo:Float32, aTime:Time, aStartTime:Time):Void

Set up LFO

set(aFrom:Float32, aTo:Float32, aTime:Time, aStartTime:Time):Void

Set up fader

get(aCurrentTime:Time):Float32

Get the current fading value