- Edited
You need the board to be connected to the internet.
Start off installing the python
package manager:
apt-get install -y python-pip python-setuptools
then, (almost) straight off the hvcc
readme:
git clone https://github.com/giuliomoro/hvcc.git
cd hvcc/
pip install -r requirements.txt
Done.
Usage:
python2.7 ~/hvcc/hvcc.py /path/to/source/project/_main.pd -o /tmp/hvtmp -n bela -g c
mkdir -p ~/Bela/projects/HeavyProjectName
rsync -av ~/Bela/scripts/hvresources/render.cpp /tmp/hvtmp/c/* ~/Bela/projects/HeavyProjectName/
make -C ~/Bela PROJECT=HeavyProjectName COMPILER=gcc run
just replace /path/to/source/project/
with the path to the source project, e.g.: ~/Bela/examples/08-PureData/rubberDuckie/
and HeavyProjectName
with the name of the project you want to create containing the heavy stuff.
With this approach, you have two different folders: /path/to/source/project
that contains the _main.pd
file and
~/Bela/projects/HeavyProjectName
that contains the generated C++ code. You could for instance access the first from the IDE (to drag and drop Pd patches) and the second one through the terminal ( in fact the last command above runs it in the terminal).
At some point we are going to implement a toggle switch in the IDE to build a project as either libpd
or Heavy, but that will have to wait a bit.
EDIT: on 26/12/2018 I edited this post to clone from github.com/giuliomoro/hvcc
instead of github.com/enzienaudio/hvcc