Rearrange compressor parameter order
This commit is contained in:
parent
4f8d5160de
commit
4060986b28
|
@ -124,14 +124,13 @@ pub struct CompressorParams {
|
||||||
pub threshold_offset_db: FloatParam,
|
pub threshold_offset_db: FloatParam,
|
||||||
/// The compression ratio. At 1.0 the compressor is disengaged.
|
/// The compression ratio. At 1.0 the compressor is disengaged.
|
||||||
pub ratio: FloatParam,
|
pub ratio: FloatParam,
|
||||||
/// The compression knee width, in decibels.
|
|
||||||
pub knee_width_db: FloatParam,
|
|
||||||
|
|
||||||
/// A `[0, 1]` scaling factor that causes the compressors for the higher registers to have lower
|
/// A `[0, 1]` scaling factor that causes the compressors for the higher registers to have lower
|
||||||
/// ratios than the compressors for the lower registers. The scaling is applied logarithmically
|
/// ratios than the compressors for the lower registers. The scaling is applied logarithmically
|
||||||
/// rather than linearly over the compressors. If this is set to 1.0, then the ratios will be
|
/// rather than linearly over the compressors. If this is set to 1.0, then the ratios will be
|
||||||
/// the same for every compressor.
|
/// the same for every compressor.
|
||||||
pub high_freq_ratio_rolloff: FloatParam,
|
pub high_freq_ratio_rolloff: FloatParam,
|
||||||
|
/// The compression knee width, in decibels.
|
||||||
|
pub knee_width_db: FloatParam,
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl Params for CompressorParams {
|
unsafe impl Params for CompressorParams {
|
||||||
|
@ -146,13 +145,13 @@ unsafe impl Params for CompressorParams {
|
||||||
),
|
),
|
||||||
(format!("{prefix}ratio"), self.ratio.as_ptr(), String::new()),
|
(format!("{prefix}ratio"), self.ratio.as_ptr(), String::new()),
|
||||||
(
|
(
|
||||||
format!("{prefix}knee"),
|
format!("{prefix}high_freq_rolloff"),
|
||||||
self.knee_width_db.as_ptr(),
|
self.high_freq_ratio_rolloff.as_ptr(),
|
||||||
String::new(),
|
String::new(),
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
format!("{prefix}high_freq_rolloff"),
|
format!("{prefix}knee"),
|
||||||
self.high_freq_ratio_rolloff.as_ptr(),
|
self.knee_width_db.as_ptr(),
|
||||||
String::new(),
|
String::new(),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue