Skip to content

Exporters

ptrv edited this page Oct 12, 2012 · 7 revisions

This page is a collection of exporter commands

Links to more information on generating Faust externals:

Mac OS

jackqt

If pure is installed in /opt/local, the following command will generate a jackqt external

make -C $(DATA_DIR) jackqt DYLD_LIBRARY_PATH='/opt/local/lib/pure' PATH=$PATH:/usr/local/bin:/opt/local/bin

SuperCollider

The SuperCollider headers are needed to generate SuperCollider externals. Locate them and set the SUPERCOLLIDER_HEADERS environment variable in the export command.

export SUPERCOLLIDER_HEADERS=</path/to/supercollider/include>;make -C $(DATA_DIR) supercollider

Linux

puredata

To compile the current MDL file into a puredata external. The following command generates a pd external and a pd patch in DATA_DIR/puredatadir/.

faust -xml -a puredata.cpp -o $(DATA_DIR)/$(MDL_NAME).cpp $(DATA_DIR)/$(MDL_NAME).dsp;mkdir -p $(DATA_DIR)/puredatadir; g++ -DPD -fPIC -Wall -O3 -mfpmath=sse -msse -msse2 -msse3 -ffast-math -shared -Dmydsp=$(MDL_NAME) -I/usr/include/pdextended -o $(DATA_DIR)/puredatadir/$(MDL_NAME)~.pd_linux $(DATA_DIR)/$(MDL_NAME).cpp; faust2pd -r 10 -s $(DATA_DIR)/$(MDL_NAME).dsp.xml; mv -f $(DATA_DIR)/$(MDL_NAME).pd $(DATA_DIR)/puredatadir

This command uses the Makefile and Makefile.pdcompile and compiles all mdl files in DATA_DIR.

make -C $(DATA_DIR) puredata

Supercollider

To generate a supercollider plugin from the current MDL file in DATA_DIR/supercolliderdir.

export SUPERCOLLIDER_HEADERS=/usr/local/include/SuperCollider;faust2supercollider -sd $(DATA_DIR)/$(MDL_NAME).dsp; mkdir -p $(DATA_DIR)/supercolliderdir; mv $(DATA_DIR)/$(MDL_NAME).so $(DATA_DIR)/$(MDL_NAME).sc $(DATA_DIR)/supercolliderdir

This command uses the Makefile and Makefile.sccompile and compiles all mdl files in the data directory. If you installed SuperCollider from source, the headers are installed in /usr/local/include/SuperCollider.

export SUPERCOLLIDER_HEADERS=/usr/local/include/SuperCollider;make -C $(DATA_DIR) supercollider

Windows

Clone this wiki locally