The MacBook Lid Angle Sensor

This is just plain fun. Adding to the entertainment is the choice of noises: creak or Theramin.

This is the brainchild of Sam Gold. It’s available on Github. I discovered it in an article on Mac Power Users.

The app relies on a strange built-in function that measures the angle of the MacBook lid. For example,

Fig01 Lid Angle 108 degrees The MacBook Lid Angle Sensor

Fig01 Lid Angle 108 degrees (click for larger image)

Mr. Gold takes advantage of the angle being measured continuously. His clever app reports the angle and makes either a creak or Theramin (your choice) as you raise and lower the lid.

Readers well-versed in C are welcome to take a look at it. The container is a standard Github repo. Since this only runs on a Macbook, there is no need for the many versions required by most apps. Just download the .exe file and start creaking (or wailing).

Here’s a short video demo.

Share if you feel like it

About Tony Lima

Retired after teaching economics at California State Univ., East Bay (Hayward, CA). Ph.D., economics, Stanford. Also taught MBA finance at the California University of Management and Technology. Occasionally take on a consulting project if it's interesting. Other interests include wine and technology.