loov / jsfx Goto Github PK
View Code? Open in Web Editor NEWJavascript Sound Effect Generator
License: MIT License
Javascript Sound Effect Generator
License: MIT License
It would be nice if this library was available on a CDN.
Preferable one from this white-list:
https://greasyfork.org/en/help/external-scripts
I generated the signal, looked at it in sweep, and it appears that sound shapes are cut-off, as if they were artificially limited.
Natural sound shapes usually look round and smooth, including at the top and at the bottom. But your shape is very different.
I grabbed the sound redirecting chrome sound output into the null sink and saving the output.
Allow playing of notes - this would require sustain in ASD to be determined by some other factor.
Generate music based on scales: https://gist.github.com/egonelbre/7531a7f41fd0a935b115
Hello,
Thank you very much for this project. It is very interesting.
I would like to use it for an open-source and free project I am developing (a game engine framework in JavaScript) but I do not see any method that can return the raw data of the sound generated in base64 (WAV format).
Other libraries (which use or are based on riffwave.js) as https://github.com/mneubrand/jsfxr or https://github.com/grumdrig/jsfxr can return or can be modified easily to return the dataURI because it is a method that is already contaiend in riffwave.js. But those libraries are not longer being updated and seem quite old.
Please, would it be possible to add a method in your library to return the dataURI as a string for the WAV generated? Indeed I would like it to return just the data (without "data:audio/wav;base64,").
I would like to use that string to generate an Audio element (and possibly falling back to a Flash plugin that can support base64 audio for old browser or browsers that do not support WAV format as IE). I could even convert that WAV into MP3 format with JavaScript on the fly (although that could take a long time depending on the case).
Thank you very much for your patience. Sorry about my English.
I was wondering if there is a way to stop (interrupt) a sound.
Hi Friends,
Can you teach me how to make sound works for only one channel. I want to make it sound from left speaker or the right speaker.
Thank you.
Hi, @loov.
We are cdnjs team, and we want to host this project in cdnjs.
Now I just know jsfx.js
should be added in cdnjs.
I'm curious that lib/audio.js
and lib/jsfxlib.js
mentioned in README.md at v1.0 should be added in cdnjs or not? If there is any other files need to be added please tell me,
cdnjs/cdnjs#11213
Hi,
Most of generated sounds have a little noise in background (like a radio noise). Do you know how to remove it ? I've tried a low pass filter and high pass filter but it's still present.
Is it fixable with a property of the library or is it a real bug ?
Thanks for this awesome library.
gre
I'm wondering, when generating a lot of sounds (25 or so) it can take up a few seconds before everything is loaded. Not quite sure why. However, would it be possible somehow to get pass a callback parameter on creation that is called when the sound is ready so you can display a loading animation? I've looked in the source code but can't quite figure out how to do that...
Can you make this library available as an npm package please?
It will make it easier to use in other projects
https://www.npmjs.com/
https://docs.npmjs.com/getting-started/creating-node-modules
This is really pretty awesome...I had no idea javascript could be use to emit sounds to begin with!
I couldn't get any sound out of it on mobile safari though (running on the iPhone) - any idea why and if that's something that could be addressed? (Yes...I check that the volume was turned up all the way)
Either way - thanks a lot for sharing, it's very impressive.
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.