Repository navigation
Conversation
- midi_play: scan PortMidi outputs for JUST_INTONATION_MIDI_OUT_NAME (default loopbe) or honor JUST_INTONATION_MIDI_DEVICE_ID; raise a RuntimeError that lists available outputs on failure; decode bytes device names; fix pitch_bend reset to pass explicit value 0 - README: MIDI signal path, Windows LoopBe/loopMIDI, macOS IAC, Linux ALSA hints, env vars, pitch-bend synth expectations Co-authored-by: endolith <endolith@gmail.com>
cursor
Bot
force-pushed
the
cursor/midi-play-docs-2589
branch
from
June 12, 2026 04:44
8e48fe7 to
4571bac
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
midi_play.pywas hard‑wired to MIDI device id3and a name substringLoopBe, which breaks whenever driver order changes or you are not on Windows with LoopBe1. This branch documents the intended virtual‑cable → softsynth pipeline and selects the output device via a name scan or explicit environment variables.Code (
midi_play.py)midi.init(), resolve the PortMidi output device by:JUST_INTONATION_MIDI_DEVICE_ID(integer), if set; orJUST_INTONATION_MIDI_OUT_NAME(defaultloopbe, case‑insensitive).RuntimeErrorwith every available MIDI output and ids so you can pin…_DEVICE_IDwithout guessing.pitch_bend(0, channel=0)when resetting bend (explicit value; matchesOutput.pitch_bend(self, value=0, channel=0)).Documentation (
README.md)New “MIDI playback” section: signal path, why silence happens,
pygame/numpyinstall, Windows (LoopBe1 / loopMIDI + DAW input), macOS (IAC +JUST_INTONATION_MIDI_OUT_NAME=IAC), Linux (ALSA /aconnectsketch), env vars,PM_RECOMMENDED_OUTPUT_DEVICEpointer, and default ±2 semitone pitch‑bend expectation.Verification
pytest— 21 passed (unchanged test surface;midi_playis not imported by tests).