Add extra OSC destination (second host:port) - #4
Draft
harrrisbc wants to merge 13 commits into
Draft
Conversation
Map Xbox buttons to MIDI notes and sticks/triggers/D-pad to CCs via mapping.yaml, with CLI flags to enable MIDI, choose port/channel, and a small offline bridge test plus midi_listen helper. Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
Introduce xbox/ps5 joystick index profiles, name-based layout detection, --layout override, and docs/tests so DualSense pads map to the same logical OSC/MIDI controls as Xbox. Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
Extract StickEngine for shared CLI/GUI use, add a tkinter control window (--gui), and Mac/Windows build scripts plus a PyInstaller spec. Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
Add a dedicated stickosc.macos.spec (onedir + BUNDLE) and rewrite tools/build_mac.sh to create a venv, build dist/StickOSC.app, and print clear open/install steps for Gatekeeper. Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
Provide tools/clone_and_build_mac.sh so a Mac can git clone the GUI branch into ~/stickosc and run the StickOSC.app build in one step. Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
Prefer Python 3.9–3.13 (especially 3.12), recreate incompatible venvs, and document brew install python@3.12 so pygame installs from wheels instead of compiling without SDL.h. Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
Provide build_win.bat with Python 3.9–3.13 detection/venv, plus clone_and_build_win.bat and a PowerShell one-shot helper mirroring the Mac flow. Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
Drive StickEngine from the tkinter main thread via begin/poll/end, force dummy SDL video/audio before pygame loads, and avoid background pygame threads that beachball StickOSC.app on Mac. Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
Avoid subclassing tk.Canvas and calling delete() during __init__, which raises TclError invalid command name \"180\" on Windows PyInstaller builds. Use a Frame+Canvas composition instead. Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
Renamed bar size attrs away from tkinter's reserved self._w path name, which caused TclError invalid command name \"180\" on Windows. Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
No conflicts: main already contains the squash of PR #3, which this branch supersets (MIDI, PS5, GUI, packaging, later Mac/Windows fixes). Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
Fan out controller OSC to an extra host:port via mapping.yaml osc.extra, GUI OSC extra fields, and --osc2/--osc2-host/--osc2-port. Co-authored-by: H.arimadion <harrrisbc@users.noreply.github.com>
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
Adds a second OSC destination that fans out the same controller mapping to another host:port.
osc.extra.enabled / host / port--osc2,--osc2-host,--osc2-port,--no-osc2Also includes post-merge fixes already on this branch (Mac freeze, Windows MeterBar
_wcrash, clone/build scripts).Usage
Test plan
python3 tools/test_osc_bridge.py