Main Content

Audio Plugin Example Gallery

Use these Audio Toolbox™ plugin examples as building blocks in larger systems, as models for design patterns, or as benchmarks for comparison. Search the plugin descriptions to find an example that meets your needs.

Audio Effects

Chorus

姓名:audiopluginexample.Chorus

Type:基本插件

描述:Adds an audio chorus effect. The chorus effect is implemented by modulating two delay lines.

Design Patterns:dependent properties, wet/dry mix, sample rate

Features Used:dsp。VariableFractionalDelay,,,,音频刺激器

相关示例:Delay-Based Audio Effects

Inspect Code|Run Plugin|Generate Plugin

回声

姓名:audiopluginexample.Echo

Type:基本插件

描述:使用两条延迟线实现音频回声效果。插件用户在几秒钟内调整延迟水龙头,延迟水龙头的增益和输出干/湿混合物。

Design Patterns:dependent properties, wet/dry mix, sample rate, MEX function called from a property, delay line with feedback

相关示例:Delay-Based Audio Effects

Inspect Code|Run Plugin|Generate Plugin

旗手

姓名:Audiopluginexample.Franger

Type:基本插件

描述:使用调制延迟线实现音频法兰效果。插件用户在几秒钟内调整延迟水龙头,延迟线调制的幅度和频率以及输出干/湿混合物。

Design Patterns:dependent properties, wet/dry mix, MEX function called from a property, delay line with feedback

Features Used:dsp。VariableFractionalDelay

相关示例:Delay-Based Audio Effects

Inspect Code|Run Plugin|Generate Plugin

LFO Filter

姓名:Audiopluginexample.lfoffilter

Type:基本插件

描述:Implements a low frequency oscillator (LFO) controlled lowpass filter. The LFO controls the cutoff frequency of the lowpass filter. The plugin user tunes the type of control signal, and its frequency, amplitude, and DC offset. The plugin user also tunes the Q factor of the lowpass filter.

Design Patterns:enum helper class for enum parameter mapping, log parameter mapping, real-time visualization, waveform design with UI

Features Used:音频刺激器,,,,wavetableSynthesizer,,,,DSP.BiquadFilter

Inspect Code|Run Plugin|Generate Plugin

移动器

姓名:audiopluginexample.Phaser

Type:基本插件

描述:Implements an audio phaser effect.

Design Patterns:plugin composition

Features Used:音频刺激器multibandParametricEQ,,,,Audiopluginexample.MultinotchFilter

相关示例:使用多播放参数均衡器的音频移相器

Inspect Code|Run Plugin|Generate Plugin

Pitch Shifter

姓名:audiopluginexample.PitchShifter

Type:System object™ plugin

描述:使用两个通道之间的交叉衰减,随着时间变化的延迟和收益,实现了变动算法。

Design Patterns:integer parameter mapping,DiscreteState,,,,multiple outputs for MATLAB®validation and analysis

Features Used:dsp。VariableFractionalDelay

相关示例:Delay-Based Pitch Shifter

Inspect Code|Run Plugin|Generate Plugin

Strobe

姓名:audiopluginexample.Strobe

Type:基本插件

描述:实现音频闪光灯。该插件的可调参数包括频率周期,频闪填充,实现效果的相对级别阈值以及将频率与音频信号动力学同步的能力。

Design Patterns:逻辑参数,枚举辅助类用于枚举参数映射

Features Used:音频刺激器

Inspect Code|Run Plugin|Generate Plugin

Filters

Bandpass IIR Filter

姓名:audiopluginexample.BandpassIIRFilter

Type:基本插件

描述:实现了一个使用二阶带通滤波器IIR filter. The plugin parameters are the center frequency and Q-factor.

Design Patterns:日志参数映射,依赖性属性,可调属性的有效管理(inSecondOrderIIRFilter),,,,visualization while processing (inSecondOrderIIRFilter),从抽象基类继承

Features Used:filter

相关示例:Tunable Filtering and Visualization Using Audio Plugins

Inspect Code|Run Plugin|Generate Plugin

快速的探测器

姓名:audiopluginexample.FastConvolver

Type:系统对象插件

描述:Convolves input with long impulse responses without adding long latency. Time-domain convolution of an input frame with a long impulse response adds latency equal to the length of the impulse response. The algorithm in this plugin uses frequency-domain partitioned convolution to reduce the latency. Being efficient, this algorithm also allows for real-time convolution with larger impulse responses.

Design Patterns:没有可调参数,延迟报告

Features Used:dsp。FrequencyDomainFIRFilter,,,,年代etLatencyInSamples

