예제 #1
0
 public override double FromStringToValue(string s)
 {
     return(DSPFunctions.Clamp(ParseDouble(s), Min, Max));
 }
예제 #2
0
        public override double FromStringToValue(string s)
        {
            var volumeDb = DSPFunctions.Clamp(ParseDouble(s), DSPFunctions.KMinADb, DSPFunctions.KMaxADb);

            return((volumeDb - DSPFunctions.KMinADb) / (DSPFunctions.KMaxADb - DSPFunctions.KMinADb));
        }
예제 #3
0
 public override int FromStringToValue(string s)
 {
     return((int)Math.Round(DSPFunctions.Clamp(int.Parse(s, CultureInfo.InvariantCulture), Min, Max), MidpointRounding.AwayFromZero));
 }