Google Magenta's Piano-Genie into Max

Chris Los's icon

Hey Max Dudes,

I created a NodeJS Server/Client pipeline for the recently updated magenta-js piano genie version by Chris Donahue, Ian Simon, Sander Dieleman and Monica Dinculescu.

It was more of a proof of concept for me to understand how to connect nodejs with magenta.

https://github.com/chrislos/MaxGenie

Have fun playing around with it.
Only tested on OSX High Sierra.

Best,
Christian

vichug's icon

yayyy thanks

chrislos's icon

Today I implemented a few more functionalities like key(scale) and temperature.

Best
Christian

Added few more functions

Florian Demmer's icon

Awesome Chris! How do you feel about making a Pull Request on this repository n4m-community and adding it to the list of useful examples for others to explore?

Thanks,
Florian

chrislos's icon

Florian,
sure why not!

Best Christian

pattyco's icon

Hi Chris, I tried your project ( I known the original) but it doesn't load the js, you know why? I can play with other Node js projects, so I asume is something particular of this one. Thank you!

vichug's icon

it doenst work here neither, and attaching a debug nodejs bpatcher shows "TypeError : Max.post is not a function"
any help for total beginner please ?

chrislos's icon

Hey,
it‘s been quite a while since I opened the patch. I think I remember that I had some issues with the npm packages in my github respo when I ported it to another mac. I fixed it by deleting the max-api npm folder... then ipened the patch and the js worked propably. not sure if it‘ll solve your issues. might worth a try, though.

good luck
christian

scott chevaillier's icon

It is working fine for me after deleting the max-api folder. Thanks for the patch @chrislos!

chrislos's icon

That's good to hear. I removed the folder out of the repo... so it should rund for everyone now. (hopefully)

best
c.

vichug's icon

Hey, same for me, works nicely after removing that folder :)

youngdass's icon

Amazing works Chris. Your patch works great.

Would you share some tips to make magenta js to max patch?..

I'm trying to make melody or rhythm pattern generator using one of the magenta-js modules and max node.

I tried reverse-engineering your work to understand how it works. However I can't understand how the piano genie module is embeded in max patch.

I've tried to find your email address to ask you about but I couldn't find it any.

(btw my email is [rxkm.lab@gmail.com])

Any advice would be helpful.

Thanks