From 60c39e6cbda295d6eeb82a21af9811f6752ca090 Mon Sep 17 00:00:00 2001 From: Luca_Spanedda Date: Wed, 11 May 2022 17:01:24 +0200 Subject: [PATCH] Update 0.91_dBConversions_and_GUI.dsp --- 0.91_dBConversions_and_GUI.dsp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/0.91_dBConversions_and_GUI.dsp b/0.91_dBConversions_and_GUI.dsp index 8f9820b..57c5c15 100644 --- a/0.91_dBConversions_and_GUI.dsp +++ b/0.91_dBConversions_and_GUI.dsp @@ -10,7 +10,6 @@ Il decibel (simbolo ㏈) è la decima parte del bel (simbolo B): 10 ㏈ = 1 B ed è un'unità di misura logaritmica del rapporto fra due grandezze omogenee (di potenze). Il valore ottenuto da un logaritmo è per definizione un numero puro (adimensionale), ma vi può essere associata un'unità di misura per indicare la base del logaritmo utilizzato. - Logarithm: power = number at the base, and result of the number at the base for the power. EX. power of 4 = log base 4 of 16 (16 = result base 4 to ^ 4). @@ -21,14 +20,17 @@ The value obtained from a logarithm is by definition a pure (dimensionless) numb but a unit of measurement can be associated with it to indicate the base of the logarithm used. */ +// smooth function (Onepole Filter) +Smooth(G) = *(1-G) : +~*(G); + // Conversions Formula: dB to a linear gain (0-1) and linear to dB lineartodB(g) = 20.0*log10(max(ma.MIN, g)); dBtolinear(l) = pow(10.0, l/20.0); // GUI Slider in dB = -80 to 0 dB -SliderdB = hslider("Slider in dB",-80,-80,0,0.001) : si.smoo : dBtolinear +SliderdB = hslider("Slider in dB",-80,-80,0,0.001) : Smooth(0.98) : dBtoline with{ - dBtolinear(G) = pow(10.0, G/20.0); + dBtoline(G) = pow(10.0, G/20.0); }; -process = no.noise*SliderdB <: _,_; +process = no.noise*SliderdB;