Skip to content

Commit

Permalink
Docs update 1.0.2661
Browse files Browse the repository at this point in the history
  • Loading branch information
cesaref committed Oct 3, 2024
1 parent 80c908f commit 00ffb38
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 14 deletions.
2 changes: 1 addition & 1 deletion assets/example_patches/808/cmaj_808.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch '808.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2660
// This file was auto-generated by the Cmajor toolkit v1.0.2661
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/CompuFart/cmaj_CompuFart.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'CompuFartSynth.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2660
// This file was auto-generated by the Cmajor toolkit v1.0.2661
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/example_patches/GuitarLSTM/cmaj_GuitarLSTM.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/example_patches/HelloWorld/cmaj_Hello_World.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'HelloWorld.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2660
// This file was auto-generated by the Cmajor toolkit v1.0.2661
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/Piano/cmaj_Piano.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'Piano.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2660
// This file was auto-generated by the Cmajor toolkit v1.0.2661
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/PirkleFilters/cmaj_vafilters.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/example_patches/Pro54/cmaj_Pro54.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'Pro54.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2660
// This file was auto-generated by the Cmajor toolkit v1.0.2661
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/Replicant/cmaj_Replicant.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/example_patches/RingMod/cmaj_Ring_Mod_Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'RingMod.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2660
// This file was auto-generated by the Cmajor toolkit v1.0.2661
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/STunedBar6/cmaj_STunedBar6.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/example_patches/SubtractOne/cmaj_SubtractOne.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/example_patches/Tremolo/cmaj_Tremolo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'Tremolo.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2660
// This file was auto-generated by the Cmajor toolkit v1.0.2661
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/ZitaReverb/cmaj_Zita_Reverb.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'ZitaReverb.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2660
// This file was auto-generated by the Cmajor toolkit v1.0.2661
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
Binary file modified cmaj_api/cmaj-compiler-wasm.wasm
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: default
title: Renaming hoisted endpoints
permalink: /docs/LanguageReference#renaming-hoisted-endpoints
parent: Input/Output Endpoint Declarations
grand_parent: Language Reference
nav_order: 5
---
25 changes: 25 additions & 0 deletions docs/LanguageGuide/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,31 @@ graph Parent
}
```

### Renaming hoisted endpoints

It is possible to rename a hoisted enpoint, and to provide a pattern to rename wildcarded hoisted endpoints, e.g:

```cpp
graph Parent
{
output child1.outL child1outL; // Rename outL as child1outL
output child1.outR child1outR; // Rename outR as child1outR;

output child2.* child2*; // Hoist child2 outL and outR renamed as child2outL and child2outR

node child1 = Child;
node child2 = Child;
}

graph Child
{
output stream float outL, outR;
}

```

When renaming a wildcarded endpoint, unique names are generated by substituting the hoisted endpoint name into the provided name, replacing the `*` character.

## Writing to Outputs

To write to any kind of output endpoint, use the left-arrow operator:
Expand Down

0 comments on commit 00ffb38

Please sign in to comment.