Comments (2)
I think you can put me in the "not sure" camp on this one.
I like the simplicity of Juicer. I think it's pretty clear which files depend on which others, and I'd say the code organization is about as straightforward as it can be. Also it means that the code is 100% 'normal' JavaScript, with no external dependencies and as little JS funkiness as I can get away with. On the minus side it does need an external tool for building, lazy loading is difficult, and we probably chuck too much stuff into the global namespace.
On balance I'm not sure that the benefits outweigh the costs, but I'm happy to be persuaded if there are real advantages which I've not understood, or if other people feel strongly about this.
from audiolet.
i agree with everything you said. as much as like requirejs, this is the first time i'd suggest a library include it.
my hunch, and i may be wrong, is any non-trivial app using Audiolet will benefit from requirejs. the pros you listed become much more important in large scale. things like lazy loading and namespace management are bigger problems there, and difficult to handle at the moment. on the other hand, smaller apps, one off synths, etc, will benefit from the simplicity of including a single file.
if you agree with that sentiment, and think it would be worth addressing, we could dig deeper into the pros/cons...
somewhat aside, if it helps ease your concerns, i believe you could build the project in a way that a developer would have the option to use individual modules with requirejs, or include a single file utilizing the global namespace (with no external dependency).
from audiolet.
Related Issues (20)
- Retrieving Output Buffer from a Node HOT 5
- ADSREnvelope doesn't allow attack, etc. to be changed at runtime HOT 1
- Optimise createInputSamples and createOutputSamples
- Visualization Example HOT 13
- chrome 21 problems getting sinks HOT 12
- Uncaught No audio sink available. again? HOT 12
- build and dist creating bad files HOT 1
- add "midi" sequencing support
- not require audiolet instance passed to all new objects HOT 8
- Audio Channel routing HOT 4
- Emit parameter change events for dynamic parameters.
- More node events HOT 2
- Missing audiofile.js HOT 1
- Sample player and FFT HOT 2
- Visualization fails in chrome
- [enhancement] Add missing bower.json.
- Example code pops/skips and bufferFill runs forever. HOT 1
- Audiolet stop working on blink browser (Chrome & Opera) HOT 3
- commonjs support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audiolet.