相关示例:测量音频系统的冲动响应

Inspect Code|Run Plugin|Generate Plugin

Highpass IIR Filter

姓名:audiopluginexample.HighpassIIRFilter

Type:基本插件

描述:使用二阶IIR过滤器实现高通滤波器。插件参数是截止频率和Q因子。

Design Patterns:日志参数映射,Dependent属性,可调属性的有效管理(在SecondOrderIIRFilter),,,,visualization while processing (inSecondOrderIIRFilter),从抽象基类继承

Features Used:filter

相关示例:Tunable Filtering and Visualization Using Audio Plugins

Inspect Code|Run Plugin|Generate Plugin

Lowpass IIR Filter

姓名:Audiopluginexample.lowpassiirfilter

Type:基本插件

描述:使用二阶IIR过滤器实现低通滤波器。插件参数是截止频率和Q因子。

Design Patterns:日志参数映射,Dependent属性,可调属性的有效管理(在SecondOrderIIRFilter),,,,filter visualization while processing (inSecondOrderIIRFilter),从抽象基类继承

Features Used:filter

相关示例:Tunable Filtering and Visualization Using Audio Plugins

Inspect Code|Run Plugin|Generate Plugin

Multi-Notch IIR Filter

姓名:Audiopluginexample.MultinotchFilter

Type:系统对象插件

描述:用可调的凹口频率和质量因子实现凹口IIR过滤器。

Features Used:multibandParametricEQ

相关示例:使用多播放参数均衡器的音频移相器

Inspect Code|Run Plugin|Generate Plugin

Shelving Equalizer

姓名:Audiopluginexample.shelvingequalizer

Type:系统对象插件

描述:用可调的截止,增益和斜坡实现搁架均衡器。

Design Patterns:日志参数映射,filter visualization

Features Used:designShelvingEQ,,,,DSP.BiquadFilter

相关示例:Tunable Filtering and Visualization Using Audio Plugins

Inspect Code|Run Plugin|Generate Plugin

可变坡度带通滤波器

姓名:audiopluginexample.VarSlopeBandpassFilter

Type:系统对象插件

描述:Implements a variable slope IIR bandpass filter with tunable cutoff frequencies and slopes.

Design Patterns:年代tring enum parameter mapping, log parameter mapping, filter visualization

Features Used:designVarSlopeFilter,,,,DSP.BiquadFilter

相关示例:Tunable Filtering and Visualization Using Audio Plugins

Inspect Code|Run Plugin|Generate Plugin

Gain Control

Bass Enhancer

姓名:audiopluginexample.BassEnhancer

Type:系统对象插件

描述:Implements a psychoacoustic bass enhancement algorithm. The plugin parameters are the upper cutoff frequency of the bandpass filter and the gain applied at the output of the bandpass filter.

Design Patterns:plugin composition

Features Used:crossoverFilter,,,,AUDIOEXAMPLE.FULLWAVEINTEMERATOR,,,,audiopluginexample.VarSlopeBandpassFilter,,,,dsp.Firfilter

相关示例:Psychoacoustic Bass Enhancement for Band-Limited Signals

Inspect Code|Run Plugin|Generate Plugin

Damped Volume Controller

姓名:audiopluginexample.DampedVolumeController

Type:基本插件

描述:潮湿音频信号的音量控制。该插件具有两个参数:应用于输入音频信号的增益,以及以秒为单位的增益应用程序的过渡延迟。

Design Patterns:电源参数映射,用于MATLAB验证和分析的多个输出

Features Used:AudioExample.DampedParameter

Inspect Code|Run Plugin|Generate Plugin

Spatial Audio

Ambisonic Encoder

姓名:AudioplugineXample.AmbiOncoderPlugin

Type:基本插件

描述:通过调整方位角和高程来指定麦克风位置。使用过程函数将流音频编码为Ambisonics。

Design Patterns:Multi-channel, variable number of channels, ambisonic encoding

Features Used:AUDIOEXAMPLE.AMBISONICS.AMBIENCODEmtrx,,,,AUDIOEXAMPLE.AMBISONICS.AMBIENCODE

相关示例:Ambisonic插件生成

Inspect Code|Run Plugin|Generate Plugin

Ambisonic解码器

姓名:audiopluginexample.AmbiDecoderPlugin

Type:基本插件

描述:通过调整方位角和高程来指定所需的虚拟扬声器位置。使用过程函数解码Ambisonic编码的音频。

Design Patterns:Multi-channel, variable number of channels, ambisonic decoding

Features Used:audioexample.ambisonics.ambidecodemtrx,,,,audioexample.ambisonics.ambidecode

