<-- previous page Table of Contents Index next page -->

## Newscore and newpage

Normally, Mup determines how many measures to put on each score and how many scores to put on each page. You can force Mup to move to the next score with the "newscore" statement, or to the next page with a "newpage" statement. Here is an example:

    1: c;d;e;f;
    bar
    1: e;f;g;;
    bar
    newscore   // go to next score
    1: 2c;;
    bar
    1: e;f;g;;
    bar
    newpage   // go to next page
    1: e;g;2c;
    bar

You can temporarily change the indent for the new score by specifying "leftmargin=num," where num is a number of inches or centimeters (depending on the current setting of the "units" parameter.) The number may include a decimal fraction part (e.g. 8.5). The number can optionally be preceded by an plus or minus sign, in which case the number is taken as an amount to add or subtract from the normal margin, rather than as the actual margin value. The new score will then be indented by that much, overriding the value of the leftmargin parameter.

In a similar way, you can specify "rightmargin=num," which will affect the right margin on the previous score. This might be used, for example, if you want a piece to end with a shorter than normal score.

    newscore leftmargin=1.2 rightmargin=2.7

The equals sign is optional in these margin overrides.

For rightmargin, you can specify rightmargin=auto rather than giving a number. In that case, Mup will calculate the appropriate value to use to make the music on the previous score spaced based on the packexp and packfact parameters, without spreading to fill the line.

    1: c;d;e;f;
    bar

    1: g;f;e;g;
    bar

    1: c;d;e;f;
    bar

    1: g;f;e;g;
    bar

    1: 2e;c;
    endbar

    newscore rightmargin=auto

<-- previous page Table of Contents Index next page -->