Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

generateAudioPlugin

Generate audio plugin from MATLAB class

Syntax

generateAudioPlugin className
generateAudioPlugin options className

Description

example

generateAudioPlugin className generates a VST 2 audio plugin from a MATLAB® class specified by className. See Supported Compilers for a list of compilers supported by generateAudioPlugin.

example

generateAudioPlugin options className specifies nondefault output folder, plugin name, or file type. Options can be specified in any grouping, and in any order.

Examples

collapse all

generateAudioPlugin audiopluginexample.Echo

A VST 2 plugin named Echo is saved to your current folder. The extension of your plugin depends on your operating system.

generateAudioPlugin -outdir myPluginFolder audiopluginexample.Echo

A VST 2 plugin named Echo is saved to your specified folder. The extension of your plugin depends on your operating system.

generateAudioPlugin -output awesomeEffect audiopluginexample.Echo

A VST 2 plugin named awesomeEffect is saved to your current folder. The extension of your plugin depends on your operating system.

generateAudioPlugin -output coolEffect -outdir myPluginFolder audiopluginexample.Echo

A VST 2 plugin named coolEffect is saved to your specified folder. The extension of your plugin depends on your operating system.

generateAudioPlugin -win32 audiopluginexample.Echo

A 32-bit VST 2 plugin named Echo.dll is saved to your current folder.

Input Arguments

collapse all

Options can be specified in any grouping, and in any order.

Option

Description

-outdir folder

Generates a plugin to a specific folder. By default, the generated plugin is placed in the current folder. If folder is not in the current directory, specify the exact path.

-output pluginName

Specifies the file name of the generated plugin. The appropriate extension is appended to the pluginName based on the platform on which the plugin is generated. By default, the plugin is named after the class.

-win32

Creates a 32-bit audio plugin. Valid only on win64.

Name of the plugin class to generate. The plugin class must be on the MATLAB path. It must derive from either the audioPlugin class or the audioPluginSource class.

Note

className is not the name of a file. Arguments such as 'myPlugin.m' issue an error.

Limitations

Build problems can occur when using folder names with spaces. For more information, see Enable Build Process for Folder Names with Spaces (Simulink Coder) and Why is the build process failing for a shipped model in Simulink or for a model run in Accelerator mode?.

More About

collapse all

Generated Plugin File Extension

The extension of your generated plugin depends on your operating system.

Operating System

File Extension

Windows

.dll

OSX

.vst

Introduced in R2016a

Was this topic helpful?