Summary:
I like grains and with @o.green have been making a replacement for the GMU GMEM granulator using framelib. Mostly working!
I’m getting horrible CPU spikes - going from ~3% to >40%, and glitching audio playing from all other sources.
I think this is only inside an M4L environment, but still narrowing down.
FrameLib Version:
pretty sure it’s the Alpha-2.5 release - happy to try a more recent one if that sound promising.
Environment Details (Max/SC/Whatever):
macOS Mojave 10.14.6, 2.6 GHz Intel Core i7, 32 GB 2400 MHz DDR4
Live 10.4.1b1
Max 8.1.0
Steps to reproduce (Provide patch/code if possible):
There’s a folder with the patches in here: rgr.grains.zip (146.7 KB) (also a github: https://github.com/mo-seph/rgr.bufgrains)
If I open the help patch, I can set it to play a 4s grain every 2 seconds, and that’s fine (although definitely not free). If I use the MinimalLiveGranulator.amxd in the examples folder to do the same think (2000ms timing, 2.0 fill) then the cpu goes wonky. It’s generally when the grain kicks off, but not every time.
Actual Result:
CPU goes spiky and all the audio goes glitchy
Expected Result:
Buttery smooth delicious grainy goodness
Logs/Other
We (well, @o.green ) had a look with Instruments from XCode, which traced it to the fl.read~ object. We had a thought that it could be an interpolation thing - I thought that moving from default hermite
to linear
had helped, but it appears to still be an issue.
Audio settings in Live in case it helps…