MIDI input retain instance

Hi. I’ve been able to generate midi visualizations following elekktronaut’s tutorial. I am now working on retaining the dot where ever it is on the screen. Basically, to not have it disappear and create a trail through feedback so I can draw using the midi inputs.
Could anyone help with that?