コード例 #1
0
 public static void SetupDispatcher()
 {
     if (singleton == null)
     {
         GameObject go = new GameObject();
         go.transform.name = "MIDIUnified Dispatcher";
         singleton         = go.AddComponent <MidiDispatcher> ();
     }
 }
コード例 #2
0
 void OnDestroy()
 {
     singleton = null;
 }
コード例 #3
0
 void OnEnable()
 {
     singleton = this;
 }
コード例 #4
0
 void Awake()
 {
     singleton = this;
 }
コード例 #5
0
ファイル: MidiOut.cs プロジェクト: musicalcoderash/VR-allMIDI
 public static void NoteDispatch(int aNoteIndex, float aDuration, float aDelay = 0f, int aVolume = 80, int aChannel = 0, Action started = null, Action finished = null)
 {
     MidiDispatcher.DispatchNote(aNoteIndex, aVolume, aChannel, aDuration, aDelay, started, finished);
 }