{"id":28117300,"url":"https://github.com/geigr/ipymidi","last_synced_at":"2025-10-24T20:05:14.733Z","repository":{"id":212675940,"uuid":"730602520","full_name":"geigr/ipymidi","owner":"geigr","description":"Interactive MIDI in Jupyter","archived":false,"fork":false,"pushed_at":"2025-10-06T18:29:30.000Z","size":84,"stargazers_count":15,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-06T20:37:20.722Z","etag":null,"topics":["jupyter","midi","widgets"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geigr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-12-12T09:31:43.000Z","updated_at":"2025-05-15T08:48:59.000Z","dependencies_parsed_at":"2025-10-06T20:21:50.951Z","dependency_job_id":"d3660b8c-125d-47ae-a185-727a31411411","html_url":"https://github.com/geigr/ipymidi","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":"0.040000000000000036","last_synced_commit":"cc586055f6f423305d03fafc19789b85e74fbf68"},"previous_names":["benbovy/ipymidi","geigr/ipymidi"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/geigr/ipymidi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geigr%2Fipymidi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geigr%2Fipymidi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geigr%2Fipymidi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geigr%2Fipymidi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geigr","download_url":"https://codeload.github.com/geigr/ipymidi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geigr%2Fipymidi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280857800,"owners_count":26403198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"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":["jupyter","midi","widgets"],"created_at":"2025-05-14T06:23:21.311Z","updated_at":"2025-10-24T20:05:14.703Z","avatar_url":"https://github.com/geigr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](https://user-images.githubusercontent.com/4160723/290532327-283f5234-2f8c-4b4e-9e59-79b9551f11d0.svg)\n\n# IpyMIDI\n\n_Interactive MIDI in Jupyter_\n\nIpyMIDI exposes the Web browsers' [MIDI](https://en.wikipedia.org/wiki/MIDI)\nsupport to Python as [Jupyter widgets](https://ipywidgets.readthedocs.io)\nvia the [WEBMIDI.js](https://webmidijs.org/) Javascript library. Connect your\nMIDI devices (e.g., keyboards, controllers, etc.) and start interacting with\nthem in Jupyter!\n\n**Note: this is very much work in progress (nothing much to see yet)!**\n\n## Usage Example\n\nCreate a Jupyter notebook and import the library.\n\n```python\nimport ipymidi\n```\n\nGet access to the Web MIDI interface.\n\n```python\nmidi = ipymidi.get_interface()\n```\n\nEnable the MIDI interface (your Web browser may ask you the permission to access it).\n\n```python\nmidi.enable()\n```\n\nGet the list of all connected MIDI input devices.\n\n```python\nmidi.inputs\n```\n\n```\nMIDI Inputs (2)\n0:\n    id: 92212230\n    name: Virtual MIDI\n    manufacturer: Apple Inc.\n    connection: open\n    state: connected\n1:\n    id: -1491552641\n    name: Arturia KeyStep 37\n    manufacturer: Arturia\n    connection: open\n    state: connected\n```\n\nTrack a specific MIDI event emitted from one input device (e.g., the \"noteon\"\nevent emitted from a MIDI keyboard).\n\n```python\nkeyboard = midi.inputs[\"Arturia KeyStep 37\"]\nnoteon_event = keyboard.add_listener(\"noteon\", [\"note_identifier\"])\n```\n\nUse the `noteon_event` object like any other Jupyter widget, e.g., to print in\nan output widget the MIDI note that has just been played by the input device.\n\n```python\nimport ipywidgets\n\noutput = ipywidgets.Output()\n\n@noteon_event.observe\ndef print_message(change):\n    output.clear_output()\n    with output:\n        print(f\"Note {change[\"owner\"].note_identifier} played!\")\n\noutput\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeigr%2Fipymidi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeigr%2Fipymidi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeigr%2Fipymidi/lists"}