{"id":50752701,"url":"https://github.com/peternicholls/midi","last_synced_at":"2026-06-11T02:30:26.854Z","repository":{"id":357273306,"uuid":"1236205398","full_name":"peternicholls/midi","owner":"peternicholls","description":"A simple MIDI message stream, record and playback CLI and TUI utility for MacOS","archived":false,"fork":false,"pushed_at":"2026-05-20T06:48:47.000Z","size":631,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-20T09:58:02.331Z","etag":null,"topics":["cli","macos","midi","midi-player","midi-recorder","tui"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peternicholls.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-12T03:27:06.000Z","updated_at":"2026-05-14T19:14:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/peternicholls/midi","commit_stats":null,"previous_names":["peternicholls/midi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peternicholls/midi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peternicholls%2Fmidi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peternicholls%2Fmidi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peternicholls%2Fmidi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peternicholls%2Fmidi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peternicholls","download_url":"https://codeload.github.com/peternicholls/midi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peternicholls%2Fmidi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34180147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","macos","midi","midi-player","midi-recorder","tui"],"created_at":"2026-06-11T02:30:25.771Z","updated_at":"2026-06-11T02:30:26.834Z","avatar_url":"https://github.com/peternicholls.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MIDI Capture\n\nSmall macOS command-line tool in C that:\n\n- lists available CoreMIDI sources and destinations\n- records MIDI from a class-compliant USB MIDI interface into a Standard MIDI File\n- plays that `.mid` file back to a chosen MIDI destination\n- provides a terminal TUI mode for browsing takes, recording timestamped files, and previewing live MIDI traffic\n\n## Build\n\n```sh\nmake\n```\n\n## Test\n\n```sh\nmake test\n```\n\n## Usage\n\nList MIDI ports:\n\n```sh\n./midi-capture list\n```\n\nRecord from source `0` for 10 seconds:\n\n```sh\n./midi-capture record take.mid 10 0\n```\n\nRecord until `Ctrl-C`:\n\n```sh\n./midi-capture record take.mid\n```\n\nPlay the file back to destination `0`:\n\n```sh\n./midi-capture play take.mid 0\n```\n\nLaunch the TUI with the current directory as the recordings destination:\n\n```sh\n./midi-capture tui\n```\n\nLaunch the TUI with a dedicated recordings directory:\n\n```sh\n./midi-capture tui recordings\n```\n\n## TUI Mode\n\nThe TUI presents three panes:\n\n- a recordings list sourced from the selected output directory\n- a MIDI event view for the currently selected file, with left and right stepping through the sequence\n- a live stream pane that shows incoming `RX` bytes whenever MIDI arrives on source `0`, plus outgoing `TX` bytes during playback\n\nDefault file naming uses `YYYYMMDDhhmmss.mid` in the selected recordings directory.\n\nKeys:\n\n- `r` starts recording to a new timestamped `.mid` file in the current recordings directory\n- `s` stops the active recording or playback transport\n- `space` pauses or resumes the active recording or playback transport\n- `p` plays the currently selected file from the currently selected MIDI event\n- `up` and `down` change the selected `.mid` file\n- `left` and `right` step through the selected file's MIDI event sequence\n- `o` changes the recordings directory from inside the TUI\n- `q` exits the TUI; an active recording is stopped and saved first\n\n## Notes\n\n- The tool is intentionally small and targets MIDI 1.0 byte-stream devices on macOS.\n- It records channel voice messages, MIDI running-status channel messages, and SysEx into the MIDI file.\n- It ignores MIDI clock, active sensing, and other unsupported or incomplete system messages.\n- During `record`, the terminal shows `REC`, elapsed time, and an `RX.` flash when MIDI arrives.\n- During `play`, the terminal shows `PLAY`, elapsed and total time, and a `TX.` flash when MIDI is sent.\n- In `tui` mode, source `0` is monitored continuously for live `RX` logging, recording also uses source `0`, and playback uses destination `0`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeternicholls%2Fmidi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeternicholls%2Fmidi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeternicholls%2Fmidi/lists"}