Plug-and-play send/return FX bus for openFrameworks
README
ofxSendFx
Plug-and-play send/return FX bus for openFrameworks.
Core API
#include "ofxSendFx.h"
auto fx = ofxsendfx::FxFactory::create("midiverb"); // needs ofxMidiverb in addons.make
fx->setup(44100, 2);
ofxsendfx::applySendFx(masterBuffer, sendBuffer, *fx);Factory ids built in:
pass, schroeder, bitcrush. Register more with FxFactory::registerCreator.Using SoundObjects (ofxSendFxSoundObjects)
#include "FxObject.h"
ofxsendfx::FxObject reverb("midiverb");
osc.connectTo(delay).connectTo(reverb).connectTo(output);Plugin
Implement
ofxsendfx::ISendFx and register in a static initializer:FxFactory::registerCreator("myfx", [] { return std::make_unique<MySendFx>(); });maxBlockFrames() must reflect your DSP (Midiverb: 256).
ofxAddons