Coding Time-Varying Signals Using Sparse, Shift-Invariant Representations