Giter Site home page Giter Site logo

luasynth's People

Contributors

graue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

luasynth's Issues

Add explicit sample rate support

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.

Stuff sounds different when sample rate changed

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.

Support Windows in driver

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.