The IR sensor fades the LED’s in and out and changes the frequency sent to the speaker.