Did you know ... | Search Documentation: |
![]() | Pack music_notes -- prolog/music/lilypond.pl |
Parse Prolog note representations from Lilypond code. Or generate Lilypond code from Prolog notes. This is achieved by DCG rules.
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 = [].
The following predicates are exported, but not or incorrectly documented.