Pure Data to Teensy C++ Code

I'm wondering if anyone on the forum has experience converting Pure Data code to C++. I'm not a Pure Data user, but have been using MaxMSP, which was also created by Miller Puckette, and is quite similar to pd, though now far more extensive (MaxMSP and its company Cycling 74, which some years back was sold to Ableton).

PD itself runs on most modern platforms and OSs (Mac, Linux, Windows, ...) and there are gobs of PD patches available on the web. And there is a compiler called Heavy Compiler Collection (hvcc) that can convert PD "patches" to C++ code. There are apparently a number of versions out there, some of which require Python, others Visual Studio, and a host of other installed components for support; most promising is an online version (https://www.rebeltech.org/2018/09/12/compile-pure-data-patches-with-free-online-heavy-compiler/) which avoids such requirements and dependencies. MaxMSP itself now includes a utility "gen~", a $200 paid extra, which supports multiple output formats including C++, but unfortunately requires the use of XCode, with its steep learning curve.

I'm presently designing a new Teensy 4.1 audio device (much more on this to come) with an open architecture, and have left an open slot for a 3rd efx processor (currently has stereo reverb and ping-pong delay). There are a number of PD patches I've come across that would be an excellent choice (for example this granular processor:
). And there are likely scores of pd patches that would also be great on Teensy 4.1.

Admittedly, there are issues to be worked out, as the C++ produced by hvcc will not be Teensy-specific. But I'm assuming these can be dealt with and adapted to the Teensy Audio environment. I'd very much appreciate any comments or suggestions from forum users who have experience in this regard, especially anyone who has actually converted a PD patch for use on Teensy.
 
Back
Top