What I meant was how can we introduce (software wise) a peak signal hold for 500 ms whereas a bar that depicts peak of the signal holds for 500 ms and than falls down.

Example