{"id":37022534,"url":"https://github.com/otsob/wmn4j","last_synced_at":"2026-01-14T02:41:38.172Z","repository":{"id":12001732,"uuid":"70943801","full_name":"otsob/wmn4j","owner":"otsob","description":"Java library for handling western music notation with a focus on computational music analysis.","archived":false,"fork":false,"pushed_at":"2025-10-22T16:01:14.000Z","size":7829,"stargazers_count":15,"open_issues_count":6,"forks_count":3,"subscribers_count":3,"default_branch":"development","last_synced_at":"2025-10-22T18:07:03.436Z","etag":null,"topics":["computational-musicology","music","music-notation","musicology"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/otsob.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-10-14T20:10:18.000Z","updated_at":"2025-10-22T15:59:42.000Z","dependencies_parsed_at":"2025-06-21T11:18:33.236Z","dependency_job_id":"3e2948a0-99c3-4009-89cc-d07f6d939743","html_url":"https://github.com/otsob/wmn4j","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/otsob/wmn4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsob%2Fwmn4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsob%2Fwmn4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsob%2Fwmn4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsob%2Fwmn4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otsob","download_url":"https://codeload.github.com/otsob/wmn4j/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsob%2Fwmn4j/sbom","scorecard":{"id":714464,"data":{"date":"2025-08-11","repo":{"name":"github.com/otsob/wmn4j","commit":"fa30a0c61c0f99203cd758f194da8ca45292e61f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.3,"checks":[{"name":"Maintained","score":10,"reason":"14 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/publish_javadoc.yaml:11","Warn: no topLevel permission defined: .github/workflows/publish_javadoc.yaml:1","Warn: no topLevel permission defined: .github/workflows/pull_request.yaml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish_javadoc.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/otsob/wmn4j/publish_javadoc.yaml/development?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish_javadoc.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/otsob/wmn4j/publish_javadoc.yaml/development?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish_javadoc.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/otsob/wmn4j/publish_javadoc.yaml/development?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull_request.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/otsob/wmn4j/pull_request.yaml/development?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pull_request.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/otsob/wmn4j/pull_request.yaml/development?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pull_request.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/otsob/wmn4j/pull_request.yaml/development?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'development'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T09:09:17.402Z","repository_id":12001732,"created_at":"2025-08-22T09:09:17.402Z","updated_at":"2025-08-22T09:09:17.402Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["computational-musicology","music","music-notation","musicology"],"created_at":"2026-01-14T02:41:37.576Z","updated_at":"2026-01-14T02:41:38.164Z","avatar_url":"https://github.com/otsob.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Western Music Notation for Java (wmn4j)\n\n![pull_request](https://github.com/otsob/wmn4j/actions/workflows/pull_request.yaml/badge.svg)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.wmn4j/wmn4j/badge.svg)](https://central.sonatype.com/artifact/org.wmn4j/wmn4j)\n\nwmn4j is a Java library for handling western music notation. The main purpose of wmn4j is to enable easy and efficient\nanalysis of scores and wmn4j is intended to also provide functionality for algorithmic composition by generating scores.\n\n## The structure of wmn4j\n\nThe structure of scores in wmn4j is described in a separate [document](./doc/structure.md).\nThe [API Documentation](https://otsob.github.io/wmn4j) provides the Javadoc for the latest release of wmn4j. There are a\nfew architectural design principles in wmn4j:\n\n* All notation classes are immutable\n* Builder classes are used for creating objects\n* Scores can be read using different types of iterators\n\nSee the [examples](./doc/examples) directory for simple examples of how to use wmn4j.\n\n### Building wmn4j\n\nwmn4j is developed and built with OpenJDK 17. wmn4j uses Gradle and can be built by running Gradle build. With the\ncurrent configuration the build consists of compilation, unit tests, and static analysis. It is recommended to delegate\nthe building of the project to Gradle using the provided Gradle wrapper in the IDE to ensure all dependencies etc. are\nhandled correctly. To build locally, run\n\n```\n./gradlew build\n```\n\n## Contributing\n\nContributions to wmn4j are very welcome. If you are interested, feel free to message me (otsob) through Github.\nContributing to wmn4j happens throught pull requests. For commits we try to follow basic practices (for example, see the\nones by [Painsi](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53)\nor [Beams](https://chris.beams.io/posts/git-commit/)).\n\nAs wmn4j is a library, the testing happens through unit tests and it is preferred that changes come accompanied by\ncorresponding unit tests.\n\nThe coding style of wmn4j is not very strict, but there are some [basic guidelines](CODING_CONVENTIONS.md).\n\nContributing to this project is supposed to be enjoyable, so behaving nicely and respectfully is appreciated. For a\ngeneral guideline on code-of-conduct we follow the one outlined\nby [Contributor Covenant](https://www.contributor-covenant.org/version/1/4/code-of-conduct).\n\nFor pull requests target the `development` branch. The `main` branch is reserved for releases.\n\nIf you find a bug in wmn4j or want to propose a feature,\nplease [open an issue](https://github.com/otsob/wmn4j/issues/new/choose)\nwith the corresponding template.\n\n## Built With\n\n* [Gradle](https://gradle.org)\n* [Apache Commons Math](https://commons.apache.org/proper/commons-math/)\n* [SLF4J](http://www.slf4j.org). When using wmn4j, you\n  need [to bind to a compatible logger](https://www.slf4j.org/manual.html#swapping) implementation.\n\n## Versioning\n\nWmn4j is still in the alpha phase. The released versions of wmn4j are available\non [Maven central](https://central.sonatype.com/artifact/org.wmn4j/wmn4j).\n\n## Authors\n\n* **Otso Björklund** - [otsob](https://github.com/otsob)\n* **Matias Wargelin**\n\nSee also the list of [contributors](https://github.com/otsob/wmn4j/graphs/contributors) who participated in this\nproject.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details\n\n## Citation\n\nIf you use wmn4j for research, or need a reference to cite for other reasons, please use:\n\n```\n@inproceedings{wmn4j2022,\n   author = {Björklund, Otso},\n   title = {{Western Music Notation for Java: A library for music notation on the JVM}},\n   booktitle={Extended Abstracts for the Late-Breaking Demo Session of the 23rd International Society for Music Information Retrieval Conference},\n   year = {2022},\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotsob%2Fwmn4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotsob%2Fwmn4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotsob%2Fwmn4j/lists"}