Need help with hvcc?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

277 Stars 50 Forks GNU General Public License v3.0 13 Commits 24 Opened issues


The heavy hvcc compiler for Pure Data patches.

Services available


Need anything else?

Contributors list

Heavy Compiler Collection (hvcc)

is a python-based dataflow audio programming language compiler that generates C/C++ code and a variety of specific framework wrappers.


This repo is currently unsupported and looking for a maintainer. The original authors will not respond to messages or issues. Bugs will not be fixed. Features will not be added. You are on your own. Good luck.


The original need for

arose from running against performance limitations while creating interactive music and sound products for the iPhone. Pure Data (libpd) was the only real choice for a design tool as it was embeddable and provided a high enough abstraction level that musicians or sound designers could be creative.

The goal was to leverage Pure Data as a design interface and statically interpret the resultant patches to generate a low-level, portable and optimised C/C++ program that would be structured to take advantage of modern hardware whilst still generating the same behaviour and audio output as Pure Data.

It has since then been expanded to provide further support for many different platforms and frameworks, especially targeting game audio production tools.


  • python 2.7
    • enum
      (for error reporting)
    • jinja2
      (for generator templating)
    • nose2
      (for tests, optional)


$ git clone

$ cd hvcc/

$ pip2.7 install -r requirements.txt


requires at least one argument that determines the top-level patch file to be loaded.

Generate a C/C++ program from

and place the files in

$ python2.7 ~/myProject/_main.pd

This command will generate the following directories:

  • ~/myProject/hv
    heavylang representation of the input pd patch(es)
  • ~/myProject/ir
    heavyir representation of the heavylang patch
  • ~/myProject/c
    final generated C/C++ source files (this is what you would use in your project)

Select output directory

As seen in the above command, typical output of

is split into several directories that contain the intermediate files used by the compiler itself, the final generated source files, and any additional framework specific files and projects.


parameter will specify where the output files are placed after a successful compile.

For example:

$ python2.7 ~/myProject/_main.pd -o ~/Desktop/somewhere/else/

Will place all the generated files in


Specify Patch Name


parameter can be used to easily namespace the generated code so that there are no conflicts when integrating multiple patches into the same project.

$ python2.7 ~/myProject/_main.pd -o ~/Desktop/somewhere/else/ -n mySynth



has generated internal information about the patch the
parameter can be used to specify the output files it should generate. By default it will always include
for the C/C++ source files and additional generators can specified for certain framework targets.

For example:

$ python2.7 ~/myProject/_main.pd -o ~/Desktop/somewhere/else/ -n mySynth -g unity

Will also generate a

section in the output directory contain all the build projects and source files to compile a Unity plugin.

It is also possible to pass a list of generators:

$ python2.7 ~/myProject/_main.pd -o ~/Desktop/somewhere/else/ -n mySynth -g unity wwise js

Available generator options:

  • c
  • bela
  • fabric
  • js
  • pdext
  • unity
  • vst2
  • wwise

Search Paths

will iterate through various directories when resolving patch objects and abstractions. The
argument can be used to add additional folders for
to look in.

This can be handy when using a third-party patch library for example

$ python2.7 ~/myProject/_main.pd -o ~/Desktop/somewhere/else/ -n mySynth -p "[~/Workspace/Projects/Enzien/heavylib/, ~/Desktop/myLib/]"

User Copyright

By default all the generated source files via

will have the following copyright text applied to the top of the file:

Copyright (c) 2018 Enzien Audio, Ltd.

This can be changed with


$ python2.7 ~/myProject/_main.pd -o ~/Desktop/somewhere/else/ -n mySynth --copyright "Copyright (c) Los Pollos Hermanos 2019"


Displays all the available parameters and options for hvcc.


We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.