OWL patches in C++ can use objects from the DaisySP library directly. While it was written to run on Daisy platform, there's nothing preventing compatibility with OWL patches in its code.
Integrating DaisySP into an OWL patch takes just a few simple steps:
-
Import main library header by adding
#include "daisysp.h"
-
Import libray namespace into current patch with
using namespace daisysp;
statement -
Add required objects as patch members. It's also possible to use object pointer and create objects dynamically in constructor to delay memory allocation.
-
Call each object's
::Init()
method in patch constructor. Most objects require passing sample rate, so it becomes something likeobject.Init(getSampleRate());
-
Update object parameters with
object.Set*()
calls inside your patch'sprocessAudio(...)
method -
Generate object audio by calling
object.Process(...);
inside a for-loop once for every sample.
Filthy kick shows how to use all of the above.