Read note from MIDI file using AudioKit

前端 未结 2 1455
庸人自扰
庸人自扰 2021-02-15 18:36

I am trying to build a sequencer that render the note from midi file.

Currently I am using AudioKit for the music data processing. Would like to know how can I get the

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-15 18:47

    Tony, is it that you aren’t receiving any MIDI events, or just the print statements?

    I agree with Axemasta’s response about adding AKMidiListener to the class, along with checking out the MIDI code examples that come with AudioKit. This ROM Player example shows how to play external MIDI files with the AKMidiSsmpler node:

    https://github.com/AudioKit/ROMPlayer

    In order for the print to display, try wrapping it in a DispatchQueue.main.async so that it’s on the main thread. Here’s an AudioKit MIDI implementation question with a code example that I posted here:

    AudioKit iOS - receivedMIDINoteOn function

    I hope this helps.

提交回复
热议问题