https://github.com/fr0stbyter/faust2wam
https://github.com/fr0stbyter/faust2wam
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/fr0stbyter/faust2wam
- Owner: Fr0stbyteR
- Created: 2022-02-07T18:18:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-10T16:00:42.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T21:41:21.051Z (about 1 year ago)
- Language: JavaScript
- Size: 13.3 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Faust2Wam
Statically/Dynamically generate [WebAudioModule](https://github.com/webaudiomodules/api) from a Faust DSP code.
## Usage
Please use a stable version of [Node.js](https://nodejs.org) 16+ to work with this project.
### Use the command line interface
Clone and get into this project:
```bash
git clone https://github.com/fr0stbyter/faust2wam
cd faust2wam
```
#### Generate static WAM files from a Faust DSP
For example:
```bash
rm -rf test/out # make sure you are under the faust2wam directory.
node faust2wam.js test/rev.dsp test/out
```
or
```bash
rm -rf test/out # make sure you are under the faust2wam directory.
node faust2wam.js test/poly.dsp test/out -poly
```
or
```bash
rm -rf test/out # make sure you are under the faust2wam directory.
node faust2wam.js test/fft-denoise.dsp test/out -fft
```
#### Dynamically generate WAMs from a Faust DSP code in a browser
```JavaScript
// Load the WAM
const { default: generate } = await import("./dist/index.js");
// Load the DSP file
const dspResp = await fetch("./test/rev.dsp");
// Generate the WAM
const WAM = await generate(await dspResp.text(), "Reverb");
```