Skip to content

Commit

Permalink
Merge pull request #10 from antisvin/daisysp-docs
Browse files Browse the repository at this point in the history
DaisySP docs
  • Loading branch information
pingdynasty authored Feb 9, 2021
2 parents 6502db1 + b4a8cfe commit 6cb6bf0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions DaisySP/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# DaisySP

OWL patches in C++ can use objects from the [DaisySP library](https://electro-smith.github.io/DaisySP/index.html) directly. While it was written to run on Daisy platform, there's nothing preventing compatibility with OWL patches in its code.


## DaisySP patch structure

Integrating DaisySP into an OWL patch takes just a few simple steps:

1. Import main library header by adding `#include "daisysp.h"`

2. Import libray namespace into current patch with `using namespace daisysp;` statement

3. Add required objects as patch members. It's also possible to use object pointer and create objects dynamically in constructor to delay memory allocation.

4. Call each object's `::Init()` method in patch constructor. Most objects require passing sample rate, so it becomes something like `object.Init(getSampleRate());`

5. Update object parameters with `object.Set*()` calls inside your patch's `processAudio(...)` method

6. Generate object audio by calling `object.Process(...);` inside a for-loop once for every sample.


## Example patch

[Filthy kick](https://www.rebeltech.org/patch-library/patch/FilthyKick) shows how to use all of the above.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The OWL platform is actively developed by [Rebel Technology](https://www.rebelte
* [Max Gen](MaxGen)
* [SOUL](Soul)
* [Maximilian](Maximilian)
* [DaisySP](DaisySP)

## Legacy
This documentation project is a work in progress. For additional and legacy information please try the [Wayback Machine](https://web.archive.org/web/20161004214151/https://hoxtonowl.com/mediawiki/index.php/Main_Page) or the [OWL Digital Legacy](OWL_Digital/Legacy/) resources.
Expand Down

0 comments on commit 6cb6bf0

Please sign in to comment.