{"id":13438414,"url":"https://github.com/musitdev/portmidi-rs","last_synced_at":"2026-04-02T02:18:05.079Z","repository":{"id":13145823,"uuid":"15828255","full_name":"musitdev/portmidi-rs","owner":"musitdev","description":"High-level PortMidi bindings and wrappers for Rust","archived":false,"fork":false,"pushed_at":"2023-07-13T09:54:24.000Z","size":1033,"stargazers_count":75,"open_issues_count":3,"forks_count":22,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-11T17:08:14.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/musitdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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}},"created_at":"2014-01-11T18:39:13.000Z","updated_at":"2024-01-07T11:53:56.000Z","dependencies_parsed_at":"2024-06-19T02:55:38.092Z","dependency_job_id":"8dd9f7c0-bb32-4d59-bdf7-f5b006fe2612","html_url":"https://github.com/musitdev/portmidi-rs","commit_stats":{"total_commits":248,"total_committers":15,"mean_commits":"16.533333333333335","dds":0.5201612903225806,"last_synced_commit":"16821e595fe2941ba25a2b9dd5e305e2c3b46af3"},"previous_names":["musitdev/rust-portmidi"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musitdev%2Fportmidi-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musitdev%2Fportmidi-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musitdev%2Fportmidi-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musitdev%2Fportmidi-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/musitdev","download_url":"https://codeload.github.com/musitdev/portmidi-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221735087,"owners_count":16872224,"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","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":[],"created_at":"2024-07-31T03:01:05.340Z","updated_at":"2025-12-12T14:03:19.643Z","avatar_url":"https://github.com/musitdev.png","language":"Rust","funding_links":[],"categories":["Libraries","库 Libraries","库","音频（Audio）"],"sub_categories":["Audio","Audio and Music","音频和音乐 Audio and Music","音频","音频 Audio","天文（Astronomy）"],"readme":"portmidi-rs\n===========\n\n[![Build Status](https://travis-ci.org/musitdev/portmidi-rs.svg?branch=master)](https://travis-ci.org/musitdev/portmidi-rs)\n[![Documentation](https://img.shields.io/badge/rustdoc-hosted-blue.svg)](http://musitdev.github.io/portmidi-rs/portmidi/index.html)\n\nHigh-level PortMidi bindings for Rust.\n\nPortMidi website: http://portmedia.sourceforge.net/portmidi/\n\nInstallation\n============\n\nAdd this to your `Cargo.toml`.\n```toml\n[dependencies]\nportmidi = \"^0.2\"\n```\n\nPrerequisites\n-------------\n\nYou need to make sure you have the PortMidi library installed.\n\nOn Ubuntu / Debian:\n```sh\napt-get install libportmidi-dev\n```\n\nArch Linux:\n```sh\npacman -S portmidi\n```\n\nOn OSX (Homebrew):\n```sh\nbrew install portmidi\n```\nOn OSX, if you get a linker error `ld: library not found for -lportmidi`, either,\n - make sure you have the Xcode Command Line Tools installed, not just Xcode, or\n - make sure you have the PortMidi library in your `$LIBRARY_PATH`, e.g. for Homebrew:\n\n   ```sh\n   export LIBRARY_PATH=\"$LIBRARY_PATH:/usr/local/lib\"\n   ```\n\nExamples\n========\nExamples can be run by cloning the repository and running `cargo run --example \u003cexample name\u003e`.\n * **`play`**: demonstrates midi output by playing Twinkle Twinkle Little Star (forever...)\n * **`monitor`**: demonstrate midi input\n * **`monitor-all`**: listens on all-input devices and uses threads and channels\n\nExample: `cargo run --example play -- 1 --verbose`\n\nBoth `play` and `monitor` need a device number supplied, run them without an argument to get a list of the connected devices, e.g.\n\nLicense\n=======\nLicensed under either of\n\n    Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)\n    MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)\n\nat your option.\n\nContribution\n============\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusitdev%2Fportmidi-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmusitdev%2Fportmidi-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusitdev%2Fportmidi-rs/lists"}