{"id":13822299,"url":"https://github.com/staff-rs/staff","last_synced_at":"2025-12-12T14:42:49.618Z","repository":{"id":40432869,"uuid":"472484320","full_name":"staff-rs/staff","owner":"staff-rs","description":"Music theory and score rendering library with midi, notes, chords, scales, and more.","archived":false,"fork":false,"pushed_at":"2024-05-11T01:28:27.000Z","size":566,"stargazers_count":247,"open_issues_count":11,"forks_count":9,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-05-19T11:10:53.766Z","etag":null,"topics":["midi","music","rust"],"latest_commit_sha":null,"homepage":"https://staff-rs.github.io","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/staff-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"matthunz"}},"created_at":"2022-03-21T19:32:57.000Z","updated_at":"2024-07-17T06:30:03.010Z","dependencies_parsed_at":"2023-09-18T06:27:23.330Z","dependency_job_id":"c5270141-9042-4df8-82e8-ce254cc4320a","html_url":"https://github.com/staff-rs/staff","commit_stats":null,"previous_names":["matthunz/music-theory","notecompose/staff","staff-rs/staff"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staff-rs%2Fstaff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staff-rs%2Fstaff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staff-rs%2Fstaff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staff-rs%2Fstaff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/staff-rs","download_url":"https://codeload.github.com/staff-rs/staff/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225436647,"owners_count":17474186,"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":["midi","music","rust"],"created_at":"2024-08-04T08:01:53.292Z","updated_at":"2025-12-12T14:42:44.564Z","avatar_url":"https://github.com/staff-rs.png","language":"Rust","funding_links":["https://github.com/sponsors/matthunz"],"categories":["Rust"],"sub_categories":[],"readme":"# Staff\n[![crate](https://img.shields.io/crates/v/staff.svg)](https://crates.io/crates/staff)\n[![documentation](https://docs.rs/staff/badge.svg)](https://docs.rs/staff)\n\n[Website](https://staff-rs.github.io)\n\nMusic theory and score rendering library with midi, notes, chords, scales, and more.\n\n## Usage\n```rust\nuse staff::{midi, Chord, Pitch};\n\nlet chord = Chord::from_midi(\n    midi!(C, 4),\n    [midi!(E, 3), midi!(G, 3), midi!(C, 4)]\n);\n\nassert_eq!(chord.to_string(), \"C/E\");\n\nlet pitches = [Pitch::E, Pitch::G, Pitch::C];\nassert!(chord.into_iter().eq(pitches));\n```\n\n## Dioxus\n```rust\nStaff { \n    note {\n        natural: Natural::F,\n        accidental: Accidental::Sharp\n    }\n    note {\n        natural: Natural::G,\n        accidental: Accidental::Flat,\n        duration: Duration::from(DurationKind::Half)\n    }\n    note { natural: Natural::A }\n    \n    hr {}\n    \n    note {\n        natural: Natural::C,\n        octave: Octave::FIVE,\n        duration: Duration::from(DurationKind::Whole)\n    }\n}\n```\n\n```rust\nsvg { width: \"500px\", height: \"500px\", xmlns: \"http://www.w3.org/2000/svg\",\n    FretDiagram { \n        fret { index: 1, string: 0 }\n        frets { from: 2, to: 4, string: 0 }\n        fret { index: 5, string: 0, is_muted: true }\n    }\n}\n```\n\n## Features\n* `render`: Enable `render` module\n    * `svg`: Enable rendering to SVG\n* `synth`: Enable `synth` module for \n* `serde`: Impl Deserialize and Serialize for many crate types\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaff-rs%2Fstaff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstaff-rs%2Fstaff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaff-rs%2Fstaff/lists"}