Magenta on Android

313 views
Skip to first unread message

Sam C

unread,
Apr 13, 2019, 5:52:54 PM4/13/19
to Magenta Discuss
I'm building a Polyphonic Synthesizer android app and was considering using the MelodyRNN model to improvise off of the MIDI input.
As i can see currently there isn't an easy way to use Magenta on Android, but it may be possible to have some kind of web service with the model.

Does anyone have any information regarding either of the above options?

Thanks in advance,
Sam

Curtis "Fjord" Hawthorne

unread,
Apr 15, 2019, 2:05:29 PM4/15/19
to Sam C, Magenta Discuss
Sounds like a great project! You're correct that we don't currently have anything that would work out of the box for an Android app, but here are a few possibilities you could try out:

- Port MelodyRNN to TFLite so it could run natively on Android. I'm not sure how difficult this would be, but the model is relatively simple, so it's worth trying.

- Run Magenta.js in an embedded browser within your app. This would definitely be less efficient than TFLite, but it has the advantage of being able to use our APIs that are already nicely packaged up for you. It's the approach we took for Magenta Studio. I'm also not sure how well the WebGL requirements of TensorFlow.js work with an embedded browser. If you try it out, let us know how it goes for you!

- Run a web service.

Good luck with your project!

-Fjord

--
Magenta project: magenta.tensorflow.org
To post to this group, send email to magenta...@tensorflow.org
To unsubscribe from this group, send email to magenta-discu...@tensorflow.org
---
You received this message because you are subscribed to the Google Groups "Magenta Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magenta-discu...@tensorflow.org.
Reply all
Reply to author
Forward
0 new messages