Skip to content

pygame.midi only offers non-blocking reads and no event mechanism (1581) #890

@GalacticEmperor1

Description

@GalacticEmperor1

Issue №1581 opened by ghost at 2020-02-17 22:27:56

That is unfortunate because now we only can do polling.
Am I right that the portmedia library underneath has no support for blocking reads either?

Related Docs: https://www.pygame.org/docs/ref/midi.html


Comments

# # MyreMylar commented at 2020-05-15 19:37:34

@flok99 Did you discover anything else about this? Right now we're not sure what you want pygame to do, or exactly what you are trying to accomplish.

Here is the pygame documentation for the midi library:

https://www.pygame.org/docs/ref/midi.html

And here is the documentation for the portmidi library that pygame wraps:

http://portmedia.sourceforge.net/portmidi/doxygen/


# # MyreMylar commented at 2020-05-29 16:53:11

While poking around midi libraries I noticed that RtMidi is the up and coming thing and I wonder if pygame should switch to wrapping that instead in pygame 2.

https://www.music.mcgill.ca/~gary/rtmidi/

Here's an example of another python library that wraps rtmidi: https://spotlightkid.github.io/python-rtmidi/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions