Interpreted Modules
About This Guide
The interpreted modules guide contains instructions for enabling a custom module to be imported into Standard and Pro versions of Audio Weaver and found in the 3rd party tab of the module browser.
Steps for enabling custom module as “interpreted”
MATLAB
Complete the following edits to the MATLAB files of the module:
Add the line "isinterpreted = 1;" to the
<modulename>_module.m file (found in the “matlab” folder of your custom module) anywhere after the “M = awe_module(…” assignment in the “matlab/” directory of your custom module.
Add spaces around equals signs for assignment functions (see lines 34-37 in Figure 1)
![](../../__attachments/2995093589/image-20231121-160235.png?inst-v=afeb83b1-861e-46b8-b4de-1c642321bb7f)
Figure 1 - see line 38
Separate out functions contained in the
<modulename>_module.m file to individual .m files.
![](../../__attachments/2995093589/image-20231121-160302.png?inst-v=afeb83b1-861e-46b8-b4de-1c642321bb7f)
![](../../__attachments/2995093589/image-20231121-160309.png?inst-v=afeb83b1-861e-46b8-b4de-1c642321bb7f)
Figure 2 - Before separating functions into unique .m files
![](../../__attachments/2995093589/image-20231121-160420.png?inst-v=afeb83b1-861e-46b8-b4de-1c642321bb7f)
![](../../__attachments/2995093589/image-20231121-160426.png?inst-v=afeb83b1-861e-46b8-b4de-1c642321bb7f)
Figure 3- After separating functions into unique .m files
NOTE: Confirm there is a corresponding .m file for any function being defined, otherwise comment out the definition. For example, this module was failing because there was no corresponding “chorus_process.m” file. Commenting out line 35 fixed the issue.
![](../../__attachments/2995093589/image-20231121-160635.png?inst-v=afeb83b1-861e-46b8-b4de-1c642321bb7f)
Figure 4 - Comment out any unused function definitions
Move any module function up to the same folder as the <modulename>_module.m
Run “make_<modulename>_pack(1)” to create the updated .c and .h files.
Building the module
Build the module, and before launching Designer, move or copy the created .dll file into the same directory containing AWE_Server.exe (typically located in <install directory>/Bin/win32-vc142-rel/)
Set Module Path in Designer
In Designer Standard, go File-> Set Module Path, then click Add Folder, select your custom module folder, and click Select Folder. Your module should now show in the modules tab and load into Designer.
![](../../__attachments/2995093589/image-20231121-160821.png?inst-v=afeb83b1-861e-46b8-b4de-1c642321bb7f)
![](../../__attachments/2995093589/image-20231121-160839.png?inst-v=afeb83b1-861e-46b8-b4de-1c642321bb7f)
Figure 5- Add Module Path
Your module should now show in the modules tab and load into Designer.
Sharing the module securely
Not all files used to create a custom module are necessary to have present when running the compiled module. The Mod<XYZ>.c and inner<XYZ>.c files may contain sensitive source code, but can be removed from the file path before sending and the custom module will still work.
![](../../__attachments/2995093589/image-20231121-160900.png?inst-v=afeb83b1-861e-46b8-b4de-1c642321bb7f)
![](../../__attachments/2995093589/image-20231121-160915.png?inst-v=afeb83b1-861e-46b8-b4de-1c642321bb7f)
Figure 6 - Removing Source and Inner c files