Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIDI Input in iOS is not implemented #32065

Open
Tracked by #76797
Imerion opened this issue Sep 9, 2019 · 4 comments
Open
Tracked by #76797

MIDI Input in iOS is not implemented #32065

Imerion opened this issue Sep 9, 2019 · 4 comments

Comments

@Imerion
Copy link

Imerion commented Sep 9, 2019

Godot version:
3.1

OS/device including version:
iPhone 6, iOS 11.2.5

Issue description:
This code should produce a result when input is received from a MIDI-interface. It has been confirmed to work on desktop. For some reason it does not work on iOS.

OS.open_midi_inputs()
OS.get_connected_midi_inputs()
set_process_unhandled_input(true)
func _unhandled_input(event : InputEvent):
    if (event is InputEventMIDI):
        if (event.get_channel() == 1):
            print ("MIDI Action Received")

Steps to reproduce:
Use above code on iOS device with MIDI-interface attached. (Or use the example below that should react to input from a MIDI device sending on channel 1.)

Minimal reproduction project:
MIDI-Example.zip

@akien-mga akien-mga changed the title MIDI Input in iOS doesn't seem to work MIDI Input in iOS is not implemented Sep 23, 2019
@akien-mga
Copy link
Member

MIDI support was implemented for various platforms, but not yet for iOS. The CoreMidi driver used for macOS and added in #20154 might work for iOS with some changes though, as least CoreAudio is shared by both macOS and iOS.

CC @godotengine/ios

@Imerion
Copy link
Author

Imerion commented Sep 23, 2019

Ah, I see! Thanks for clearing that up and sorry for not noticing. Somehow I assumed it was implemented for iOS too. But then I guess MIDI Input support for iOS is at least a few releases away?

@Imerion
Copy link
Author

Imerion commented Sep 23, 2019

Just to make sure, is there Android support for MIDI Input? Otherwise, perhaps I should change the title of this issue to reflect that too.

Calinou added a commit to Calinou/godot that referenced this issue May 31, 2020
akien-mga pushed a commit to akien-mga/godot that referenced this issue Jun 4, 2020
@KoBeWi
Copy link
Member

KoBeWi commented Sep 2, 2020

Still valid in 7cc1e20

EDIT:
Or maybe not >_> If someone could confirm the confirmation it would be nice.

huhund pushed a commit to huhund/godot that referenced this issue Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants