iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Classes | Macros
IPlugFaustGen.h File Reference
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include "IPlugFaust.h"

Go to the source code of this file.

Classes

class  FaustGen
 FaustGen compiles Faust code at runtime using the libfaust interpreter backend, so that the DSP can be edited while the plug-in is running. More...
 

Macros

#define FAUST_BLOCK(class, member, file, nVoices)   iplug::FaustGen member {#class, file, nVoices}
 
#define FAUST_RECOMPILE_INTERVAL   1000
 

Detailed Description

FaustGen compiles Faust code at runtime using the libfaust interpreter backend, so that the DSP can be edited while the plug-in is running.

The interpreter is much slower than compiled code, so use it for development and switch to the statically compiled DSP (FAUST_COMPILED) for release builds. All methods except ProcessBlock() and ProcessMidiMsg() must be called on the main thread.

Include this file to use FAUST_BLOCK, which declares a Faust DSP member that is either:

Parameters
classThe name of the generated class (Faust's -cn argument)
memberThe name of the member variable
fileThe absolute path of the .dsp file (only used by FaustGen)
nVoicesThe number of polyphonic voices, if the DSP doesn't declare "[nvoices:N]" in its options

Definition in file IPlugFaustGen.h.

Macro Definition Documentation

◆ FAUST_BLOCK

#define FAUST_BLOCK (   class,
  member,
  file,
  nVoices 
)    iplug::FaustGen member {#class, file, nVoices}

Definition at line 31 of file IPlugFaustGen.h.

◆ FAUST_RECOMPILE_INTERVAL

#define FAUST_RECOMPILE_INTERVAL   1000

Definition at line 44 of file IPlugFaustGen.h.