added functionality to pass sustained notes through the pattern
converted patterns module to pattern arrays