Do entire for-loops run during a single sample?
Jan 12 2021 | 7:21 am
I'm having two problems: 1. I don't know if what I'm trying is possible in gen~. 2. I'm not sure of the correct codebox syntax.
I want to use a for-loop to update all the values of buffer 'u' every sample based on some simple arithmetic and values in two other buffers. Then copy buffer 'u1' over 'u2', and copy 'u' over 'u1'. It's a lot of peeking a poking, which has to be done in a for-loop, so I need to get the codebox syntax right. I've come this far by making some assumptions looking at example patches and stuff posted on this forum, but I can't find official genexpr syntax documentation.
I'm looking for something like: poke( buffer name, value to insert, buffer index, ... ) ; variable = peek( buffer name, buffer index, ... );
I have the codebox compiling without errors now, but it isn't working as I expect (I get no sound at all), and I can't tell if it's because of problem 1, problem 2, or something else. If this works as I intend, the input can be any audio signal and the output will be an excited string.
Any help is greatly appreciated!