wallacoloo / libfriendship Goto Github PK
View Code? Open in Web Editor NEWA dsp library for rendering sounds using additive synthesis in real-time
License: MIT License
A dsp library for rendering sounds using additive synthesis in real-time
License: MIT License
The standard library implements it for all Error types. It's a good idea to do this to allow user-friendly error reporting.
When attempting to locate an effect on disk (form its name, URLs and hash), the current algorithm opens EVERY file in the search path, calculates its sha, verifies a sha match, then parses it and verifies the name.
This is costly enough to incur 20~30 seconds of startup time when searching a few hundred files for a simple LPF effect. Possible improvements include:
Effect::from_id
returns a Rc<Effect>
. The intention is that if the effect was already loaded before, it should return just another reference to that effect rather than recreating it fully, but this isn't quite implemented today.
Effect caching may be better implemented inside of ResMan
- map hashes to Rc<Effect>
and use the map as a cache.
It is currently possible to connect an edge to a slot of an effect that doesn't produce audio (is internally not connected to anything). The implied behavior is that the slot sources "0"s.
The downside to this is runtime checking for valid slots - either to avoid indexing errors or to enforce a contract, which also leads to lengthier and more complex code (notably in the LLVM JIT renderer). On the other hand, the RouteGraph already has to load effects to check for cycles, so this logic can be moved there at minimal cost. Let's do that.
JIT compilation of effects seems pretty crucial for any reasonable performance.
Priorities for a first version should be:
iron-kaleidoscope describes how to use LLVM as a JIT. This looks like a good route for a first version.
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.