Skip to content

Preset MIDI connections do not work across machines #889

@HorstBaerbel

Description

@HorstBaerbel

Operating system and application version

  • OS: Fedora
  • Version 3.29.1

Describe the bug
I have two machines running the same modV and Fedora version. When I create a preset with MIDI connections on one machine those MIDI connections do not work on the other machine despite the same MIDI controller being connected.

EDIT: I also have the problem, that MIDI connections do not work on the same machine. They seem to change IDs from time to time. This really sucks as you have to edit the preset manually and copy-paste the new IDs...

Looking at the code I guess storing the "unique" port ID that comes from the browser / system does not make much sense. Plugging it into a different port might result in a different ID. I personally can live with one device (type/name) per system.
If you want to support multiple device of the same type, assign increasing numbers to the MIDI devices found. The first enumerated device gets "ID" 1, the next 2 and so on. Now assign MIDI connections based on that "ID". That should work with multiple devices and on multiple machines.

To Reproduce
Steps to reproduce the behavior:

  1. Create preset on one machine
  2. Make MIDI connections
  3. Copy preset to other machine
  4. MIDI connections do not work on second machine

Expected behavior
MIDI connections work across machines and work when plugging the same MIDI device into a different USB port.

Preset: 2023-05.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementFeature requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions