Skip to content

Midi In/Out in same python script failing... #16

Description

@sinfloodmusic

Hi... I'm able to get midi out and in working separately - but just not at the same time it seems.

setup out

midiout = rtmidi.MidiOut()
midiout.open_port(1)
midiout.send_message([0x90, 33, 100])
midiout.send_message([0x80, 33, 0])

this works... I hear a clap from my drum machine...

However this code...

setup out...

midiout = rtmidi.MidiOut()
midiout.open_port(1)
midiout.send_message([0x90, 33, 100])
midiout.send_message([0x80, 33, 0])

I hear this clap from my drum machine...

setup in

midi_in = rtmidi.MidiIn()
midi_in.callback = MidiCallback
midi_in.open_port(1)

second call to output after in was initialized

midiout.send_message([0x90, 33, 100])
midiout.send_message([0x80, 33, 0])

this fails and I do not hear the clap from my drum machine

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions