Example #1
0
    void OnEnable()
    {
        sampleRate = AudioSettings.outputSampleRate;

        MidiInput.logInput = true;

        Debug.Log(MidiInput.GetDeviceCount() + " device(s) found. Trying to use device 0.");

        MidiInput.OnMidiInput += ProcessInput;
        MidiInput.AddDevice(0);
    }