{"repo":"gumslone/raspi_buzzer_player","free":true,"listed":false,"github":"https://github.com/gumslone/raspi_buzzer_player","clone":"git clone https://github.com/gumslone/raspi_buzzer_player.git","description":"Play 121 melodies — game/movie themes, classical, carols, folk & nursery rhymes — on a Raspberry Pi with a passive/active buzzer (Python 3 + RPi.GPIO).","language":"Python","stars":49,"topics":["raspberry-pi","raspberry","raspberrypi","buzzer","gpio","music","python","python3"],"license":"Unlicense","category":"media-processing","readme_excerpt":"raspi buzzer player Play 121 melodies on your Raspberry Pi with a cheap passive (or active) buzzer — game and movie themes, classical pieces, Christmas carols, folk songs and nursery rhymes. Pure Python 3, no dependencies beyond RPi.GPIO . Repository: https://github.com/gumslone/raspi buzzer player Features - 121 built-in songs across many genres — run --list to browse them. - Tiny command line — play everything, a single song, or a custom set, selected by number or by title (substring match). - Compact song notation so adding a new tune is a single line of text. - No third-party dependencies beyond RPi.GPIO (preinstalled on Raspberry Pi OS); square-wave tone generation is done in pure Python. - Clean shutdown — the GPIO pin is always released, even on Ctrl+C . Hardware A passive or active buzzer wired to a GPIO pin: The signal pin is configured in buzzer player.py : Change that value if your buzzer is on a different pin. Requirements - A Raspberry Pi running Raspberry Pi OS (or any Linux with RPi.GPIO ). - Python 3. - The RPi.GPIO library (shipped with Raspberry Pi OS; otherwise pip install RPi.GPIO ). Usage Song selection by title is a case-insensitive substring match, so python3 buzzer player.py zelda plays Zelda's Lullaby . Press Ctrl+C at any time to stop; the buzzer pin is released cleanly on exit. How it works The project is split into two files: File Responsibility --- --- songs.py The note table and the song library. No GPIO import, so it can be imported and inspecte","default_branch":null,"files":null,"tree":[],"storefront":"/r/gumslone","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gumslone/raspi_buzzer_player/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}