Overview
Implement a cellular automaton that generates drum patterns in Python in this comprehensive video tutorial. Explore the creation of a CellularAutomatonDrumGenerator class, learn about transition rules including syncopation resolution, filling gaps, accenting, and mutation, and discover how to convert drum patterns using the DrumPatternMusic21Converter class. Follow along with provided code examples and lecture slides to gain hands-on experience in generative music AI techniques for drum pattern creation.
Syllabus
Intro
What we'll build
Main function
Example generation running the script
DrunInstruments and DrumStates enums
CellularAutomatonDrumGenerator class
Step method
Applying transition rules
Syncopation resolution rule
Filling gaps rule
Accenting rule
Mutation rule
DrumPatternMusic21Converter class
Main function - 2nd pass
What's up next?
Taught by
Valerio Velardo - The Sound of AI