The researchers believe the method could work for not just light, but other kinds of waves such as sound.