Factor the tick routine out of the pulse and into the envelope