To start, check out hseiken’s tip (with a linked xrns file) in this same sub-forum:
https://forum.renoise.com/t/braindance-glitch-method/19538