Skip to content
a beep that beeps - cross-platform command line tool and C C++ library to toot "tooot"
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.
readme.txt 1.0.6 Dec 5, 2017
toot.c 1.0.6 Dec 5, 2017
toot.h 1.0.6 Dec 5, 2017
toot_cmd_line_main.c 1.0.6 Dec 5, 2017


I've got tired of beep not working, here is toot (cross-platform C C++), toot works. 
   __              __
  / /_____  ____  / /_
 / __/ __ \/ __ \/ __/
/ /_/ /_/ / /_/ / /_
 a beep that beeps

it's both a C C++ library and a command line tool
Windows OSX Linux BSD Solaris Minix Raspbian

toot v1.0.6 (c) 2017 Guillaume Vareille zlib licence

void toot(float aFrequency_Hz, int aLength_ms) ;

Usage:  toot [-f frequency_Hz] [-l length_ms]  
        toot [-v] [--verbose]  
        toot [-h] [--help]
        toot [--version]  
Default: toot -f 440. -l 300
Example: toot

the release tab contains windows and osx executables

make sure the volume is on (though some beeps may use the hardware speaker)
if you can't adjust frequency / length (or if it doesn't beep)
	on osx:		you can install sox
	on unix:	you can install pactl or speaker-test or sox

If you know of any other way to reliably generate sine wave sound or beep on
anykind of machine, I'll be happy to add them to toot. Let me know: toot at

$ gcc -o toot_cmd_line_main.c toot.c
( or clang )

$ gcc -o toot toot_cmd_line_main.c toot.c
( or clang tcc cc CC )

MinGW :
> gcc -o toot.exe toot_cmd_line_main.c toot.c -LC:/mingw/lib -lkernel32
( or tcc )

VisualStudio :
Create an application project or an empty project (it links against Kernel32.lib)

I am also the author of tiny file dialogs
it's a cross-platform C C++ file that offers many native dialogs
no init, no main loop, no include, no linking
/         \   NotifyPopup InputBox PasswordBox MessageBox ColorPicker
|tiny file|   OpenFileDialog SaveFileDialog SelectFolderDialog
| dialogs |   ASCII UTF-8 (and also MBCS UTF-16 on windows)
\____  ___/   Native dialog library for WINDOWS MAC OSX GTK+ QT CONSOLE

You can’t perform that action at this time.