CyberSpy

Rantings from a guy with way too much free time

Generating Music with Formal Grammars

2017-10-19 musings
What’s your Grammar Know about Music? Well, not your Grandma, but grammar, a field of computer science that formalizes language theory. For those unfamiliar with the topic, it’s a bit similar to the grammar lessons that tortured you in grade school, except with a twist of math! Why do we care about grammars when we are contemplating generating music algorithmically? It turns out using a special type of generative grammar known as an L-system is a great way to programmatically create our compositions. Continue reading