Midi Class

 

About Midi Functions

 

Midi functions use native Windows API.

Midi functions can handle multiple MIDI Input and multiple MIDI Output devices at a time.

The MIDI Input Buffers for receiving MIDI Messages have a limit of 1024 bytes.

The MIDI Output Buffer for sending MIDI Messages has no limits.

 

About Midi Class

 

Midi class is mainly used for deinitializing Midi library.

 

Midi Class Methods

 

Midi.Deinitialize() method deinitializes Midi library. This function should be called for freeing memory used (usually inside OnApplicationQuit() method).

 

Code Example

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Giavapps.MIDI;

public class CodeExample : MonoBehaviour
{

void Awake()
{
//Other function calls could be here…
}

void Update()
{
//Other function calls could be here or you can start a Coroutine for best performance!
}

void OnApplicationQuit()
{
Midi.Deinitialize();//Deinitializes Midi
}

}

 

I am Luigi Piscopo, also known as DJ GiDeejay / Producer / Remixer in the music world. I am a Producer with a lot of experience in photo editing, video editing, audio editing, graphic design, web design, programming and promotion.

Comments are closed.