Main Content

createAudioPluginClass

创建一个udio plugin class that implements functionality ofSystem 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

创建一个compressorobject. CallcreateAudioPluginClassto create a System object™ plugin class that implements the functionality of the compressor object.

cmpr = compressor; createAudioPluginClass(cmpr)

创建一个n object of thereverberatorSystem object™. CallcreateAudioPluginClassto create a System object™ plugin class that implements the functionality of thereverberatorobject, 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

版本历史

Introduced in R2016a