Drawing a line like a hertbeat?

I need some help here please. I am trying to build a node with a flat line in the renderer. Ohere should be one input. Depending on it the line should draw waves in Y, just like a heartbeat line.
I trides some spreads.
A particle generator, with a generation in one direction do actially what i need, but when the input comes to fast, there are spaces between particles.

Any idea?

Status (466.1 kB)

this can be a start for you

grafs3.v4p (472.7 kB)

Thank you, this is exatly it.