{"id":17011664,"url":"https://github.com/ruin0x11/midplay","last_synced_at":"2025-07-17T00:06:13.506Z","repository":{"id":77938907,"uuid":"90923618","full_name":"Ruin0x11/midplay","owner":"Ruin0x11","description":"Play MIDI files from Rust","archived":false,"fork":false,"pushed_at":"2021-03-29T07:58:20.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T13:25:22.797Z","etag":null,"topics":["audio","cross-platform","midi","rust-bindings","rust-library"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ruin0x11.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}},"created_at":"2017-05-11T01:26:27.000Z","updated_at":"2023-07-25T14:09:01.000Z","dependencies_parsed_at":"2023-04-08T04:01:37.292Z","dependency_job_id":null,"html_url":"https://github.com/Ruin0x11/midplay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ruin0x11/midplay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruin0x11%2Fmidplay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruin0x11%2Fmidplay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruin0x11%2Fmidplay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruin0x11%2Fmidplay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ruin0x11","download_url":"https://codeload.github.com/Ruin0x11/midplay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ruin0x11%2Fmidplay/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265553235,"owners_count":23787037,"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":["audio","cross-platform","midi","rust-bindings","rust-library"],"created_at":"2024-10-14T06:07:40.985Z","updated_at":"2025-07-17T00:06:13.487Z","avatar_url":"https://github.com/Ruin0x11.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# midplay\n\n`midplay` is a library for playing MIDI files from Rust. It can use MCI on Windows or a generic driver ([midir](https://github.com/Boddlnagg/midir)) on Windows, macOS and Linux.\n\n## Usage\n\n```rust\n// MCI driver. (Windows only)\nuse midplay::native;\n\nnative::play_midi(\"data/CANYON.MID\")?;\nassert_eq!(true, native::is_midi_playing());\n\nnative::stop_midi()?;\nassert_eq!(false, native::is_midi_playing());\n```\n\n``` rust\n// Cross-platform driver.\nuse midplay::generic;\n\nlet mut out_ports = generic::get_ports()?;\nfor port in out_ports.iter() {\n    println!(\"Index: {}  Name: {}\", port.index, port.name);\n}\n\nlet port = out_ports[0];\ngeneric::play_midi(\"data/CANYON.MID\", \u0026port)?;\nassert_eq!(true, generic::is_midi_playing());\n\ngeneric::stop_midi()?;\nassert_eq!(false, generic::is_midi_playing());\n```\n\nRun the example for each driver:\n\n```sh\ncargo run --example test_native\ncargo run --example test_generic\n```\n\n## Credits\n\nMost of the code for the generic driver was taken from [rusthesia](https://github.com/gin66/rusthesia).\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruin0x11%2Fmidplay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruin0x11%2Fmidplay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruin0x11%2Fmidplay/lists"}