audio plugin example gallery -凯发k8网页登录

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

name: audiopluginexample.chorus

type: basic plugin

description: 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: ,

related example: delay-based audio effects

| |

echo

name: audiopluginexample.echo

type: basic plugin

description: implements an audio echo effect using two delay lines. the plugin user tunes the delay taps in seconds, the gain of the delay taps, and the output dry/wet mix.

design patterns: dependent properties, wet/dry mix, sample rate, mex function called from a property, delay line with feedback

related example: delay-based audio effects

| |

flanger

name: audiopluginexample.flanger

type: basic plugin

description: implements an audio flanging effect using a modulated delay line. the plugin user tunes the delay tap in seconds, the amplitude and frequency of the delay line modulation, and the output dry/wet mix.

design patterns: dependent properties, wet/dry mix, mex function called from a property, delay line with feedback

features used:

related example: delay-based audio effects

| |

lfo filter

name: audiopluginexample.lfofilter

type: basic plugin

description: 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: , , dsp.biquadfilter

| |

phaser

name: audiopluginexample.phaser

type: basic plugin

description: implements an audio phaser effect.

design patterns: plugin composition

features used: , audiopluginexample.multinotchfilter

related example:

| |

pitch shifter

name: audiopluginexample.pitchshifter

type: system object™ plugin

description: implements a pitch-shifting algorithm using cross-fading between two channels with time-varying delays and gains.

design patterns: integer parameter mapping, discretestate, multiple outputs for matlab® validation and analysis

features used:

related example:

| |

strobe

name: audiopluginexample.strobe

type: basic plugin

description: implements an audio strobing effect. tunable parameters of the plugin include the strobe period, the strobe fill, a relative level threshold for implementing the effect, and the ability to synchronize the strobe period with the audio signal dynamics.

design patterns: logical parameters, enum helper class for enum parameter mapping

features used:

| |

filters

bandpass iir filter

name: audiopluginexample.bandpassiirfilter

type: basic plugin

description: implements a bandpass filter using a second-order iir filter. the plugin parameters are the center frequency and q-factor.

design patterns: log parameter mapping, dependent properties, efficient management of tunable properties (in ), visualization while processing (in secondorderiirfilter), inherit from abstract base class

features used:

related example:

| |

fast convolver

name: audiopluginexample.fastconvolver

type: system object plugin

description: 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: no tunable parameters, latency reporting

features used: ,

related example: measure impulse response of an audio system

| |

highpass iir filter

name: audiopluginexample.highpassiirfilter

type: basic plugin

description: implements a highpass filter using a second-order iir filter. the plugin parameters are the cutoff frequency and q-factor.

design patterns: log parameter mapping, dependent properties, efficient management of tunable properties (in ), visualization while processing (in secondorderiirfilter), inherit from abstract base class

features used:

related example:

| |

lowpass iir filter

name: audiopluginexample.lowpassiirfilter

type: basic plugin

description: implements a lowpass filter using a second-order iir filter. the plugin parameters are the cutoff frequency and q-factor.

design patterns: log parameter mapping, dependent properties, efficient management of tunable properties (in ), filter visualization while processing (in secondorderiirfilter), inherit from abstract base class

features used:

related example:

| |

multi-notch iir filter

name: audiopluginexample.multinotchfilter

type: system object plugin

description: implements a notching iir filter with tunable notch frequencies and quality factor.

features used:

related example:

| |

shelving equalizer

name: audiopluginexample.shelvingequalizer

type: system object plugin

description: implements a shelving equalizer with tunable cutoffs, gains, and slopes.

design patterns: log parameter mapping, filter visualization

features used: , dsp.biquadfilter

related example:

| |

variable slope bandpass filter

name: audiopluginexample.varslopebandpassfilter

type: system object plugin

description: implements a variable slope iir bandpass filter with tunable cutoff frequencies and slopes.

design patterns: string enum parameter mapping, log parameter mapping, filter visualization

features used: , dsp.biquadfilter

related example:

| |

gain control

bass enhancer

name: audiopluginexample.bassenhancer

type: system object plugin

description: 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: , , audiopluginexample.varslopebandpassfilter,

related example:

| |

volume controller

name: audiopluginexample.volumecontroller

type: basic plugin

description: control the volume of an audio signal as well as the left/right balance in stereo signals. additionally, use the transition time parameter to specify the delay to apply the changes to the signal.

design patterns: power parameter mapping, multiple outputs for matlab validation and analysis

features used:

| |

spatial audio

ambisonic encoder

name: audiopluginexample.ambiencoderplugin

type: basic plugin

description: specify the microphone locations by tuning the azimuth and elevation. encode streaming audio into ambisonics using the process function.

design patterns: multi-channel, variable number of channels, ambisonic encoding

features used: audioexample.ambisonics.ambiencodemtrx, audioexample.ambisonics.ambiencode

related example: ambisonic plugin generation

| |

ambisonic decoder

name: audiopluginexample.ambidecoderplugin

type: basic plugin

description: specify desired virtual speaker locations by tuning the azimuth and elevation. decode ambisonic-encoded audio using the process function.

design patterns: multi-channel, variable number of channels, ambisonic decoding

features used: audioexample.ambisonics.ambidecodemtrx, audioexample.ambisonics.ambidecode

related example: ambisonic plugin generation

| |

communicate between matlab and daw

parametric equalizer with udp

name: audiopluginexample.parametricequalizerwithudp

type: system object plugin

description: implements a three-band parametric equalizer with tunable center frequencies, q-factors, and gains. a udp sender enables the generated vst plugin to communicate with matlab. the digital audio workstation and matlab can then exchange information in real time. this plugin uses udp to send the equalizer filter coefficients back to matlab for visualization purposes. you can alter this plugin to send the input or output audio instead of, or in addition to, the filter coefficients.

design patterns: log parameter mapping, filter visualization

features used: ,

related example:

| |

udp sender

name: audiopluginexample.udpsender

type: basic plugin

description: sends live stereo audio from a digital audio workstation (daw) to matlab using udp.

design patterns: no tunable parameters

features used:

related example:

|

music information retrieval

beat detector

name: audiopluginexample.beatdetector

type: basic plugin

description: 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 the getclicktrack method.

design patterns: plugin composition, visualization, matlab-only features

features used: , ,

| |

speech processing

spectral subtractor

name: audiopluginexample.spectralsubtractor

type: basic plugin

description: implements basic spectral subtraction. this plugin performs frequency-domain processing. tunable parameters of the plugin include analysis window type, noise level estimation, analysis window time, and analysis frame overlap.

design patterns: overlap and add (ola) reconstruction, analysis and synthesis, enum helper class for parameter mapping, windowing

features used: , , ,

| |

speech pitch detector

name: audiopluginexample.speechpitchdetector

type: basic plugin

description: 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: , , , , , , , , , ,

| |

deep learning

denoiser

name: audiopluginexample.denoiser

type: deep learning plugin

description: 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
unzip('https://ssd.mathworks.com/supportfiles/audio/speechdenoising.zip',pwd)
% save relevant network in mat-file
s = load('speechdenoising/denoisenet.mat');
denoisenetfullyconnected = s.denoisenetfullyconnected;
save('denoisepluginnet.mat','denoisenetfullyconnected')

design patterns: pretrained deep learning neural network, sample rate conversion, audio plugin coder configuration

features used: , (matlab coder), , , , , , , , (deep learning toolbox)

related example:

| |

see also

| | | |

related topics

网站地图