Use of template

This document is a simple example of web component to have a easy integration of Faust in an html page. A tag faust-compiler is created and integrated in the html page.

You have to run it with a http server because template is in an external file and most of browser doesn't allow cross browsing domain.

You can use the python SimpleHTTPServer on linux. (type "python -m SimpleHTTPServer 8000" in a console). The server have to be launched in parent directory of html file (to have the libfaust.js file).

Your browser must support import files.

# Faust component without editor

process = hgroup("mixer", _*vslider("Volume1", 0, 0, 1, 0.1), _*vslider("Volume2", 0, 0, 1, 0.1));

# Faust component without editor

process = _*vslider("Volume", 0, 0, 1, 0.1);