├── .DS_Store
├── .gitignore
├── LICENSE
├── README.md
├── compileWASM.bat
├── compileWASM.sh
├── cpp
├── dft
├── dft.cpp
└── webdsp.cpp
├── demo.js
├── gulpfile.js
├── img
├── forward1.svg
├── loop1.svg
├── noloop1.svg
├── pause1.svg
├── play1.svg
└── rewind1.svg
├── index.html
├── lib
├── .DS_Store
├── webdsp.js
├── webdsp_c.js
├── webdsp_c.wasm
└── webdsp_polyfill.js
├── package.json
├── server.js
├── smoothie.js
├── style.css
└── test
├── lib
└── catch.hpp
├── test.cpp
├── test.js
└── testCpp
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shamadee/web-dsp-demo/97a57c6000ce5f803b45a0deaa483123b6e3b04b/.DS_Store
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .vscode/
2 | media/
3 | node_modules/
4 | .DS_Store
5 | npm-debug.log
6 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## A client-side DSP library utilizing the power of WebAssembly (.wasm)
2 |
3 | This is the demo repo, to find the library itself please visit https://github.com/shamadee/web-dsp. The README below is the same as the library's.
4 |
5 | WebDSP is a collection of highly performant algorithms, which are designed to be building blocks for web applications that aim to operate on media data. The methods are written in C++ and compiled to WASM, and exposed as simple vanilla Javascript functions developers can run on the client side.
6 |
7 | WebAssembly is very young, and this is the first .wasm based library designed to be dropped in to existing production level JS code bases. With that in mind, there was an explicit goal to optimize and simplify how JS developers can load and use .wasm functionality. Just as important, was our goal to lay the groundwork for future open source WebAssembly module developers.
8 |
9 | ### Demo & Starter Kit
10 |
11 | Check out the [demo video editor](http://tiny.cc/webdsp) and [corresponding repo](https://github.com/shamadee/web-dsp-demo).
12 |
13 | To quickly start working with WebAssembly and to build your own modules, please see our started WebAssembly work environment you can npm install and launch [wasm-init](https://www.npmjs.com/package/wasm-init).
14 |
15 | ### Install
16 |
17 | Clone this repo and drop only the 'lib' folder into your project. Simply load our library file in a script tag. You can also get the module via `npm install web-dsp`, which comes with a built-in npm executable (`get-dsp`), which will copy the lib folder into your project directory.
18 | ```html
19 |
56 |
57 |
58 |
59 |