igneus / gregorio_logic

example of using simple logic in Gregorio code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PoC: Logic in Gregorio scores

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.

Building

Run make to build the example LaTeX document.

How it works

Makefile orchestrates the build:

  • .gabc.cpp files contain gabc code and C preprocessor directives
  • cpp (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

About

example of using simple logic in Gregorio code


Languages

Language:C++ 52.3%Language:Makefile 27.5%Language:TeX 20.3%