Skip to content

About

Native macOS hardware MIDI reverse-engineering, LED feedback lab, auto-mapper, and virtual MIDI translator

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

MIDI Auditor

Platform Swift 6 CI License: MIT

MIDI Auditor is a native macOS hardware MIDI reverse-engineering, LED feedback lab, auto-mapper, and virtual MIDI translator built with Swift 6, CoreMIDI, IOKit, and SwiftUI.

It lets you see raw input from any MIDI controller down to the bit and USB hardware level, uncover hidden functions that standard DAWs ignore (proprietary SysEx buttons, Program Selector wheels, secondary DAW ports, 14-bit NRPNs, relative encoders), probe pad/ring LEDs with return signals, generate full controller maps, and remap uncommon hardware functions into clean standard MIDI over a real system-wide virtual MIDI port.

flowchart LR
    HW["Physical MIDI Controller\n(USB-MIDI / SysEx / Secondary Ports)"] --> DEC["MIDI Auditor Engine\n(UMP + Bit X-Ray + SysEx Diff)"]
    DEC --> SCOPE["Raw Wire Monitor\n& Signal Scope"]
    DEC --> MAP["Auto-Discovery Blueprint\n& Health Doctor"]
    DEC --> XLATE["Smart Learn & Virtual Translator\n(< 0.1 ms Real-Time Thread)"]
    LED["LED & Velocity Color Probe\n(128-Grid + Auto-Sweeper)"] --> HW
    XLATE --> VOUT["MIDI Auditor Virtual Out\n(Ableton / Logic / Rekordbox / Any DAW)"]
    VOUT -. "MIDI Auditor Virtual In\n(DAW LED Feedback)" .-> HW
Loading

Download & Installation

Option 1: Install via Homebrew

brew install --cask appsscriptdev/tap/midi-auditor

Option 2: Download Pre-Built macOS App

  1. Download Midi-Auditor-macOS-v1.0.0.zip from the Latest Release.
  2. Unzip and drag Midi Auditor.app to /Applications.
  3. First Launch Note: Because MIDI Auditor is open-source and ad-hoc signed rather than notarized with a paid Apple Developer ID, right-click Midi Auditor.app → Open on first launch (or clear the download quarantine flag in Terminal):
    xattr -cr "/Applications/Midi Auditor.app"

Option 3: Build from Source

Requires macOS 14.0+ and Xcode 16+ / Swift 6.0+:

git clone https://github.com/appsscriptdev/midi-auditor.git
cd midi-auditor
./Scripts/bundle_app.sh
open "Midi Auditor.app"

Run the Core Engine unit test suite:

swift test

Core Toolkit Modules

1. Raw Wire Monitor (⌘1)

  • Down-to-the-Bit Hardware X-Ray: Inspects every incoming/outgoing packet down to raw hex bytes, 8-bit binary nibbles (Status, Type, Channel, 7-bit Payload), ASCII, underlying 32/64-bit CoreMIDI UMP words, and microsecond inter-packet Δt timing.
  • Automatic SysEx Dynamic Byte Differ: Compares consecutive proprietary SysEx (F0 … F7) frames and highlights exact dynamic payload bytes that change when pressing hidden Shift, Mode, DAW, or capacitive knob-touch sensors.
  • Composite Protocol Decoder: Automatically pairs 14-bit High-Resolution CCs (MSB 0–31 + LSB 32–63), 14-bit NRPN / RPN parameter streams, Running Status Note On Vel=0, and live 24-PPQN MIDI Clock BPM.
  • Live Signal Oscilloscope & Right-Click Echo: Real-time waveform trace for spotting potentiometer noise or stepping, plus right-click Echo Bytes Back to Hardware on any packet to immediately test LED response.

