{"id":44975943,"url":"https://github.com/k-l-lambda/lilylet","last_synced_at":"2026-02-18T17:04:44.840Z","repository":{"id":334038075,"uuid":"1139755146","full_name":"k-l-lambda/lilylet","owner":"k-l-lambda","description":"A lilyopnd like sheet music language designed for Markdown rendering and symbolic music representation in AIGC applications","archived":false,"fork":false,"pushed_at":"2026-02-06T13:20:02.000Z","size":1127,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-06T21:20:12.991Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k-l-lambda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2026-01-22T11:22:30.000Z","updated_at":"2026-02-06T13:20:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/k-l-lambda/lilylet","commit_stats":null,"previous_names":["k-l-lambda/lilylet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/k-l-lambda/lilylet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-l-lambda%2Flilylet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-l-lambda%2Flilylet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-l-lambda%2Flilylet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-l-lambda%2Flilylet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k-l-lambda","download_url":"https://codeload.github.com/k-l-lambda/lilylet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-l-lambda%2Flilylet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29587066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T16:55:40.614Z","status":"ssl_error","status_checked_at":"2026-02-18T16:55:37.558Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-02-18T17:04:38.537Z","updated_at":"2026-02-18T17:04:44.833Z","avatar_url":"https://github.com/k-l-lambda.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lilylet\n\n![](./docs/live-demo.gif)\n\nLilylet is a LilyPond-like music notation language designed for Markdown rendering and symbolic music representation in AIGC applications.\n\n## Hello World\n\n```lyl\n\\key c \\major \\time 4/4 \\clef \"treble\" c1 \\bar \"|.\"\n```\n![](./docs/hello-world.svg)\n\n\n## A Comprehensive Example\n\n```lyl\n[title \"Jesu, meine Freude\"]\n[subtitle \"BWV 610\"]\n[composer \"J.S. Bach\"]\n\n\\staff \"1\" \\key c \\minor \\time 4/4 \\clef \"treble\" \\stemUp g'4 g f ef \\\\\n\\staff \"1\" \\stemDown ef16[ d ef8]~ ef16[ f ef d] c8[ d]~ d[ c] \\\\\n\\staff \"2\" \\clef \"bass\" c16[ b c8]~ c16[ b c g] a8[ g]~ g16[ g af ef] \\\\\n\\staff \"3\" \\clef \"bass\" r8 c,16[ d] ef[ d ef8]~ ef16[ a, b g] c[ b c8] | % 1\n\n\\staff \"1\" \\stemUp d2 c\\fermata \\\\\n\\staff \"1\" \\stemDown c8[ c4 b8] c8.[ \\staff \"2\" \\stemUp g16] \\staff \"1\" c[ b c d] \\\\\n\\staff \"2\" f,16[ ef f d] g[ af g f] ef[ d ef8]~ ef16[ f ef d] \\\\\n\\staff \"3\" r16 g,[ af f] g[ f g8] c,2 | % 2\n```\n![](./docs/BWV610.svg)\n\n\n## Try It Online\n\n- [Live Editor](https://k-l-lambda.github.io/lilylet-live-editor/) - Interactive editor with real-time music notation rendering\n- [Markdown Editor](https://k-l-lambda.github.io/lilylet-live-editor/markdown) - Write documents with embedded Lilylet music snippets\n- [Tutorial](https://k-l-lambda.github.io/lilylet-live-editor/docs/lilylet-tutorial.html) - Comprehensive guide to Lilylet syntax\n\n## Why a New Language?\n\n### 1. Leveraging LilyPond's Excellent Syntax\n\nLilyPond uses a LaTeX-like text markup syntax with significant advantages:\n\n- **Beginner-friendly**: Intuitive commands like `\\clef`, `\\key`, `\\time` require no knowledge of complex binary formats\n- **Human-readable**: Notes are represented directly as letters (c d e f g a b), durations as numbers (4 = quarter note)\n- **Relative pitch mode**: Each note is calculated relative to the previous one—only octave shifts (`'` or `,`) are needed when the interval exceeds a fourth, dramatically reducing octave markers. See [LilyPond Relative Octave Entry](https://lilypond.org/doc/v2.23/Documentation/notation/writing-pitches#relative-octave-entry)\n\n### 2. Reducing LilyPond's Excessive Flexibility\n\nLilyPond is powerful but overly flexible—the same music can be written in multiple ways, which creates problems for AIGC scenarios:\n\n| Issue | LilyPond | Lilylet |\n|-------|----------|---------|\n| Verbose context | Requires `\\version`, `\\header`, `\\paper`, `\\layout` boilerplate | Only core music content |\n| Inconsistent formats | Relative pitch, absolute pitch, multiple chord notations | Unified format, reduced ambiguity |\n| Complex nesting | `\\new Staff \u003c\u003c \\new Voice \\relative c' { ... } \u003e\u003e` | `\\staff \"1\" ...` |\n\n### 3. Optimized for AIGC\n\n- **Shorter context description**: Removes redundant information, allowing LLMs to process more music content within limited context windows\n- **Formatted layout**: Fixed syntax structure facilitates model learning and generation\n- **Markdown-embeddable**: Music snippets can be directly embedded in documents\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-l-lambda%2Flilylet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-l-lambda%2Flilylet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-l-lambda%2Flilylet/lists"}