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

Can't open MIDI ports after closing them #23

Open
Tolsi opened this issue Dec 21, 2021 · 0 comments
Open

Can't open MIDI ports after closing them #23

Tolsi opened this issue Dec 21, 2021 · 0 comments

Comments

@Tolsi
Copy link

Tolsi commented Dec 21, 2021

My code looks like:

def process_midis():
    midiin1.openPort(port1)
    midiout1.openPort(port1)
    midiout1.openPort(port2)

...

    midiin1.closePort()
    midiout1.closePort()
    midiout1.closePort()

and when I call it the second time I got an error

MidiInApi::setCallback: a callback function is already set!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant