Partially rewrote the melody generation code to use ror instead of array for note reading. 1009.