public override double FromStringToValue(string s) { return(DSPFunctions.Clamp(ParseDouble(s), Min, Max)); }
public override double FromStringToValue(string s) { var volumeDb = DSPFunctions.Clamp(ParseDouble(s), DSPFunctions.KMinADb, DSPFunctions.KMaxADb); return((volumeDb - DSPFunctions.KMinADb) / (DSPFunctions.KMaxADb - DSPFunctions.KMinADb)); }
public override int FromStringToValue(string s) { return((int)Math.Round(DSPFunctions.Clamp(int.Parse(s, CultureInfo.InvariantCulture), Min, Max), MidpointRounding.AwayFromZero)); }