How is the music computed?


FractMus uses two counters (see figure) as an iteration control for the algorithms. Melodies are always played from the Start counter, which counts in thirty-second notes. The End counter marks the point were the music stops. An example: Lets assume a note value of quarters (8 thirty-seconds) and the Henon algorithm. We start at counter 0, that is the first iteration of the algorithm (the first note), next, since we have chosen quarters as the note value, which corresponds to 8 thirty-seconds, we must wait until counter 8 to play the next note (iteration 2), then 16, then, 24, and so forth. Some algorithms are two dimensional maps, such as the Henon, Gingerbread man fractal, etc. As such, these equations give back (X, Y) values when iterated. In order to get a unique value from these coordinates, a modulus operation is performed, that is, the square root of the sum of the values squared [ sqrt(X*X + Y*Y) ]. From this value the final note is computed, depending on the scale chosen, the number of octaves, etc. The Reset button will set both counters to 0. The Roundbutton will set the counters to the nearest multiple (up or down) of the value of the voice of your choice (a dialog will pop up for you to choose the voice). Normally, when you play in the Current Settings mode, the End counter will start running from the value of the Start counter until you stop. If you do not want the End counter to run, press the Lock button. The music will stop automatically when the value at theEnd counter is reached. Counters can have a maximum value of 50000.