Main Content

createAudioPluginClass

Create audio plugin class that implements functionality of System object

Description

example

createAudioPluginClass(obj) creates a System object™ plugin that implements the functionality of the Audio Toolbox™ System object, obj. The name of the created class is the System object variable name, obj, followed by 'Plugin', for example, objPlugin.

If the object is locked, the number of input and output channels of the plugin is equal to the number of channels of the object. Otherwise, the number of channels is equal to 2.

example

createAudioPluginClass(obj,pluginName) specifies the name of your created System object plugin class.

Example: createAudioPluginClass(obj,'coolEffect') creates a System object plugin with class name 'coolEffect'.

Examples

collapse all

Create a compressor object. Call createAudioPluginClass to create a System object™ plugin class that implements the functionality of the compressor object.

cmpr = compressor;
createAudioPluginClass(cmpr)

Create an object of the reverberator System object™. Call createAudioPluginClass to create a System object™ plugin class that implements the functionality of the reverberator object, specifying the plugin class name as the second argument.

reverb = reverberator;
createAudioPluginClass(reverb,'Garage');

Input Arguments

collapse all

System object from which to create a plugin class.

Name of created plugin class, specified as a character vector with fewer than 64 elements.

Data Types: char

Version History

Introduced in R2016a