プログラマーのための古典音楽理論
プログラマーのための古典音楽理論, also known as ClassicMusicTheoryForProgrammer [sic] is an esoteric programming language developed by GitHub user lv100tomato since 2019.
The program is represented as a music score for quartets. Chord progressions stand for program tokens.
Specification
Supports 32-bit integer variables; must be declared before use. Variables shall be a sequence of
Supports incrementing, UTF-16 (or 2-byte-unit) I/O, addition, subtraction, multiplication, division and remainder. Reading EOF is equivalent to reading the value -1.
Supports looping control flow.
The program (which is music score) must follow (some of) actual music theory.
A program is a list of commands, and each command takes one or two variables, and evaluates to the result of first variable; the evaluation value is for score looping.
I V (variable)
, where variable is any progression that is not a reserved word, declares a variable and initializes with 0.
I IV (variable)
increments the variable.
External Resources
- lv100tomato/ClassicMusicTheoryForProgrammer - GitHub. Developed in C#. Japanese. Attached cat and Hello World programs.
Mentioned on
as well as golfing techniques.