FartScrollLid FartScrollLid is a humorous macOS application that plays fart sounds synchronized with the opening and closing movements of your MacBook lid. Inspired by the "fart scroll" browser extension, this app uses the internal lid angle sensor to trigger and modulate sounds, creating a fun and quirky user experience. --- Features Dynamic Fart Sounds: The pitch changes based on the lid angle—deep bass tones when the lid is closed and high squeaks when fully open. Motion-Activated: Sounds are triggered only when the lid is actively moving. Real-Time Monitoring: Displays live readings for lid angle, velocity, and fart sound parameters. Funny Status Messages: Messages like "Maximum pressure!" and "Gas escaping!" for added amusement. --- How It Works The app reads data from the MacBook's internal lid angle sensor (reverse engineered Apple HID device). It calculates the lid angle (0-130 degrees) and translates it to pitch modulation. Volume is controlled based on how fast the lid is moving. The fart sounds start when movement speed exceeds 2 degrees per second and stop immediately when the movement ceases. --- Requirements macOS 11.5 or later MacBook with an internal lid angle sensor (present in most modern MacBooks) A sense of humor! --- Installation Option 1: Build from Source Clone the repository: Open the project in Xcode: Build and run the application (Cmd + R). Option 2: Download Release Download the latest .app file from the Releases page. --- Usage Launch FartScrollLid. Click "Start Farting". Move your MacBook lid up and down to trigger fart sounds. The sounds stop when you stop moving. Click "Stop Farting" to end the session. --- Technical Details Lid Angle Sensor Device: Apple HID Device (VID=0x05AC, PID=0x8104) Usage Page: Sensor page (0x0020), Orientation usage (0x008A) Data: 16-bit angle value in centidegrees (0.01° resolution) Angle Range: 0–360 degrees Audio Engine Uses AVFoundation for real-time audio playback. Features a varispeed unit for pitch modulation ranging from 0.5x to 2.0x. Smooth parameter ramping to avoid audio artifacts. Movement threshold set at 2 degrees per second to trigger fart sounds. --- Project Structure --- Credits Based on the original LidAngleSensor app by Sam Henri Gold. Fart sound sourced from fart.js. Concept inspired by the original fart scroll browser extension by The Onion. Developed with help from Factory Droid. --- License MIT License — see the LICENSE file for details. --- Contributing Pull requests are welcome! Major changes should be discussed via an issue first. Potential future features include: More varied fart sounds. Customizable pitch and volume curves. Fart usage statistics. Network multiplayer farting. Apple Watch companion app. --- Disclaimer This app is for entertainment only. Use responsibly in appropriate settings. Not recommended for: Business meetings Libraries First dates Job interviews Funerals Recommended for: Pranking friends Amusing children Breaking awkward silences General fun