Skip to content

Lua module to produce sounds and noise using libao

License

Notifications You must be signed in to change notification settings

wolfha/lua-soundness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua-soundness

Lua module to produce sounds and noise using libao

dependency

To build the module, you will need libao-dev (on debian) or libao-devel (centos)

Usage

local sdn = require 'soundness'

--
-- sound(frequency, length, volume)
--
sdn.sound(440.00, 1, 0.75)

--
-- pause(length)
--
sdn.pause(0.5)

sdn.sound(261.63, 0.4, 0.75)
sdn.sound(261.63, 0.4, 0.75)
sdn.sound(293.66, 0.4, 0.75)
sdn.sound(329.63, 0.4, 0.75)

sdn.sound(329.63, 0.4, 0.75)
sdn.sound(293.66, 0.4, 0.75)
sdn.sound(261.63, 0.4, 0.75)

sdn.pause(0.6)

--
-- pause(length, volume)
--
sdn.noise(2, 0.3);

About

Lua module to produce sounds and noise using libao

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published