{"id":19603031,"url":"https://github.com/jemtaly/projectmu","last_synced_at":"2026-03-04T10:31:14.694Z","repository":{"id":38785412,"uuid":"490639666","full_name":"Jemtaly/ProjectMu","owner":"Jemtaly","description":"一个通过简谱生成 .wav 格式音频文件的工具。A tool for generating audio files in .wav format from numbered musical notations.","archived":false,"fork":false,"pushed_at":"2026-02-11T05:08:15.000Z","size":231,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-11T11:17:07.354Z","etag":null,"topics":["audio","music-composition","numbered-musical-notation","numbered-notation","wav"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Jemtaly.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":"2022-05-10T10:00:51.000Z","updated_at":"2026-02-11T05:08:19.000Z","dependencies_parsed_at":"2025-04-27T17:33:10.841Z","dependency_job_id":"7c6cbee0-ac2b-44ed-bdf7-bd4ad001169e","html_url":"https://github.com/Jemtaly/ProjectMu","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Jemtaly/ProjectMu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jemtaly%2FProjectMu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jemtaly%2FProjectMu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jemtaly%2FProjectMu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jemtaly%2FProjectMu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jemtaly","download_url":"https://codeload.github.com/Jemtaly/ProjectMu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jemtaly%2FProjectMu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["audio","music-composition","numbered-musical-notation","numbered-notation","wav"],"created_at":"2024-11-11T09:27:39.024Z","updated_at":"2026-03-04T10:31:14.668Z","avatar_url":"https://github.com/Jemtaly.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ProjectMu\n\nProjectMu 是一个用于通过简谱生成 .wav 格式音频文件的工具。\n\nProjectMu is a tool for generating audio files in .wav format from numbered musical notations.\n\n## 使用方法\n\n```\nusage: mu.py [-h] [-o OUTPUT] [-t {sn,pl,sq,tr,st}]\n             [-r SAMPLE_RATE] [-w {1,2}] [-a ATTACK] [-d DECAY]\n             [-v VOLUME]\n             filename\n\nProjectMu - A Numbered Notation Score Compiler\n\npositional arguments:\n  filename              path to the input numbered notation score file\n\noptions:\n  -h, --help            show this help message and exit\n  -o OUTPUT, --output OUTPUT\n                        output wav file path\n  -t {sn,pl,sq,tr,st}, --timbre {sn,pl,sq,tr,st}\n                        timbre of the output sound\n  -r SAMPLE_RATE, --sample-rate SAMPLE_RATE\n                        sample rate of the output sound\n  -w {1,2}, --sample-width {1,2}\n                        sample width of the output sound\n  -a ATTACK, --attack ATTACK\n                        attack time of the output sound\n  -d DECAY, --decay DECAY\n                        decay time of the output sound\n  -v VOLUME, --volume VOLUME\n                        volume of the output sound\n```\n\n示例:\n\n```\nmu -o 'Bad Apple!!.wav' -t sine 'example/Bad Apple!!.nmn'\n```\n\n## 简谱格式说明\n\n### 示例\n\n+ Amazing Grace\n\n```\n1=G 3/4 88\n0 0 \u003c5,1\u003e |\n1 - [3]\u003c321\u003e | 3 - \u003c32\u003e | 1 - 6, |\n5, - \u003c5,1\u003e | 1 - [3]\u003c321\u003e | 3 - \u003c23\u003e | 5 - - |\n- - \u003c35\u003e | 5 - [3]\u003c321\u003e | 3 - \u003c32\u003e | 1 - 6, |\n5, - \u003c5,1\u003e | 1 - [3]\u003c321\u003e | 3 - 2 | 1 - - | - - ||\n```\n\n+ Bad Apple!! - nomico\n\n```\n1=F# 4/4 137\n6,, \u003c\u003c06,,5,,6,,\u003e\u003e 6,, \u003c\u003c06,,5,,6,,\u003e\u003e | 6,, \u003c\u003c06,,5,,6,,\u003e\u003e \u003c6,,\u003c6,,1,\u003e\u003e \u003c2,\u003c1,2,\u003e\u003e |\n6,, \u003c\u003c06,,5,,6,,\u003e\u003e 6,, \u003c\u003c06,,5,,6,,\u003e\u003e | 6,, \u003c\u003c06,,5,,6,,\u003e\u003e \u003c2,\u003c1,2,\u003e\u003e \u003c1,\u003c6,,1,\u003e\u003e |,\n\n\u003c6,7,\u003e \u003c12\u003e 3 \u003c65\u003e | 3 6, \u003c32\u003e \u003c17,\u003e | \u003c6,7,\u003e \u003c12\u003e 3 \u003c21\u003e | \u003c7,6,\u003e \u003c7,1\u003e \u003c7,6,\u003e \u003c#5,7,\u003e |\n\u003c6,7,\u003e \u003c12\u003e 3 \u003c65\u003e | 3 6, \u003c32\u003e \u003c17,\u003e | \u003c6,7,\u003e \u003c12\u003e 3 \u003c21\u003e | 7, 1 2 3 |,\n\n\u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c21\u003e \u003c7,5,\u003e 6, \u003c5,6,\u003e | \u003c7,1\u003e \u003c23\u003e 6, \u003c35\u003e |\n\u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c21\u003e \u003c7,5,\u003e 6, \u003c5,6,\u003e | \u003c7,1\u003e \u003c23\u003e 6, \u003c35\u003e |\n\u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c21\u003e \u003c7,5,\u003e 6, \u003c5,6,\u003e | \u003c7,1\u003e \u003c23\u003e 6, \u003c35\u003e |\n\u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c56\u003e \u003c32\u003e 3 \u003c67\u003e | \u003c1'7\u003e \u003c65\u003e 3 \u003c23\u003e | \u003c21\u003e \u003c7,5,\u003e 6, |,\n\n\u003c35\u003e |,\n\n0 |;\n\nG 4/4 137\n\u003c35\u003e |\n\u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c21\u003e \u003c7,5,\u003e 6, \u003c5,6,\u003e | \u003c7,1\u003e \u003c23\u003e 6, \u003c35\u003e |\n\u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c21\u003e \u003c7,5,\u003e 6, \u003c5,6,\u003e | \u003c7,1\u003e \u003c23\u003e 6, \u003c35\u003e |\n\u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c21\u003e \u003c7,5,\u003e 6, \u003c5,6,\u003e | \u003c7,1\u003e \u003c23\u003e 6, \u003c35\u003e |\n\u003c56\u003e \u003c32\u003e 3 \u003c23\u003e | \u003c56\u003e \u003c32\u003e 3 \u003c67\u003e | \u003c1'7\u003e \u003c65\u003e 3 \u003c23\u003e | \u003c21\u003e \u003c7,5,\u003e 6, 0 |\n\u003c6,.6,/\u003e \u003c-6,\u003e \u003c6,.6,/\u003e \u003c-6,\u003e | \u003c6,.6,/\u003e \u003c-6,\u003e \u003c6,.6,/\u003e \u003c-6,\u003e |\n\u003c6,.6,/\u003e \u003c-6,\u003e \u003c6,.6,/\u003e \u003c-6,\u003e | \u003c6,.6,/\u003e \u003c-6,\u003e \u003c6,.6,/\u003e \u003c-0\u003e |:\n\n1 1 2 2 3 4 3 5 1 1 2 2 3 6\n```\n\n### 段落格式\n\n| 符号 | 说明 |\n| --- | --- |\n| `1=F#` | 调式。`1=F#` 表示升 F 大调，又如，降 C 小调表示为 `6=Cb`。 |\n| `4/4` | 节奏型。如 `4/4`, `6/8`, `1/2` ... |\n| `174` | 每分钟节拍数（BPM） |\n| `\\|` | 小节线 |\n| `\\|,` | 用于表示该段乐谱结束，且下一段的调号、节奏型、速度和当前段相同。（通常用于当乐曲中存在反复记号时） |\n| `\\|;` | 用于表示该段乐谱结束，下一段需要重新设置调号、节奏型和速度。（用于当乐曲的调号、节奏型与速度中途改变时） |\n| `\\|\\|` | 用于表示乐谱结束。 |\n| `\\|:` | 当乐谱中存在反复记号（各段的演奏顺序需要手动排列）时，用此符号表示乐谱结束。并在后面输入乐谱各段在整首乐曲中的排列顺序。 |\n\n### 音符格式\n\n| 符号 | 说明 |\n| --- | --- |\n| `1` ~ `7` | 音符 |\n| `0` | 休止符 |\n| `#` | 升号（加在数字前） |\n| `b` | 降号（同上） |\n| `@` | 还原号（同上） |\n| `'` | 将当前音符升高八度 |\n| `,` | 将当前音符降低八度 |\n| `-` | 延长线，每加一条横线相当于延长一个四分音符的长度，也可用于替代延音线第一个以后的音符（表示延续前一个音符） |\n| `.` | 附点 |\n| `/` | 用于表示下加线 |\n| `\u003c...\u003e` | 表示为 `\u003c` 和 `\u003e` 之间的所有音符添加下加线。例如，`\u003c\u003c1/2/\u003e2/\u003e` 等同于 `1///2///2//`. |\n| `[3]{...}` | 三连音，同理， `[5]{...}` 表示五连音。由四拍分拆而来的七连音可写作 `[7]{...}` 或 `[7:4]{...}`，而由六拍分拆而来或由八拍结合合而来的七连音则分别需表示为 `[7:6]{...}` 和 `[7:8]{...}`，依此类推。此外，[x]{\u003c...\u003e} 可略写为 `[x]\u003c...\u003e`。 |\n\n更多乐谱示例见[此处](examples)。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjemtaly%2Fprojectmu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjemtaly%2Fprojectmu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjemtaly%2Fprojectmu/lists"}