Aicd
Aicd copied to clipboard
A little help to get Aicd as a standalone generator?
Hi!
This project is very interesting, I'm building a TB303 synth and it's very helpful to have some varied patterns to test it. I don't know much about M4L devices, and even Live isn't my main tool. I could test it though and it's very cool!
It appears that the modelling part is mostly in Javascript, right? This suggests to me that the M4L device is merely for the display.
So I'm looking for some initial pointers to hack this into something that runs just with standard Javascript. Is acid.js
the entrypoint? lm.js
definitely contains the model weights.
I also notice there are some C# files, but I'm not sure what they do.
My work will of course be open source, here is some previous 303 work
Thanks a lot!
Wow, that's an awesome project you're doing. Do let me know once there is something to try out, would love to check it out!
Yes, you're right, using it from plain JS should be pretty straightforward. Just rip out everything except the functions generateLetter
, generateText
, and generatePattern
and the variables temperature
and patternLength
. Then call generatePattern
which will return a list of steps:
https://github.com/mganss/Aicd/blob/2afe043c7c2dcb489af85003bea21d1cd93a959a/acid.js#L68-L73
The model is contained in lm.js
and included into acid.js
using M4L's include
function. The C# files build the model from existing pattern files. You won't need them if you want to use the existing model.