C# Class iMUSE, DarkForcesUnity

Inheritance: MonoBehaviour
Show file Open project: joeriedel/DarkForcesUnity Class Usage Examples

Public Properties

Property Type Description
CurrentTrack int
CurrentTrackTime float
Offset float
TotalTrackTime float

Public Methods

Method Description
Awake ( ) : void
HandleEndOfTrack ( ) : bool
HandleSysExEvent ( MidiEvent midiEvent ) : bool
InitRandomTable ( ) : void
NotifyBranchFightTrack ( int track, bool slow ) : void
PlayLevelMusic ( GMD, stalk, GMD, fight ) : void
ProcessSysExEvent ( string msg ) : void
ProcessSysExQueue ( ) : void
ResetTransitionTimeout ( ) : void
ToFighTrack ( int track, bool slow ) : void
ToStalkTrack ( int track, bool slow ) : void
TransitionToFight ( int track, bool slow ) : void
Update ( ) : void
handleStartNew ( ) : void

Private Methods

Method Description
NextRand ( ) : float
OnAudioFilterRead ( float data, int channels ) : void
PitchTo ( float target, float time ) : void
RandRange ( float min, float max ) : float
RandRange ( int min, int max ) : int
UpdatePitch ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

HandleEndOfTrack() public method

public HandleEndOfTrack ( ) : bool
return bool

HandleSysExEvent() public method

public HandleSysExEvent ( MidiEvent midiEvent ) : bool
midiEvent CSharpSynth.Midi.MidiEvent
return bool

InitRandomTable() public method

public InitRandomTable ( ) : void
return void

NotifyBranchFightTrack() public method

public NotifyBranchFightTrack ( int track, bool slow ) : void
track int
slow bool
return void

PlayLevelMusic() public method

public PlayLevelMusic ( GMD, stalk, GMD, fight ) : void
stalk GMD,
fight GMD,
return void

ProcessSysExEvent() public method

public ProcessSysExEvent ( string msg ) : void
msg string
return void

ProcessSysExQueue() public method

public ProcessSysExQueue ( ) : void
return void

ResetTransitionTimeout() public method

public ResetTransitionTimeout ( ) : void
return void

ToFighTrack() public method

public ToFighTrack ( int track, bool slow ) : void
track int
slow bool
return void

ToStalkTrack() public method

public ToStalkTrack ( int track, bool slow ) : void
track int
slow bool
return void

TransitionToFight() public method

public TransitionToFight ( int track, bool slow ) : void
track int
slow bool
return void

Update() public method

public Update ( ) : void
return void

handleStartNew() public method

public handleStartNew ( ) : void
return void

Property Details

CurrentTrack public property

public int CurrentTrack
return int

CurrentTrackTime public property

public float CurrentTrackTime
return float

Offset public property

public float Offset
return float

TotalTrackTime public property

public float TotalTrackTime
return float