C# Class MidiPlayer, unitymidi

Inheritance: MonoBehaviour
Show file Open project: deckycoss/unitymidi Class Usage Examples

Public Properties

Property Type Description
bankPath string
gain float
midiFile UnityEngine.TextAsset
sampleBufferSize int

Public Methods

Method Description
PauseSequence ( ) : void
Play ( TextAsset midiFile = null ) : void
StartMidi ( TextAsset midiFile ) : void
UnpauseSequence ( ) : void

Private Methods

Method Description
Awake ( ) : void
HandleMidiEvent ( MidiEvent midiEvent ) : void
HandleNoteOff ( int channel, int note ) : void
HandleNoteOn ( int channel, int note, int velocity ) : void
OnAudioFilterRead ( float data, int channels ) : void
TriggerMidiEvent ( MidiEvent evt ) : void
TriggerNoteOff ( int channel, int note ) : void
TriggerNoteOn ( int channel, int note, int velocity ) : void
Update ( ) : void

Method Details

PauseSequence() public method

public PauseSequence ( ) : void
return void

Play() public method

public Play ( TextAsset midiFile = null ) : void
midiFile UnityEngine.TextAsset
return void

StartMidi() public method

public StartMidi ( TextAsset midiFile ) : void
midiFile UnityEngine.TextAsset
return void

UnpauseSequence() public method

public UnpauseSequence ( ) : void
return void

Property Details

bankPath public static property

public static string bankPath
return string

gain public property

public float gain
return float

midiFile public property

public TextAsset,UnityEngine midiFile
return UnityEngine.TextAsset

sampleBufferSize public property

public int sampleBufferSize
return int