Read note from MIDI file using AudioKit

前端 未结 2 1447
庸人自扰
庸人自扰 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:51

    Have you looked at any of the example Audio Kit projects available for download? they are very useful for troubleshooting AK. I actually find the examples better than the documentation (as implementation isn't explained very well).

    As for your question you can add a midi listener to an event, there is an example of this code in the Analog Synth X Project available here.

    let midi = AKMIDI()
            midi.createVirtualPorts()
            midi.openInput("Session 1")
            midi.addListener(self)
    

    For a more worked bit of code you can refer to this although the code is likely out of date in parts.

提交回复
热议问题