Codebox efficiency / for loop and if
I'm new to gen and not a very good programmer, so was wondering if anyone would look at my patch
and see if anything could be done about the efficiency of [gen~] in this patch.
The patch is an attempt to imitate stochastic synthesis, and uses [codebox] to write sample values in a
triangular shape to a Data object. My guess is I'm missing something with regards to for() loops and
if(), but it could be something else.
Average audio CPU usage shows 8.81% with gen taking 90.5% of that.
Any help appreciated. Thanks.
Thanks, Raja. Super helpful, I was wondering about how often the for loop is running.
You're right about changing every phase of the wave too, otherwise it leads to distorted effects which seems to be the kind of sound-world covered by this release:
https://cycling74.com/tools/db-bounce-chaotic-triangle-wave-oscillator-bank/
btw, to get audio going you need to start the Clock, move some params around and choose a fundamental... maybe.
I've change the way the patch works and UI elements have been moving around, so might not be clear
how to get sound on first use!
Anyway, thanks again, much appreciated!
i really find this patch interesting. quick question, what is preventing me from seeing all the objects and connections. it seems like a phantom patch! would like to dissect it and learn more.
It's in Presentation Mode, which hides the connections.
Control + alt + E on PC to switch to edit mode.
Command + alt + E on Mac (from memory).
Really impressive patch, great job.
really quite great sounding
Cheers. I am quite happy with it.
I recommend opening 3 or 4 instances, you can get quite a thick sound.
I'll probably make a [poly~] version at some point.