https://github.com/grrrr/hvcc_teensy
This is a code generator making use of hvcc to translate Puredata patches to the Teensy audio framework.
https://github.com/grrrr/hvcc_teensy
embedded-systems hvcc puredata teensy
Last synced: 3 months ago
JSON representation
This is a code generator making use of hvcc to translate Puredata patches to the Teensy audio framework.
- Host: GitHub
- URL: https://github.com/grrrr/hvcc_teensy
- Owner: grrrr
- Created: 2025-04-23T10:33:33.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-26T21:48:52.000Z (5 months ago)
- Last Synced: 2025-06-17T19:49:14.415Z (4 months ago)
- Topics: embedded-systems, hvcc, puredata, teensy
- Language: C++
- Homepage:
- Size: 37.1 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Generator for Teensy audio libraries
## Installation
Needs [hvcc](https://github.com/Wasted-Audio/hvcc) for compilation.
```
python3 -m venv venv
. venv/bin/activate
pip install hvcc_teensy
```## Generation
The following translates the Puredata patch `_main.pd` into C++ files in a folder `$DST`.
The object ("context") will also be called `$NAME`:```
hvcc _main.pd -n $NAME -o $DST -G hvcc_teensy
```## Usage
The contents of the subfolder `$DST/teensy` represent library code usable in the Arduino environment.
There are (potential) standard locations for these libraries:- MacOS/Linux: `$HOME/Arduino/libraries/`
- Windows: `My Documents\Arduino\libraries`In the generated library folder will be a header file `$NAME.h` to be included in the Arduino program.
The produced code depends on the [Teensy core library](https://github.com/PaulStoffregen/cores).
If `OPENAUDIO=1` is `#define`d before including the `$NAME.h` header file, the code will depend on [OpenAudio_ArduinoLibrary](https://github.com/chipaudette/OpenAudio_ArduinoLibrary) for float_32 audio processing extensions.In the example Makefiles (e.g., sine_out), this is taken care of by respective json metadata fed to the teensy generator.