Skip to content

Getting additional messages after closing port under Windows #52

@jmeile

Description

@jmeile

Hi

I don't know if this is also the behavior on linux, but under Windows I'm getting additional messages after closing the MIDI Out port. First I start:

python midiin_callback.py
DEBUG:rtmidi.midiutil:Creating MidiIn object.
Available MIDI ports:

[0] Bome MIDI Translator 1 0
[1] loopMIDI Port 1

Select MIDI input port (Control-C to exit): 1
INFO:rtmidi.midiutil:Opening MIDI input port #0 (Bome MIDI Translator 1 0).
Attaching MIDI input callback handler.
Entering main loop. Press Control-C to exit.

Then I run:

python midioutwrapper.py
Available MIDI ports:

[0] Microsoft GS Wavetable Synth 0
[1] Bome MIDI Translator 1 1
[2] loopMIDI Port 2

Select MIDI output port (Control-C to exit): 2
Connect to new MIDI port and then press key...

I tried both ports: Bome MIDI Translator and loopMIDI and the result is the same. I always get:

[loopMIDI Port 1] @1576058149.982414 [194, 40]
[loopMIDI Port 1] @1576058149.983414 [146, 60, 127]
[loopMIDI Port 1] @1576058150.983414 [130, 60, 0]
[loopMIDI Port 1] @1576058161.087414 [176, 123, 0]
[loopMIDI Port 1] @1576058161.087414 [176, 121, 0]
[loopMIDI Port 1] @1576058161.088414 [177, 123, 0]
[loopMIDI Port 1] @1576058161.089414 [177, 121, 0]
[loopMIDI Port 1] @1576058161.091414 [178, 123, 0]
[loopMIDI Port 1] @1576058161.092414 [178, 121, 0]
[loopMIDI Port 1] @1576058161.093414 [179, 123, 0]
[loopMIDI Port 1] @1576058161.094414 [179, 121, 0]
[loopMIDI Port 1] @1576058161.094414 [180, 123, 0]
[loopMIDI Port 1] @1576058161.095413 [180, 121, 0]
[loopMIDI Port 1] @1576058161.096413 [181, 123, 0]
[loopMIDI Port 1] @1576058161.097413 [181, 121, 0]
[loopMIDI Port 1] @1576058161.098413 [182, 123, 0]
[loopMIDI Port 1] @1576058161.098413 [182, 121, 0]
[loopMIDI Port 1] @1576058161.099413 [183, 123, 0]
[loopMIDI Port 1] @1576058161.099413 [183, 121, 0]
[loopMIDI Port 1] @1576058161.100413 [184, 123, 0]
[loopMIDI Port 1] @1576058161.104413 [184, 121, 0]
[loopMIDI Port 1] @1576058161.107413 [185, 123, 0]
[loopMIDI Port 1] @1576058161.113413 [185, 121, 0]
[loopMIDI Port 1] @1576058161.115413 [186, 123, 0]
[loopMIDI Port 1] @1576058161.115413 [186, 121, 0]
[loopMIDI Port 1] @1576058161.116413 [187, 123, 0]
[loopMIDI Port 1] @1576058161.116413 [187, 121, 0]
[loopMIDI Port 1] @1576058161.117413 [188, 123, 0]
[loopMIDI Port 1] @1576058161.117413 [188, 121, 0]
[loopMIDI Port 1] @1576058161.118413 [189, 123, 0]
[loopMIDI Port 1] @1576058161.118413 [189, 121, 0]
[loopMIDI Port 1] @1576058161.119413 [190, 123, 0]
[loopMIDI Port 1] @1576058161.119413 [190, 121, 0]
[loopMIDI Port 1] @1576058161.123413 [191, 123, 0]
[loopMIDI Port 1] @1576058161.124413 [191, 121, 0]

Is this normal? Will this also happen under Linux? Will this affect other connected MIDI devices?

As far as I see it, the first three messages are sent by: midioutwrapper.py. The other ones are message like ALL NOTES OFF, etc..

Thanks

Best regards
Josef

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions