Max for Live Javascript Tutorial for Music Generation

Published: 2021-12-23

Generating Music with Ableton Live, Max MSP using a filter implemented in Javascript. How to Generate Ragas using Brzozowski Derivatives for Regular Expressions with Ableton Live, Max MSP (Max for Live) and Javascript. Use Ableton Live to generate random notes, which are passed to a Max MSP plugin. Max MSP is a flow based programming language. It receives the random note and then has to decide whether it will sound good to the listener. The plugin will only let notes pass through that satisfies the rules for the Raga (a scale in Indian Classical Music). This Raga is coded in a Javascript component inside the Max MSP plugin. The video will show you have to glue all these elements together. The Raga is defined using a Context Free Grammar in Javascript. This grammar is implemented using an extension of the theory of Brzozowski Derivatives for Regular Expressions. This is a very simple functional programming algorithm for matching regular expressions, which has been extended with references or links to allow for defining Context-Free Grammars.

References: