Skip to content

Commit

Permalink
Docs update 0.9.2258
Browse files Browse the repository at this point in the history
  • Loading branch information
cesaref committed Nov 28, 2023
1 parent 2702d26 commit 6cb5088
Show file tree
Hide file tree
Showing 6 changed files with 218 additions and 564 deletions.
19 changes: 17 additions & 2 deletions docs/PatchFormat/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,14 +389,29 @@ The value should be the path to a javascript file that will be executed. This sc

# Exporting patches

### Building a native VST or AudioUnit from a patch
### Building a native CLAP from a patch

The `cmaj` tool supports code-generation of a [CLAP](https://github.com/free-audio/clap) C++ project from a Cmajor patch. The project created is a pure static C++ project that doesn't perform any JIT compilation when it runs.

To use this feature, run the command line app in `generate` mode, e.g.

```
% cmaj generate --target=clap
--output=[path to a target folder for the project]
--clapIncludePath=[path to your CLAP include folder]
MyAmazingPatch.cmajorpatch
```

It will create a folder containing some source files and a cmake project.

### Building a native JUCE VST or AudioUnit from a patch

The `cmaj` tool supports code-generation of a JUCE C++ project that can be used to natively compile a VST/AudioUnit/AAX plugin for a patch. The resulting code doesn't do any JIT compilation, it simply translates the Cmajor code to pure C++ so that it can be built statically.

To use this feature, run the command line app in `generate` mode, e.g.

```
% cmaj generate --target=plugin
% cmaj generate --target=juce
--output=[path to a target folder for the project]
--jucePath=[path to your JUCE folder]
MyAmazingPatch.cmajorpatch
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: default
title: Building a native CLAP from a patch
permalink: /docs/PatchFormat#building-a-native-clap-from-a-patch
parent: Patch GUIs
grand_parent: Patch Format
nav_order: 5
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: default
title: Building a native JUCE VST or AudioUnit from a patch
permalink: /docs/PatchFormat#building-a-native-juce-vst-or-audiounit-from-a-patch
parent: Patch GUIs
grand_parent: Patch Format
nav_order: 6
---

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ title: Building a Web Audio `AudioWorkletNode` from a patch
permalink: /docs/PatchFormat#building-a-web-audio-audioworkletnode-from-a-patch
parent: Patch GUIs
grand_parent: Patch Format
nav_order: 6
nav_order: 7
---
Loading

0 comments on commit 6cb5088

Please sign in to comment.