top of page

Creating New Libraries


Some patches require you to create a new "effect library" when the effect you want to use isn't included in the Teensyduino libraries. Adding these libraries will drastically increase the choice and quality of effects you can play with.


You can download the additional Libraries used in the patches (created by myself and open source effects made by others) here - additional libraries


You'll need to move the folders within the downloadable "Wraa Libraries" folder into the "libraries" folder in your sketchbook directory. To find out where your sketchbook directory is located, open Arduino and go to File -> Preferences -> Sketchbook location.



If for some reason that doesn't work, you can create the additional libraries individually. It's the same process for each new effect and you only need to add each library once. I'll go through the process first with my own "lofi delay" library as an example, then link to all the other libraries that I've used in the patches.


  • First create a new sketch in the Arduino IDE (File -> New)

  • In the top right of the IDE you'll see a drop-down arrow under the magnifying glass, click it, and click 'New tab'.

  • In the box that appears, type "effect_lofi_delay.h", then click 'OK'. This will be the header file that will accompany the ".cpp" library file you're about to create.

  • Copy the entirety of the ".h" file into this new tab in the IDE, deleting everything that was there previously.

  • Click back to the first tab that opened in the IDE, probably named "sketch_(today'sdate)", under the upload and verify buttons.

  • Copy everything from the".cpp" file into this tab, deleting everything that was there previously.

  • Next you'll need to check what your "sketchbook directory" is, this is the location on your device that your sketches are saved to. In the IDE, go to File -> Preferences -> Sketchbook location. It's probably "...Documents/Arduino" but it's good to make sure.

  • Now save the sketch you just created (File -> Save). Make sure the sketch is being saved in your sketchbook directory. There is another folder called "libraries" in "Program Files x86" (on Windows). You need to make sure you save the sketch in the correct "libraries" folder in "Documents" - assuming that's what your sketchbook directory is - and not the Program Files x 86 one. Name the sketch "effect_lofi_delay.cpp" and save it.

  • Open File Explorer on your computer and navigate to your sketchbook directory, then open the "libraries" folder. You should now see a new folder called "effect_lofi_delay.cpp". Open this folder and check that you have two files, "effect_lofi_delay.h" and "effect_lofi_delay.cpp". If the latter appears as "effect_lofi_delay.cpp.ino", rename it by removing the ".ino". Click "OK" if a warning pops up.


Libraries to create


Follow the steps above with these other libraries. It's important to save them with the exact same name as I've called them, including capital letters etc.




vibrato.cpp <- copy from the embedded code boxes of the same names



Recent Posts
Search By Tags
Glowfly_Logo_RGB_inv.png
bottom of page