Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/superzazu/denver.lua
a simple library to help you play custom waveforms with LÖVE
https://github.com/superzazu/denver.lua
audio generation library love2d sound synthesis waveform
Last synced: 22 days ago
JSON representation
a simple library to help you play custom waveforms with LÖVE
- Host: GitHub
- URL: https://github.com/superzazu/denver.lua
- Owner: superzazu
- License: mit
- Created: 2015-01-19T18:06:55.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-31T11:39:14.000Z (over 8 years ago)
- Last Synced: 2024-09-24T20:10:06.307Z (about 1 month ago)
- Topics: audio, generation, library, love2d, sound, synthesis, waveform
- Language: Lua
- Homepage:
- Size: 12.7 KB
- Stars: 82
- Watchers: 6
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-love2d - denver - A Löve custom waveform generation library. (Music)
README
# denver
denver is a simple library to help you play custom waveforms with
[LÖVE](http://love2d.org). It currently supports several waveforms:
sinus, sawtooth, square, triangle, whitenoise, pinknoise, brownnoise.## How it works
```
local denver = require 'denver'-- play a sinus of 1sec at 440Hz
local sine = denver.get({waveform='sinus', frequency=440, length=1})
love.audio.play(sine)-- play a F#2 (available os)
local square = denver.get({waveform='square', frequency='F#2', length=1})
love.audio.play(square)-- to loop the wave, don't specify a length (generates one period-sample)
local saw = denver.get({waveform='sawtooth', frequency=440})
saw:setLooping(true)
love.audio.play(saw)-- play noise
local noise = denver.get({waveform='whitenoise', length=6})
love.audio.play(noise)
```