Did you know ... Search Documentation:
Pack music_notes -- prolog/music/lilypond.pl
PublicShow source

Parse Prolog note representations from Lilypond code. Or generate Lilypond code from Prolog notes. This is achieved by DCG rules.

Examples

Generating Lilypond code:

?- phrase(lily([c, d, e, f, g]), L, []), format('~s', [L]).
c d e f g

Parsing from Lilypond code:

?- phrase(lily(L1), `c cis   d dis e`, R).
L1 = [c, cs, d, ds, e],
R = [].
author
- Christian Gimenez
license
- GPLv3

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 notelily(Arg1, Arg2, Arg3)
 lily(Arg1, Arg2, Arg3)