Browse Source

Use Interp backend.

faust
Stephane Letz Andrew Belt 4 years ago
parent
commit
63d138cb76
3 changed files with 14 additions and 9 deletions
  1. +12
    -7
      Makefile
  2. +0
    -0
      res/faust/rack.lib
  3. +2
    -2
      src/FaustEngine.cpp

+ 12
- 7
Makefile View File

@@ -253,19 +253,24 @@ endif
# Faust: compile the libfaust dynamic library with 'make world && sudo make install' # Faust: compile the libfaust dynamic library with 'make world && sudo make install'
>>>>>>> Document Faust setup in Makefile. >>>>>>> Document Faust setup in Makefile.
ifeq ($(FAUST), 1) ifeq ($(FAUST), 1)
libfaust := dep/faust/build/lib/libfaust.a
SOURCES += src/FaustEngine.cpp SOURCES += src/FaustEngine.cpp
FLAGS += -I/use/local/include
OBJECTS += $(libfaust)
DEPS += $(libfaust)
LDFLAGS += dep/faust/build/lib/libfaust.a


# Using LLVM
LDFLAGS += -L/usr/local/lib -lfaust

# Test using LLVM
#LDFLAGS += -L/usr/local/lib -lfaust


# Test using MIR # Test using MIR
#LDFLAGS += -L/usr/local/lib -lfaust dep/lib/mir-gen.o dep/lib/mir.o #LDFLAGS += -L/usr/local/lib -lfaust dep/lib/mir-gen.o dep/lib/mir.o


DEPS += $(faust)
OBJECTS += $(faust)
DISTRIBUTABLES += faust_libraries
FAUST_MAKE_FLAGS += prefix="$(DEP_PATH)"
$(libfaust):
cd dep && git clone "https://github.com/grame-cncm/faust.git"
cd dep/faust && git submodule update --init --recursive && cp -rf libraries/* ../../res/faust
cd dep/faust && make -C build cmake BACKENDS=interp.cmake TARGETS=interp.cmake && make -C build

endif endif


include $(RACK_DIR)/plugin.mk include $(RACK_DIR)/plugin.mk


faust_libraries/rack.lib → res/faust/rack.lib View File


+ 2
- 2
src/FaustEngine.cpp View File

@@ -38,7 +38,7 @@ using namespace std;


#define kBufferSize 64 #define kBufferSize 64


//#define MIR
#define MIR


#ifdef MIR #ifdef MIR
#include <faust/dsp/interpreter-dsp.h> #include <faust/dsp/interpreter-dsp.h>
@@ -208,7 +208,7 @@ class FaustEngine : public ScriptEngine {
fDSP(nullptr), fDSP(nullptr),
fInputs(nullptr), fInputs(nullptr),
fOutputs(nullptr), fOutputs(nullptr),
fDSPLibraries(rack::asset::plugin(pluginInstance, "faust_libraries"))
fDSPLibraries(rack::asset::plugin(pluginInstance, "res/faust"))
{} {}
~FaustEngine() ~FaustEngine()


Loading…
Cancel
Save