2. Control Map & Hardware Audit (⌘2)

  • Touch-to-Discover Blueprint: Move every knob, fader, pad, encoder, program wheel, and hidden shift button on your controller to automatically populate a visual hardware blueprint and audit table.
  • Automatic Behavioral Classification: Infers whether a control is a Momentary Button, Latching Toggle, Velocity Pad, 7-bit Pot/Fader, 14-bit High-Res Fader, Endless Relative Encoder (2's Complement, Binary Offset 64, Sign-Magnitude), Program Selector Wheel, NRPN, Pitch/Jog Wheel, or Hidden SysEx Control.
  • Hardware Health Doctor: Detects switch contact bounce (< 8 ms), oxidized potentiometer ±1 wiper jitter, and worn faders with incomplete travel (e.g., stalling at 4…121 instead of 0…127 with 1-click Virtual Calibration).
  • Export & Profiles: Export clean Markdown Audit Reports (.md), CSV Spreadsheets (.csv), or save/load full JSON Controller Profiles (.json).

3. LED & Output Feedback Probe (⌘3)

  • 128-Cell Velocity Color Palette & Pad Finder: Click any velocity 0–127 to uncover hidden RGB pad color tables, or switch to Note/CC 0–127 matrix mode to locate every LED address on a controller.
  • Channel Mode Bar (Ch 1–16): Instantly test hardware blink/pulse/brightness channels (e.g., Ch 1 = Solid, Ch 2 = Pulse, Ch 3 = Blink on Novation/Akai surfaces).
  • Automated Hardware Sweeper: Step automatically or frame-by-frame (-1 / +1) across Velocities, Notes, Channels, or Encoder LED Ring CCs, and bookmark discovered LED states directly onto your Control Map.
  • Raw Hex / SysEx Console: Transmit custom SysEx lighting frames with optional 7-bit Roland checksum calculation and an All LEDs Off (⌘.) panic reset.

4. Virtual MIDI Interface & Smart Translator (⌘4 / Learn ⌘L)

  • Publishes native system-wide CoreMIDI virtual ports visible to Ableton Live, Logic Pro, MainStage, Bitwig, Rekordbox, Traktor, TouchDesigner, QLab, and more:
    • MIDI Auditor Virtual Out (select as MIDI Input in your DAW)
    • MIDI Auditor Virtual In (optional bidirectional bridge for DAW LED feedback)
  • Smart MIDI Learn & Capability Realizer (⌘L):
    • Click MIDI Learn + Smart Map and activate any hardware control — including 2-state or stateless 1-shot SysEx buttons, continuous SysEx touch strips, Program Selector wheels (1–127 stream + wrap-around endless jog), multi-packet NRPNs, 14-bit CCs, relative encoders, or Poly Aftertouch pads.
    • Realizes what the hardware function is capable of and presents ranked 1-click mapping suggestions (plus a Rapid Hands-Free Auto-Map toggle to map an entire surface without touching the mouse).

5. Hardware & USB Bus X-Ray (⌘5) + Simulated Lab Deck (⇧⌘L)

  • Multi-Port CoreMIDI Listener: Listens to all CoreMIDI endpoints simultaneously so secondary DAW, InControl, and Mackie/HUI ports are never missed.
  • IOKit USB Registry Scanner: Reads physical USB Vendor ID : Product ID, bus speed, power draw (mA), and identifies composite USB Audio/MIDI + HID interfaces.
  • Handshake & Mode Unlock Probes: One-click Universal Device Identity Inquiry (F0 7E 7F 06 01 F7) (decoding Manufacturer, Family, Model & Firmware across 40+ brands) plus MCU/HUI/DAW wake-up pings.
  • Built-In Simulated Quirky Hardware Deck (⇧⌘L): Test RGB pad velocity LED return, 2-state & 1-shot SysEx buttons, relative encoders, 14-bit faders, NRPNs, and dirty-potentiometer diagnostics even without hardware attached.

Keyboard Shortcuts

Shortcut Action
⌘1 – ⌘5 Switch between the 5 Studio Modules
⌘L Toggle Smart MIDI Learn + Capability Realizer
⇧⌘L Show / Hide Simulated Quirky Hardware Deck
⇧⌘I Send Universal SysEx Device Identity Ping
⌘. All LEDs Off / Panic reset (0–127)
⌘K Clear live packet stream
⌘S / ⌘O Save / Load JSON Controller Profile & Rules
⌘E / ⇧⌘E Export Markdown Hardware Audit (.md) / CSV (.csv)

Related Project

For a dedicated native Apple Silicon (arm64) EEPROM configuration studio for the WORLDE EasyControl.9 controller, see Easy Control Edit.


License

Released under the MIT License.

About

Native macOS hardware MIDI reverse-engineering, LED feedback lab, auto-mapper, and virtual MIDI translator

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages