def generateFromNumbers(self, numbers):
sequence = []<EOL>for number in numbers:<EOL><INDENT>if number == None:<EOL><INDENT>sequence.append(number)<EOL><DEDENT>else:<EOL><INDENT>pattern = self.patternMachine.get(number)<EOL>sequence.append(pattern)<EOL><DEDENT><DEDENT>return sequence<EOL>
Generate a sequence from a list of numbers.

Note: Any `None` in the list of numbers is considered a reset.

@param numbers (list) List of numbers

@return (list) Generated sequence