HMSL
1 program
Added 2026-03-12T04:48:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Hierarchical Music Specification Language
Provenance: commit 5e05166c9f · authored 2026-03-12T05:48:35+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
2 sources · pl_id:
pl/hmslRelated languages
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
C Major Scale
Provenance: commit 5e05166c9f · authored 2026-03-12T05:48:35+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
\ HMSL Demo - Play a C Major Scale
\ Hierarchical Music Specification Language (pForth-based)
variable current.pitch
variable current.dur
: ms.to.ticks ( ms -- ticks )
120 * 1000 /
;
: play.note ( pitch dur.ms -- )
ms.to.ticks >r
dup pitch.on
r@ task.sleep
pitch.off
r> drop
;
: play.scale ( -- )
60 200 play.note
62 200 play.note
64 200 play.note
65 200 play.note
67 200 play.note
69 200 play.note
71 200 play.note
72 400 play.note
;
: demo ( -- )
cr ." Playing C major scale..." cr
play.scale
cr ." Done." cr
;
demo