https://github.com/propilideno/linux-beep-music
A library to compound music using pcspkr module and motherboard speaker
https://github.com/propilideno/linux-beep-music
linux linux-module linux-modules music pcspkr
Last synced: 17 days ago
JSON representation
A library to compound music using pcspkr module and motherboard speaker
- Host: GitHub
- URL: https://github.com/propilideno/linux-beep-music
- Owner: propilideno
- License: mit
- Created: 2024-03-03T14:01:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-03T17:05:21.000Z (about 2 years ago)
- Last Synced: 2025-01-06T02:25:53.435Z (over 1 year ago)
- Topics: linux, linux-module, linux-modules, music, pcspkr
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# linux-beep-music
A library to compound music using pcspkr module and motherboard speaker
# Requirements
## Advanced PC-speaker beeper
beep does what you'd expect: it beeps. But unlike printf "\a", beep allows
you to control pitch, duration, and repetitions. Its job is to live inside
shell/perl scripts and allow more granularity than one has otherwise. It is
controlled completely through command line options. It's not supposed to be
complex, and it isn't - but it makes system monitoring (or whatever else it
gets hacked into) much more informative.
```bash
sudo apt install beep # Debian/Ubuntu
sudo pacman -Sy beep # Arch Linux
```
# Songs
## Megalovania - Undertale
**Music Sheet Source:** https://virtualpiano.net/music-sheet/megalovania-undertale-toby-fox-easy/
**Script Author:** @propilideno
```bash
curl https://raw.githubusercontent.com/propilideno/linux-beep-music/main/megalovania.sh | bash
```
# Troubleshooting
## User is not in the `input` group
### Problem
`beep` accesses the PC speaker through `/dev/input/event*`, which is typically owned by the `input` group.
If your user is not part of this group, access is denied.
```bash
$ beep
beep: Error: Could not open any device
```
---
### Solution
Add your user to the `input` group:
```bash
sudo usermod -aG input $USER
```
Then log out and log back. Verify it using `groups` command
```
$ groups
username docker video kvm input wheel
```
# References
- https://mixbutton.com/mixing-articles/music-note-to-frequency-chart/