diff --git a/assets/example_patches/808/cmaj_808.js b/assets/example_patches/808/cmaj_808.js index 066391e2..c5338747 100644 --- a/assets/example_patches/808/cmaj_808.js +++ b/assets/example_patches/808/cmaj_808.js @@ -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 diff --git a/assets/example_patches/CompuFart/cmaj_CompuFart.js b/assets/example_patches/CompuFart/cmaj_CompuFart.js index d38622f0..a8108384 100644 --- a/assets/example_patches/CompuFart/cmaj_CompuFart.js +++ b/assets/example_patches/CompuFart/cmaj_CompuFart.js @@ -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 diff --git a/assets/example_patches/ElectricPiano/cmaj_Electric_Piano.js b/assets/example_patches/ElectricPiano/cmaj_Electric_Piano.js index d792a9ed..389745bd 100644 --- a/assets/example_patches/ElectricPiano/cmaj_Electric_Piano.js +++ b/assets/example_patches/ElectricPiano/cmaj_Electric_Piano.js @@ -3,7 +3,7 @@ // This file contains a Javascript/Webassembly/WebAudio export of the Cmajor // patch 'ElectricPiano.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 diff --git a/assets/example_patches/GuitarLSTM/cmaj_GuitarLSTM.js b/assets/example_patches/GuitarLSTM/cmaj_GuitarLSTM.js index a50cd609..a73bf401 100644 --- a/assets/example_patches/GuitarLSTM/cmaj_GuitarLSTM.js +++ b/assets/example_patches/GuitarLSTM/cmaj_GuitarLSTM.js @@ -3,7 +3,7 @@ // This file contains a Javascript/Webassembly/WebAudio export of the Cmajor // patch 'GuitarLSTM.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 diff --git a/assets/example_patches/HelloWorld/cmaj_Hello_World.js b/assets/example_patches/HelloWorld/cmaj_Hello_World.js index c21824df..8ecc9642 100644 --- a/assets/example_patches/HelloWorld/cmaj_Hello_World.js +++ b/assets/example_patches/HelloWorld/cmaj_Hello_World.js @@ -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 diff --git a/assets/example_patches/Piano/cmaj_Piano.js b/assets/example_patches/Piano/cmaj_Piano.js index 4076354c..08d3cf84 100644 --- a/assets/example_patches/Piano/cmaj_Piano.js +++ b/assets/example_patches/Piano/cmaj_Piano.js @@ -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 diff --git a/assets/example_patches/PirkleFilters/cmaj_vafilters.js b/assets/example_patches/PirkleFilters/cmaj_vafilters.js index fb6f1b95..355122dc 100644 --- a/assets/example_patches/PirkleFilters/cmaj_vafilters.js +++ b/assets/example_patches/PirkleFilters/cmaj_vafilters.js @@ -3,7 +3,7 @@ // This file contains a Javascript/Webassembly/WebAudio export of the Cmajor // patch 'vafilters.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 diff --git a/assets/example_patches/Pro54/cmaj_Pro54.js b/assets/example_patches/Pro54/cmaj_Pro54.js index ccdf8650..a06b7915 100644 --- a/assets/example_patches/Pro54/cmaj_Pro54.js +++ b/assets/example_patches/Pro54/cmaj_Pro54.js @@ -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 diff --git a/assets/example_patches/Replicant/cmaj_Replicant.js b/assets/example_patches/Replicant/cmaj_Replicant.js index c5b93fae..871cc19a 100644 --- a/assets/example_patches/Replicant/cmaj_Replicant.js +++ b/assets/example_patches/Replicant/cmaj_Replicant.js @@ -3,7 +3,7 @@ // This file contains a Javascript/Webassembly/WebAudio export of the Cmajor // patch 'replicant.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 diff --git a/assets/example_patches/RingMod/cmaj_Ring_Mod_Demo.js b/assets/example_patches/RingMod/cmaj_Ring_Mod_Demo.js index 580ec0c2..de35f0dd 100644 --- a/assets/example_patches/RingMod/cmaj_Ring_Mod_Demo.js +++ b/assets/example_patches/RingMod/cmaj_Ring_Mod_Demo.js @@ -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 diff --git a/assets/example_patches/STunedBar6/cmaj_STunedBar6.js b/assets/example_patches/STunedBar6/cmaj_STunedBar6.js index f1429cb0..3c85407a 100644 --- a/assets/example_patches/STunedBar6/cmaj_STunedBar6.js +++ b/assets/example_patches/STunedBar6/cmaj_STunedBar6.js @@ -3,7 +3,7 @@ // This file contains a Javascript/Webassembly/WebAudio export of the Cmajor // patch 'STunedBar6.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 diff --git a/assets/example_patches/SubtractOne/cmaj_SubtractOne.js b/assets/example_patches/SubtractOne/cmaj_SubtractOne.js index 57bb52de..41b4e03f 100644 --- a/assets/example_patches/SubtractOne/cmaj_SubtractOne.js +++ b/assets/example_patches/SubtractOne/cmaj_SubtractOne.js @@ -3,7 +3,7 @@ // This file contains a Javascript/Webassembly/WebAudio export of the Cmajor // patch 'SubtractOne.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 diff --git a/assets/example_patches/Tremolo/cmaj_Tremolo.js b/assets/example_patches/Tremolo/cmaj_Tremolo.js index 0a5f5a9e..dfb62791 100644 --- a/assets/example_patches/Tremolo/cmaj_Tremolo.js +++ b/assets/example_patches/Tremolo/cmaj_Tremolo.js @@ -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 diff --git a/assets/example_patches/ZitaReverb/cmaj_Zita_Reverb.js b/assets/example_patches/ZitaReverb/cmaj_Zita_Reverb.js index c4ae9534..d41a28c5 100644 --- a/assets/example_patches/ZitaReverb/cmaj_Zita_Reverb.js +++ b/assets/example_patches/ZitaReverb/cmaj_Zita_Reverb.js @@ -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 diff --git a/cmaj_api/cmaj-compiler-wasm.wasm b/cmaj_api/cmaj-compiler-wasm.wasm index a699bb92..5be93547 100755 Binary files a/cmaj_api/cmaj-compiler-wasm.wasm and b/cmaj_api/cmaj-compiler-wasm.wasm differ diff --git a/docs/LanguageGuide/inputoutput-endpoint-declarations/renaming-hoisted-endpoints.md b/docs/LanguageGuide/inputoutput-endpoint-declarations/renaming-hoisted-endpoints.md new file mode 100644 index 00000000..8f29be07 --- /dev/null +++ b/docs/LanguageGuide/inputoutput-endpoint-declarations/renaming-hoisted-endpoints.md @@ -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 +--- diff --git a/docs/LanguageGuide/main.md b/docs/LanguageGuide/main.md index 4d6da16d..8a7bd1bc 100644 --- a/docs/LanguageGuide/main.md +++ b/docs/LanguageGuide/main.md @@ -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: