public static float Clamp(float i, Range range) { if (range.Contains(i)) { return i; } else { if (i <= range.Minimum) { return range.Minimum; } else { return range.Maximum; } } }
public DynamicPreset(String name, Range pitchRange, Range tempoRange) : base(name) { this.PitchRange = pitchRange; this.TempoRange = tempoRange; }