Open noteflakes opened 9 years ago
Working towards implementing this, we still have some issues:
So we should have an API as follows:
@context.current_signature() => {key: 'C', time: '4/4'}
Once a key/time signature is defined/redefined, it is stored in movements/mvt/signatures
as an array in which each record is a hash with the following content:
{moment: MusicTime(...), key: 'C', time: '4/4'}
In order to maximize the DRY principle, we could use work.ld or movement.ld files to provide a global music stream that includes the key and time signatures (with partial/pickup definitions), key and time signature changes in the middle of the piece, tempo changes, double bar lines, repetitions, etc.
In the rendered lilypond code, a global stream can be incorporated as follows:
The lydown code will look as follows, for example a movement.ld file:
See also #38 for measure number indicators.