coremidi - Get iOS Core MIDI client name to show in list of devices -
i have got midi in working in ios app using core midi. however, if open app outputs midi (for example, free app little midi machine) app not show in list of possible devices (in case of lmm, in list named "coremidi outputs"), though app receives midi notes anyway. other apps show name (i.e. ims-20) how can "advertise" app other midi apps on same system?
ok, after messing around while i've worked out. best explain, , if there errors in info, hope experts feel free chime in.
there 2 ways receive midi messages core midi. either create midiportref input port midiinputportcreate, , iterate on possible sources, connecting each 1 in turn midiportconnectsource. or can create midiendpointref midi destination mididestinationcreate - there no need iterate on sources, , in both cases midireadproc needed - i.e. function use read incoming messages has same signature in both scenarios.
when use mididestinationcreate, app shows in other apps destination can selected. makes more sense selecting input sources within app, since @ given time these sources may or may not exist. relies on other app being able select yours destination. maybe both things needed, cover scenarios.
i did not find example code using mididestinationcreate inter-app communication on ios, hope info of use.
anyway beware app needs set background audio, per question:
Comments
Post a Comment