Hello pd land. Greetings from sc land.
I wanted to share with you all an external project that I have been working on for the past 9 months or so call rtneural_plugin:
https://github.com/spluta/RTNeural_Plugin
This project is designed to be a real-time safe, general use-case neural inferencing engine (using the open source rtneural inferencing engine) that runs at both audio rate and control rate. It is cross platform and runs in pd, max, and sc.
All training is done in python. Any rtneural shaped network should be able to be loaded. See Jatin's repository here for more details on the shapes of networks. There are lots of help files outlining some possibilities, but since this is a general inferencing engine, there are many more things it can do
Compiled releases for Mac and Windows are available on the releases tab. Linux users have to compile themselves. Instructions are provided.
There are 3 demo videos on YouTube outlining how this works:
General overview (everything but LSTM time series prediction):
LSTM note prediction in SC:
LSTM note and rhythm prediction in Max:
A pd video for the LSTM prediction will happen, but we probably need to make an object that deals with the N parameter softmax output of the external. If anyone has a better idea, please let me know.
Let me know if there are any questions or issues. Bugs or questions can also be submitted on GitHub.
Sam
(Also, right now the windows build of the pd rtneural~ object is a bit wonky. If anyone wants to help debug that I would be grateful. The only pc I have is parallels on an ancient iMac, so it is a bit tedious and I don't trust it.)