DIYstompboxes.com

DIY Stompboxes => Digital & DSP => Topic started by: Digital Larry on December 27, 2020, 11:50:39 AM

Title: I take back what I said about writing DSP in C++, partially
Post by: Digital Larry on December 27, 2020, 11:50:39 AM
Yes I did say something like "you'd be crazy to want to do this" but here I am doing it.  I had written VST using JUCE and Faust following some courses at www.kadenze.com.  But that was last year and I kinda forgot, so I got the book from Will Pirkle.  He also has a web site and has developed some tools and libraries that will get you going quite a ways.

www.willpirkle.com

I'm writing a dual delay algorithm.  I mapped it out using an online diagrammer first.  Then you have to write the code.  Just going through it step by step is very educational.  A week ago I had no idea what any of this was and today I have my first functional delay VST with some filters.

I still think it's too difficult and error prone but:
- it is flexible to do almost anything you could imagine
- it takes a little getting used to
- the ability to target a single code base to Mac, PC, pedal, etc. is pretty cool.
- the code generation tools are a step in the right direction
- the visual GUI editor is very handy

I did this because I want to target code for the "Elk Pi"
https://elk.audio/audio-os/
https://elk.audio/extended-dev-kit/

So you have to make a headless VST plugin first, then cross compile it under Linux to target the Elk Pi OS.

I had previously used Faust and apparently it is possible to target Faust to the Elk board as well. 

https://github.com/elk-audio/elk-faust-ccrma-workshop-2020/blob/master/elk_faust_workshop_slides.pdf

But I wanted to get a little more hands on in the code to make sure I understood the basics.