{"id":50463843,"url":"https://github.com/ubugeeei-prod/relanote","last_synced_at":"2026-06-01T06:03:46.875Z","repository":{"id":331007697,"uuid":"1124803390","full_name":"ubugeeei-prod/relanote","owner":"ubugeeei-prod","description":"formal music language. everything are relative.","archived":false,"fork":false,"pushed_at":"2026-05-21T17:03:01.000Z","size":2757,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T05:24:12.965Z","etag":null,"topics":["functional","moonbit","music","programming-languages"],"latest_commit_sha":null,"homepage":"https://relanote.void.app/","language":"MoonBit","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/ubugeeei-prod.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":"2025-12-29T16:35:29.000Z","updated_at":"2026-05-29T03:11:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ubugeeei-prod/relanote","commit_stats":null,"previous_names":["ubugeeei/relanote","ubugeeei-prod/relanote"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ubugeeei-prod/relanote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubugeeei-prod%2Frelanote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubugeeei-prod%2Frelanote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubugeeei-prod%2Frelanote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubugeeei-prod%2Frelanote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubugeeei-prod","download_url":"https://codeload.github.com/ubugeeei-prod/relanote/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubugeeei-prod%2Frelanote/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33762215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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":["functional","moonbit","music","programming-languages"],"created_at":"2026-06-01T06:03:45.343Z","updated_at":"2026-06-01T06:03:46.867Z","avatar_url":"https://github.com/ubugeeei-prod.png","language":"MoonBit","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/og-image.svg\" alt=\"relanote — music as a function\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/ubugeeei/relanote/actions\"\u003e\u003cimg src=\"https://github.com/ubugeeei/relanote/workflows/CI/badge.svg\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/ubugeeei/relanote/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#what-is-relanote\"\u003eWhat\u003c/a\u003e •\n  \u003ca href=\"#example\"\u003eExample\u003c/a\u003e •\n  \u003ca href=\"#quick-start\"\u003eQuick start\u003c/a\u003e •\n  \u003ca href=\"#showcase\"\u003eShowcase\u003c/a\u003e •\n  \u003ca href=\"#documentation\"\u003eDocs\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## What is relanote?\n\n**relanote** is a pure functional, statically-typed language for music\nwhere **everything is relative**. Pitch is relative: a melody is made\nfrom scale-degree references, not absolute note names. Rhythm is\nrelative: a block divides its slot among the notes inside it. Chords are\nintervals over a root, sections are blocks over a beat-grid, and parts\nare sections over instruments. Change the key, scale, or tempo, and the\nshape stays intact.\n\n```rela\nscale Major = { R, M2, M3, P4, P5, M6, M7 }\n\nlet theme = | \u003c1\u003e \u003c3\u003e \u003c5\u003e \u003c3\u003e \u003c1\u003e |\n\ntheme |\u003e transpose P5 |\u003e repeat 2\n```\n\n## Features\n\n- **Pitch is relative.** `\u003c1\u003e \u003c3\u003e \u003c5\u003e` works in every key, every mode,\n  and every scale.\n- **Rhythm is relative.** `| a b c d |` shares its slot equally among\n  four notes; `| a b |` gives two notes the same slot at half the\n  density.\n- **Pure and typed.** Immutable values, first-class functions, and\n  Hindley-Milner inference keep musical transformations predictable.\n- **Pipes for composition.** `theme |\u003e transpose P5 |\u003e repeat 2 |\u003e reverb 0.3`\n  builds pieces by composing small functions.\n- **MoonBit end to end.** The compiler pipeline, CLI, MIDI renderer, LSP\n  entry point, preview bridge, and Studio source live at the repository root.\n\n## Quick Start\n\nInstall MoonBit once:\n\n```bash\ncurl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash\nexport PATH=\"$HOME/.moon/bin:$PATH\"\n```\n\nInstall Vite+ once for workspace tasks:\n\n```bash\ncurl -fsSL https://vite.plus | bash\nvp install\n```\n\nThen build and test the workspace:\n\n```bash\ngit clone https://github.com/ubugeeei/relanote.git\ncd relanote\nvp run check\nvp run test\nvp run cli help\n```\n\nRoot tasks live in `vite.config.mjs` and run through Vite Task:\n\n```bash\nvp run ci\nvp run cli run examples/tutorials/01_hello.rela\nvp run studio:build\n```\n\nIf you use Nix, `nix develop` provides Node 24, pnpm, and helper tools.\nThe MoonBit and Vite+ installers above remain the sources for those\ntoolchains.\n\n## Example\n\n### Simple Melody\n\n```rela\nscale Major = { R, M2, M3, P4, P5, M6, M7 }\n\nlet twinkle = | \u003c1\u003e \u003c1\u003e \u003c5\u003e \u003c5\u003e \u003c6\u003e \u003c6\u003e \u003c5\u003e - \u003c4\u003e \u003c4\u003e \u003c3\u003e \u003c3\u003e \u003c2\u003e \u003c2\u003e \u003c1\u003e - |\n\ntwinkle\n```\n\n### Chord Progression\n\n```rela\nscale Major = { R, M2, M3, P4, P5, M6, M7 }\n\nchord Tonic = [ R, M3, P5 ]\n\nlet progression = | \u003c1\u003e \u003c4\u003e \u003c5\u003e \u003c1\u003e |\n\nprogression\n```\n\n### Transformations\n\n```rela\nscale Major = { R, M2, M3, P4, P5, M6, M7 }\n\nlet melody = | \u003c1\u003e \u003c2\u003e \u003c3\u003e \u003c4\u003e |\n\nlet repeated = melody |\u003e repeat 2\nlet reversed = melody |\u003e reverse\nlet higher = melody |\u003e transpose P5\n\nrepeated\n```\n\n## Documentation\n\n- [Introduction](docs/guide/introduction.md)\n- [Installation](docs/guide/installation.md)\n- [Quick Start](docs/guide/quick-start.md)\n- [Tutorial](docs/tutorial/getting-started.md)\n- [Showcase](docs/showcase.md)\n- [CLI Reference](docs/reference/cli.md)\n\n## Showcase\n\nThe docs showcase is the public listening surface while Studio is being\nrebuilt: polished `.rela` sketches, browser playback, and code you can\ninspect.\n\n## Studio Source\n\nThe hidden Studio view is authored with\n[Vapor Moon](https://github.com/ubugeeei/vapor-moon) as\n`src/studio/App.mbtv`. The callable bridge functions for diagnostics,\nformatting, evaluation, and MIDI rendering live in `src/studio/playground.mbt`.\n\nBuild the component snapshot with:\n\n```bash\nvp run studio:build\n```\n\n## Project Structure\n\n```text\nrelanote/\n├── src/\n│   ├── cmd/         # CLI entry point\n│   ├── core/        # source, spans, diagnostics\n│   ├── lexer/       # tokenizer\n│   ├── ast/         # AST data types\n│   ├── parser/      # parser\n│   ├── hir/         # high-level IR\n│   ├── resolver/    # module resolution\n│   ├── types/       # type system\n│   ├── eval/        # evaluator\n│   ├── stdlib/      # embedded prelude\n│   ├── format/      # formatter\n│   ├── lsp/         # LSP entry point\n│   ├── render/      # MIDI rendering\n│   ├── studio/      # Vapor Moon view + playground bridge\n│   └── site/        # docs/static-site build assets\n├── docs/                    # Markdown documentation\n├── editors/vscode/          # VS Code extension package\n└── examples/                # Example programs\n```\n\n## Development\n\n```bash\nvp run check\nvp run test\nvp run fmt\nvp run studio:build\n```\n\n`vp run` opens the interactive Vite Task picker.\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n\n---\n\n\u003cp align=\"center\"\u003e\n  Made with ♪ by \u003ca href=\"https://github.com/ubugeeei\"\u003eubugeeei\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubugeeei-prod%2Frelanote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubugeeei-prod%2Frelanote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubugeeei-prod%2Frelanote/lists"}