Skip to content

propilideno/linux-beep-music

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

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.

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

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.

$ beep
beep: Error: Could not open any device

Solution

Add your user to the input group:

sudo usermod -aG input $USER

Then log out and log back. Verify it using groups command

$ groups
username docker video kvm input wheel

References

About

A library to compound music using pcspkr module and motherboard speaker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages