main Content

限制器

Dynamic range limiter

  • 图书馆:
  • 音频工具箱/ Dynamic Range Control

  • 限制器块GydF4y2Ba

Description

限制器块在每个输入通道上独立地执行动态范围。动态范围限制抑制跨给定阈值的大声声音的音量。该块使用指定的攻击和释放时间来实现平滑的应用增益曲线。

Ports

Input

经验and all

  • matrix input –– Each column of the input is treated as an independent channel.

  • 1-D vector input –– The input is treated as a single channel.

this port is unnamed unless you specify additional input ports.

数据类型:单身的|double

依赖性

to enable this port, selectSpecify from input portfor thethreshold (dB)parameter.

数据类型:单身的|double

依赖性

to enable this port, selectSpecify from input portfor theknee width (dB)parameter.

数据类型:单身的|double

依赖性

to enable this port, selectSpecify from input portfor the一个ttack time (s)parameter.

数据类型:单身的|double

依赖性

to enable this port, selectSpecify from input portfor the发布时间parameter.

数据类型:单身的|double

输出

经验and all

限制器块输出一个与输入信号相同的数据类型的信号。输出的大小取决于输入的大小:

  • 矩阵输入 - 块输出矩阵与输入信号相同的大小和数据类型。

  • 1-D vector input –– The block outputs ann-by-1 matrix (column vector), wherenis the number of elements in the 1-D vector.

此端口未命名,直到您选择输出Gain (dB)parameter.

数据类型:单身的|double

依赖性

to enable this port, select the输出Gain (dB)parameter.

数据类型:单身的|double

参数

经验and all

如果将参数列为可调,则可以在模拟过程中更改其值。 main Tab

Operation threshold是将增益应用于输入信号的水平。

to specifythreshold (dB)从输入端口中选择Specify from input port对于参数。

可调:是的

对于软膝盖特征,过渡区域由关系定义

y = X - (( X - t + w 2 2 (( 2 × w

for the range (( 2 × | X - t | w ,,,,在哪里
  • yis the output level in dB.

  • Xis the input level in dB.

  • tis the threshold in dB.

  • wis the knee width in dB.

to specifyknee width (dB)从输入端口中选择Specify from input port对于参数。

可调:是的

这plot is updated automatically when parameters of the限制器块更改。

可调:是的

一个ttack time当输入超过阈值时,限制器增益所需的时间从最终值的10%上升到其最终值的90%。这一个ttack time (s)参数平滑应用的增益曲线。

to specify一个ttack time (s)从输入端口中选择Specify from input port对于参数。

可调:是的

推出日期is the time the limiter gain takes to drop from 90% to 10% of its final value when the input goes below the threshold. The发布时间参数平滑应用的增益曲线。

to specify发布时间从输入端口中选择Specify from input port对于参数。

可调:是的

  • Property–– Make-up gain is set to the value specified by the化妆增益(DB)parameter.

  • 一个uto–– Make-up gain is applied at the output of the限制器block such that a steady-state 0 dB input has a 0 dB output.

可调:no

化妆收益弥补限制期间损失的收益。它是在输出的限制器堵塞。

可调:是的

依赖性

to enable this parameter, set the化妆收益mode参数为Property

当您选择此参数时,该块从输入信号继承了其采样率。清除此参数时,请在Input sample rate (Hz)parameter.

可调:no

可调:是的

依赖性

要启用此参数,请清除从输入继承样本率parameter.

高级选项卡

选择此参数时,一个附加的输出端口,G,添加到块中。这Gport outputs the gain applied on each input channel in dB.

可调:no

选择此参数时,一个附加的输入端口sc被添加到块中。这sc端口启用输入信号的动态范围限制X使用单独的Sidechain信号。

数据类型和(帧)长度输入到scport must be the same as the input to theXport.

这number of channels of the sidechain input must be equal to the number of channels ofXor be equal to one.

  • Sidechain频道计数等于1- 计算的增益,G,,,,based on this channel is applied to all channels ofX

  • Sidechain channel count is equal to channel count ofX- 计算的增益,G,对于每个侧chain通道都应用于相应的通道X

可调:no

  • Interpreted execution–– Simulate model using the MATLAB®interpreter. This option shortens startup time and has a simulation speed comparable toCode generation。In this mode, you can debug the source code of the block.

  • Code generation- 使用生成的C代码模拟模型。您第一次运行模拟,Simulink金宝app®为块生成C代码。只要模型不更改,C代码将重复使用以进行后续模拟。此选项需要额外的启动时间,但是后续模拟的速度可与Interpreted execution

可调:no

Block Characteristics

数据类型

double|单身的

Direct Feedthrough

no

multidimensional Signals

no

可变大小信号

yes

Zero-Crossing Detection

no

一个lgorithms

限制器块过程按框架和元素进行信号。

  1. n- 点信号,X[[n],转换为分贝:

    X D b [[ n 这是给予的 = 20 × log 10 | X [[ n 这是给予的 |

  2. XD b[[n这是给予的通过增益计算机。增益计算机使用动态范围限制器的静态特性属性来超过阈值的砖砌增益。

    如果您指定了软膝盖,则增益计算机具有以下静态特征:

    X sc (( X D b = { X D b X D b < (( t - w 2 X D b - (( X D b - t + w 2 2 2 w (( t - w 2 X D b (( t + w 2 t X D b > (( t + w 2 ,,,,

    在哪里tis the threshold andwis the knee width.

    如果您指定了硬膝盖,则增益计算机具有以下静态特征:

    X sc (( X D b = { X D b X D b < t t X D b t

  3. 计算的增益,GC[[n这是给予的,,,,is calculated as

    G C [[ n 这是给予的 = X sc [[ n 这是给予的 - X D b [[ n 这是给予的

  4. GC[[n这是给予的is smoothed using specified attack and release time parameters:

    G s [[ n 这是给予的 = { α 一个 G s [[ n - 1 这是给予的 + (( 1 - α 一个 G C [[ n 这是给予的 ,,,, G C [[ n 这是给予的 G s [[ n - 1 这是给予的 α r G s [[ n - 1 这是给予的 + (( 1 - α r G C [[ n 这是给予的 ,,,, G C [[ n 这是给予的 > G s [[ n - 1 这是给予的

    攻击时间系数,α一个,,,,is calculated as

    α 一个 = 经验 (( - log (( 9 F s × t 一个

    这release time coefficient,αr,,,,is calculated as

    α r = 经验 (( - log (( 9 F s × t r

    t一个is the attack time period, specified by the一个ttack time (s)parameter.tr是发布时间段,由发布时间parameter.Fsis the input sampling rate, specified by the从输入继承样本率orInput sample rate (Hz)parameter.

  5. If the化妆增益(DB)parameter is set to一个uto,化妆增益计算为0 dB输入的计算增益的负数:

    m = - X sc (( X D b = 0

    Given a steady-state input of 0 dB, this configuration achieves a steady-state output of 0 dB. The make-up gain is determined by thethreshold (dB)andknee width (dB)参数。它不取决于输入信号。

  6. 化妆收益,m,,,,is added to the smoothed gain,Gs[[n这是给予的

    G m [[ n 这是给予的 = G s [[ n 这是给予的 + m

  7. DB中计算出的增益Gm[[n这是给予的,被翻译成线性域:

    G [[ n 这是给予的 = 10 (( G m [[ n 这是给予的 20

  8. 动态范围限制器的输出作为

    y [[ n 这是给予的 = X [[ n 这是给予的 × G [[ n 这是给予的

    references

    [[1这是给予的Giannoulis, Dimitrios, Michael Massberg, and Joshua D. Reiss. "Digital Dynamic Range Compressor Design –– A Tutorial And Analysis."音频工程学会杂志。Vol. 60, Issue 6, 2012, pp. 399–408.

    扩展功能

    C/C++ Code Generation
    使用Simulink®Coder™生成C和C ++代码。金宝app

    版本历史记录

    在R2016a中引入