Active control of waves on one-dimensional structures