Turning any music into dodecaphony
Take any tonal piece and turn it into atonal dodecaphony. Instead of 12 tone technique, it randomly shifts pitches up or down, always favouring pitches that have been used less than others. The algorithm involves randomness. The algorithm doesn't check for tonal triads, so pure atonality is not assured.