Music 270c: assignment 1

ASSIGNMENT 1. Make a computer generate repeating sequences like this one:

    [0 5 10 2 7 12 4 9 1 6 11 3 8]
whose rule is, "add 5 and, if the result is at least 13, subtract 13." If you know a way to do it, represent this in music notation (start at middle C for instance) or in any graphical notation, or synthesize it as sound. Use whatever computer programming environment (Max/Pd/SC? Open Music? C? Basic?) you prefer. You can either bring it on a computer or print out whatever program you ended up with, or just e-mail me the program if it can be represented in plain text. Here is a sample output in music notation:
score notation
and here in a crude graphical notation:
graph notation