Skip to main content

A post-processor for faust giving more flexibility at source generation

Project description

faustdoctor

NOTE: This is a fork of faustpp, which is not endorsed by upstream (since its maintainer is MIA). It is also not backward compatible with the upstream version, since it features breaking changes to the architecture templates, the template context and the command line interface.


A post-processor for FAUST giving more flexibility at source generation.

This is a source transformation tool based on the FAUST compiler.

It permits to arrange the way how faust source is generated with greater flexibility.

Using a template language known as Jinja2, it is allowed to manipulate metadata with iteration and conditional constructs, to easily generate custom code tailored for the job. Custom metadata can be handled by the template mechanism.

Usage

For detailed information, refer to the documentation.

An example is provided in the architectures directory. It is usable and illustrates many features.

The example is able to create a custom processor class. It has these abilities:

  • Can generate a separate (C/C++) header and implementation file.
  • Provides direct introspection of the characteristics of the controls.
  • Can parse standard and custom UI metadata, for example:
    • [symbol:]
    • [trigger]
    • [boolean]
    • [integer]
  • Provides named getters and setters for the controls.
  • Provides a simplified signature for the processing routine.

The example can be used to generate any file. Pass options to the Faust compiler using -X. In this particular example, you should pass a definition of Identifier in order to name the result class, which is done with the option -D.

faustdr -X-vec -DIdentifier=MyEffect -a generic.cpp effect.dsp > effect.cpp
faustdr -X-vec -DIdentifier=MyEffect -a generic.hpp effect.dsp > effect.hpp

Installation

Assuming you have Python installed (>= 3.9) and pipx installed, run this command:

pipx install faustdoctor

Authors

This software is based on faustpp, which was created by Jean Pierre Cimalando. The project was forked, renamed to faustdoctor, updated, improved and extended by Christopher Arndt, who now maintains this version.

License

This software is released under the Boost Software License 1.0. Please see the LICENSE.md file for details.

Release notes

See the CHANGELOG.md file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faustdoctor-0.2.0.tar.gz (53.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

faustdoctor-0.2.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file faustdoctor-0.2.0.tar.gz.

File metadata

  • Download URL: faustdoctor-0.2.0.tar.gz
  • Upload date:
  • Size: 53.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6

File hashes

Hashes for faustdoctor-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7b42b08051dc7f76fb831c9a941d13bb044dc51394c02c278141451950e32e82
MD5 22369a42d71fd953701033d1e61e9e8a
BLAKE2b-256 9c5870e9614fe6f3d91693f14284c8c6602fc636c97297b842c6d55d04588a70

See more details on using hashes here.

File details

Details for the file faustdoctor-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: faustdoctor-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6

File hashes

Hashes for faustdoctor-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2508ee1a6fccbc16e857adb0ec22aab0430c64a04a17adb44500352c64da9856
MD5 7caf19b0d0b8e99437ff9f41a43451be
BLAKE2b-256 ba9de7239589fb7a85a391ee11616b1815e3b6973075392b58e1ee8ea3d84cf5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page