相关示例:Ambisonic插件生成

Inspect Code|Run Plugin|Generate Plugin

Communicate BetweenMATLABand DAW

带UDP的参数均衡器

姓名:AudioplugineXample.ParametricequalizerWithUDP

Type:系统对象插件

描述:通过可调中心频率,Q因子和增益实现三波段参数均衡器。UDP发件人可以使生成的VST插件与MATLAB通信。然后,数字音频工作站和MATLAB可以实时交换信息。该插件使用UDP将均衡器过滤器系数发送回MATLAB以进行可视化。您可以更改此插件以发送输入或输出音频,而不是或除了滤波器系数。

Design Patterns:日志参数映射,filter visualization

Features Used:designParamEQ,,,,dsp.udpsender

相关示例:Communicate Between a DAW and MATLAB Using UDP

Inspect Code|Run Plugin|Generate Plugin

UDP发件人

姓名:Audiopluginexample.udpsender

Type:基本插件

描述:使用UDP将实时立体声音频从数字音频工作站(DAW)发送到MATLAB。

Design Patterns:没有可调参数

Features Used:dsp.udpsender

相关示例:Communicate Between a DAW and MATLAB Using UDP

Inspect Code|Generate Plugin

音乐信息检索

Beat Detector

姓名:audiopluginexample.BeatDetector

Type:基本插件

描述:Estimates and displays a beat per minute (BPM) decision using the specified onset detection method. If you interact with the plugin at the command line, you can get a click track corresponding to the onsets detected using thegetClickTrack方法。

Design Patterns:plugin composition, visualization, MATLAB-only features

Features Used:dsp。AsyncBuffer,,,,Audiopluginexample.private.onetdetector,,,,Audiopluginexample.private.meterui

Inspect Code|Run Plugin|Generate Plugin

Speech Processing

Spectral Subtractor

姓名:audiopluginexample.SpectralSubtractor

Type:基本插件

描述:实施基本的光谱减法。该插件执行频域处理。插件的可调参数包括分析窗口类型,噪声级别估计,分析窗口时间和分析框架重叠。

Design Patterns:overlap and add (OLA) reconstruction, analysis and synthesis, enum helper class for parameter mapping, windowing

Features Used:fft,,,,ifft,,,,dsp。AsyncBuffer,,,,audiopluginexample.private.AnalysisAndSynthesisBuffer

Inspect Code|Run Plugin|Generate Plugin

语音音高探测器

姓名:audiopluginexample.SpeechPitchDetector

Type:基本插件

描述:Calculates pitch using a basic autocorrelation algorithm, spectral periodicity algorithm, or both. This plugin is for analysis purposes: It provides a direct feedthrough of the signal. To visualize the pitch decision, use the visualize method while processing speech data.

Design Patterns:plugin composition, visualization, MATLAB-only features

Features Used:multibandParametricEQ,,,,dsp。AsyncBuffer,,,,dsp。FIRInterpolator,,,,timescope,,,,DesignMultirateFir,,,,fft,,,,ifft,,,,xcorr,,,,audiopluginexample.private.VarSlopeBandpassFilter,,,,audiopluginexample.private.AnalysisAndSynthesisBuffer,,,,Audiopluginexample.private.meterui

Inspect Code|Run Plugin|Generate Plugin

Deep Learning

Denoiser

姓名:audiopluginexample.Denoiser

Type:Deep learning plugin

描述:Denoises speech using a deep neural network. This plugin includes an optional configurable noise gate at the output of the network. To generate and use the plugin, download the pretrained deep neural network and save it to a MAT-file using this code:

% Download pretrained network to current folder解压缩('https://ssd.mathworks.com/supportfiles/audio/SpeechDenoising.zip',PWD)% Save relevant network in MAT-file年代= load('SpeechDenoising/denoisenet.mat');denoisenetconnected = s.denoisenetconconnected;节省('denoisePluginNet.mat',,,,'denoiseNetFullyConnected'

Design Patterns:pretrained deep learning neural network, sample rate conversion, audio plugin coder configuration

Features Used:AudiopluginConfig,,,,coder.loaddeeplearningnetwork(MATLAB Coder),,,,dsp。AsyncBuffer,,,,dsp.firdecemator,,,,dsp。FIRInterpolator,,,,dsp.firrateconverter,,,,dsp.istft,,,,dsp。STFT,,,,noiseGate,,,,predict(Deep Learning Toolbox)

相关示例:Denoise Speech Using Deep Learning Networks

Inspect Code|Run Plugin|Generate Plugin

也可以看看

||||

Related Topics