The online Faust Editor can be used to edit, compile and run Faust code from any Web Browser with WebAssembly support. It works completely on the client side and it is therefore very convenient for situations with many simultaneous users (workshops, classrooms, etc.). It embeds the Faust compiler with an efficient webassembly backend and offers polyphonic MIDI support.
The editor engine is based on CodeMirror. It provides syntax highlighting, auto completion and direct access to the online documentation. The documentation command (ctrl-d) uses the function name at the cursor position to locate to the relevant information.
The recommended browsers are the latest versions of Firefox and Chrome.
- https://fausteditor.grame.fr: the official link on the Faust Editor website.
- https://github.com/grame-cncm/fausteditor: the github repository
We use Vite for development mode and builds. Dependencies include CodeMirror for providing an editor, FaustWasm for compiling Faust DSP client-side, and FaustUI for rendering GUI widgets.
The gFaustLibSnippets
content in the src/codemirror/mode/faust/faustsnippets.js
file has to be manually updated with the result of the faust2atomsnippets -s *.lib
command done in the Faust libraries folder.
Clone and enter the repository, then run:
npm install
npm run dev
Then press o to open in a browser.
npm run build
Generates output in dist/
. To view locally, run:
cd dist
python -m http.server