This repository contains a proof of concept related to the discussion (1, 2) about possible introduction of logic constructs in the gabc chant notation language. It demonstrates that functionality like conditional use of a part of a score or inclusion of another file's contents is readily available from existing tools, e.g. the C preprocessor, and there is no need to add such capabilities to the gabc language itself.
Run make
to build the example LaTeX document.
Makefile
orchestrates the build:
.gabc.cpp
files contain gabc code and C preprocessor directivescpp
(the C preprocessor) processes the directives, producing.gabc
files with pure gabc code (more than one different.gabc
files may be produced from a single.gabc.cpp
file, depending on its contents)- the
.gabc
scores are included in the LaTeX document as usual