We explain Brzozowski's derivative algorithm for regular expressions using Pacman and then use it to generate a musical Raga using Ableton Live and Max/MSP. On the way the we also cover simplification rules and how to apply them using smart constructors. How to lazily build a Deterministic Finite Automaton (DFA) using memoization. We also show how to extend regular expressions with new operators and to Context Free Grammars (CFGs) using a Raga as an example.
2021-12-21
Derivatives for Regular ExpressionsHow to implement Regular Expressions using Brzozowski's Derivatives.
2021-12-22
Derivatives for Context Free GrammarsExtending Regex Derivatives to Context Free Grammars or Simpler Context Free Grammars Explained.
2021-12-23
Max for Live Javascript Tutorial for Music GenerationGenerating Music with Ableton Live, Max MSP using a filter implemented in Javascript.
2021-12-24
Generated Relaxing Music with photos taken in South AfricaThis relaxing instrumental in the style of indian classical music can be used for studying or meditation.