Variables

From MusiCAD
(Redirected from Variable)

After calculating the melody, a number of variables were assigned a value. This value can be tested in a condition in layout templates, which in turn can be linked to buttons and/or key combinations. Variables can also be used in template functions such as MESSAGE, REQUIRE and CONFIRM.

variable Description
nLyrics number of visible text lines for the melody [0 - 4]
nChords number of visible chord symbol lines (0, 1, 2)
nNotes number of main notes
nCombi number of double notes (two or more notes on a stick)
nCombi3 number of triple notes (three or more notes on a stick)
nParts number of parts present in the melody
nAuto number of automatic parts present in the melody
nInvisible number of invisible parts present in the melody
nAutoInvisible number of invisible automatic parts present in the melody
nBars total number of sizes
nLines total number of lines
nPages total number of pages
nStaffs number of bars per line
avgLineWhite average whitespace per line (horizontal)
avgPageWhite average whitespace per page (vertical)
Tempo current starting pace in beats per minute

In addition to the variables mentioned here, parameters can also be used as a variable.