## Duration Normalization

In order to compose music, raw values output by the algorithm need to be adjusted, or "normalized", so that they can be interpreted as music notes. The purpose of this step is to convert each raw value into the duration of a note. This is required because duration values are limited to a range of 0 to 5, whereas this is not necessarily true of the values output by the algorithm.

To your right, you will see two boxes: "ALGORITHM OUTPUT VALUES" and "DERIVED DURATION VALUES". The top box will contain the raw values that the algorithm produces. The bottom box will contain the duration values of the notes. You derive these values when you normalize the raw values through scaling (and possibly modification).

Once the output is normalized, each note's duration will be represented by a value. This value may be at least 0 and at most 5. It corresponds to the duration of a note as follows:

0 = sixteenth note
1 = eighth note
2 = quarter note
3 = half note
4 = whole note
5 = double whole note