graue / luasynth Goto Github PK
View Code? Open in Web Editor NEWAudio framework in Lua
Home Page: https://scott.mn/projects/luasynth.html
License: Other
Audio framework in Lua
Home Page: https://scott.mn/projects/luasynth.html
License: Other
I've been using this command to test sample rate changes:
./luasynth osc -oscType Square -freq 200 -length 10 \
| ./luasynth adsr -attack 30 -decay 500 -sustainLevel -6 -sustainLen 1000 \
| ./luasynth filter -filtType Notch -center 600 -q 5 \
| ./luasynth delay -len 900
separately with export RATE=44100
, 22050
, and 88200
. It sounds slightly different at 44.1KHz and 88.2KHz (if you convert the 88.2KHz back down to 44.1KHz, invert it and mix with the 44.1KHz, there's an echoing buzzy sound). And it sounds really different at 22KHz, mostly I think due to the oscillator, and the way it's generating square waves (it should ideally be bandlimited and not a literal "square" wave), but I think there's more than that going on and I'm not sure what's up here.
This issue is a reminder to investigate.
It wouldn't take much to make the main.lua
command-line driver work under Windows โ same stuff as this commit for moon-noise.
A slightly more ambitious goal would be to split out the FFI-dependent common functionality here (fwrite
, fread
, isatty
and binmode
) into a small library, perhaps put it on LuaRocks and make both projects use it.
One way to implement this would be to pass the sample rate as an argument to each unit's .new()
constructor. Then the wrapper could make it available as state.sampleRate
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.