public override Effect CreateInstance(XElement element, SynthData data) { var delaySeconds = InvalidEffectSaveElementException.ParseFloat(element.Element("delaySeconds")); var feedback = InvalidEffectSaveElementException.ParseFloat(element.Element("feedback")); return(new Delay(delaySeconds, feedback, data.SampleRate)); }
public override Effect CreateInstance(XElement element, SynthData data) { var min = InvalidEffectSaveElementException.ParseFloat(element.Element("min")); var max = InvalidEffectSaveElementException.ParseFloat(element.Element("max")); return(new Translate(min, max)); }
public override Effect CreateInstance(XElement element, SynthData data) { var impulseResponse = new List <float>(); foreach (var value in element.Element("impulseResponse").Elements()) { impulseResponse.Add(InvalidEffectSaveElementException.ParseFloat(value)); } return(new Filter(impulseResponse)); }
public override Effect CreateInstance(XElement element, SynthData data) { var gain = InvalidEffectSaveElementException.ParseFloat(element.Element("gain")); return new Boost(gain); }
public override Effect CreateInstance(XElement element, SynthData data) { var numPrevs = InvalidEffectSaveElementException.ParseInt(element.Element("numPrevs")); return(new SimpleFilter(numPrevs)); }
public override Effect CreateInstance(XElement element, SynthData data) { var a1 = InvalidEffectSaveElementException.ParseFloat(element.Element("a1")); return(new OnePoleFilter(a1)); }
public override Effect CreateInstance(XElement element, SynthData data) { var limit = InvalidEffectSaveElementException.ParseFloat(element.Element("limit")); return(new Boost(limit)); }