Open DBraun opened 3 years ago
Check out my py2max project, which is an library to read and generate max patches offline. It basically a think python wrapper around the Max JSON-based .maxpat
file format which basically describes a directed graph where nodes or 'boxes' in Max parlance can contain graphs of other node to represent the max abtraction, bpatcher, sub patchers, poly object, gen~ object...
Wow nice job on that. I will tell my Max friends about it. I also appreciate your notes on graph traversal.
Thanks. If you like the graph traversal side of it, there's a deep rabbit hole which is easy to fall into in the related field of graph-drawing which addresses graph-layout algorithms.
Some brief intros:
I personally like the aesthetics of bend minimized orthogonal drawings of graphs (i.e. graph layouts with the least number of bends and where the bends of the edges are 90 degrees). After some research I found a very nice algorithm along these lines, which I ended up wrapping using pybind11 because the swig interface was just a pain.
I've just created a separate repo for it with the intent of possibly using it in py2max. It's called pyhola.
Can we build complex modular synthesizer routings with Python code? Controlling a synthesizer's filter cutoff with an ADSR?
Mockup code:
Another cool audio project is signalflow which has similarities to TensorFlow. You create nodes and use built-in operators on them such as +, -, /, *, %.