Using patterns to build a song