A ColorInterpolator node animates the color change.

A CurrentTimeStepInterp node is used here to generate the current time at specified intervals. These time values are routed to a JavaSound node to cause the sound to play. Turn on your speakers to hear it.