Skip to content

MIDI devices are only checked when starting NBS #570

@CreeperPookie

Description

@CreeperPookie

Describe the bug
I ran into this entirely unintentionally, when my keyboard turned off from inactivity lol
when NBS checks for MIDI devices, it only does so at the start of the program; if a device reconnects or is connected while NBS is open, it won't pick it up until you restart NBS
if you reconnect it, then interestingly the MIDI entry for the device will still be there, but the device still won't have an effect

Platform
Windows 11

To Reproduce
Steps to reproduce the behavior:

  1. Open NBS (no pun intended)
  2. Connect a MIDI device, or reconnect an existing one; if you have an Android phone, it can be used as MIDI if you don't have a physical device
  3. Send something on that device, such as keydown/keyup
  4. Notice NBS doesn't do any action

Expected behavior
I would expect NBS to update its device either on connect, or every so often (every 5-10 seconds maybe?) so its list of MIDI devices represents what actually is connected

Additional context*
While I can't say this for certain (I don't happen to have NBS < 3.1.x lying around), I highly suspect this probably is a classic issue, from the original Note Block Studio; if it is, that may make this a lot harder to fix, since the problem could be fairly deep in NBS' MIDI handlers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions