bwongs(N)

plays a user specified number of gong sounds at random pitches
35 Downloads
Updated 6 Jun 2016

View License

An excellent function making use of MATLAB's built in 'gong' command. Simply enter the number of times you wish to hear the gong sound (N) and this function will play it at random pitches. The first 20 are quiet unless you choose a number less than 20, in which case a random number less than N/3 is chosen to be quiet. Then the next ones are really loud! Great for MATLAB pranks. This function sometimes causes MATLAB to crash. It is unclear why but it may be an audio driver issue in the call to the sound() function. May improve this in later versions.

Cite As

Ansel Rothstein-Dowden (2024). bwongs(N) (https://www.mathworks.com/matlabcentral/fileexchange/57535-bwongs-n), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0