Using DocumentBuilder
In this documentation from now on builder is used as a known thing.
Add Score Configuration
Configuration Objects
Add Measures And Rows
Measures
Add Document Header
Document header can contain title, composer and arranger.
Add Key Signature
Set key signature form the beginning of current measure.
Add Time Signature
Set time signature form the beginning of current measure.
Add Tempo
Set tempo from the start of current measure.
Add Note
Add single note.
Add Rest
Arguments:
Add Tuplet
Add tuplet with this generig function.
Add Lyrics
Add lyrics with this function similar to addNote.
Add Annotation
There are two functions for adding annotation:
Add Span
Span is annotation with span in form of extension line or hairpin. It can cover multiple measures.
Annotation Position
By default annotations (and lyrics) are positioned above or below first staff/tab of row,
Add Connective
Add tie:
Use Repeat
You can repeat builder actions given number of times using repeat function.
Set Instrument
There is built-in support for midi instruments (all 128 except percussives).
Set Colors
It is currently possible to set colors of some score elements.
Beams
Beams are automatically detected using beam grouping logic that
Error Handling
All errors are subclasses of Core.MusicError.