Generating Melodies with Markov Chains in Ruby | Dark Hacker News