public ModulatorAmplitudeFunction(byte[] ops, double[] values) { if (ops.Length != values.Length) throw new Exception("Invalid FM Amplitude function."); this.ops = ops; this.values = values; }