Hello, first time poster, new to Reaktor.
I have an oscillator driving an audio table that has been drawn into.
I have a button that triggers an iterator. This is set up to switch the audio table to get it's RX from the iterator (instead of the oscillator), as long as the iterator is running.
The intention is to invert the sign of all values in an audio table using the iterator running at audio rate (48kHz in this case).
I've taken great pains to order the outputs from my macro to the audio event table such that outputs are ordered:
- RX
- WX
- Val (to be written to the audio event table)
- W
It almost works, but the items in the event table are getting pushed up by one or more steps each time the button is pressed and the first few steps of the table are mangled.
I'm really struggling to understand what is going on here.
The first problem I notice is that when the iterator starts, it's outputting the max value on the first step for some reason. I assume this value is left over from the previous run, but I don't quite get how to clear it.
The second thing I can't figure out is when the iterator is actually writing within the bounds of the audio table, why the first value written is always "-0".
The third issue I can't wrap my head around is why the "Invert" is triggered whenever the ensemble is loaded.
I have made the assumption (since there isn't a dedicated R input) that pushing a value into RX on the audio table will cause the value at that position to pop through the Out port.
I've likely done something wrong, but I've no clue what it might be. The documentation on the Audio Table is a bit too sparse to help me.
I've attached the ensemble in question, would be much obliged if anyone took a look.
Many thanks!