The lasers didn’t make the sound exactly.
A musical keyboard makes sound when you press a key. The key is just a switch and the keyboard emits the note when the switch is closed. The laser harp is the same, except that the switches are light sensitive and turn on when you block the beam.
You might have used light-gates in your science lessons at school, and the laser harp uses exactly the same principle.
Comments