Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
        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));
        }
Example #4
0
 public override Effect CreateInstance(XElement element, SynthData data)
 {
     var gain = InvalidEffectSaveElementException.ParseFloat(element.Element("gain"));
     return new Boost(gain);
 }
Example #5
0
        public override Effect CreateInstance(XElement element, SynthData data)
        {
            var numPrevs = InvalidEffectSaveElementException.ParseInt(element.Element("numPrevs"));

            return(new SimpleFilter(numPrevs));
        }
Example #6
0
        public override Effect CreateInstance(XElement element, SynthData data)
        {
            var a1 = InvalidEffectSaveElementException.ParseFloat(element.Element("a1"));

            return(new OnePoleFilter(a1));
        }
Example #7
0
        public override Effect CreateInstance(XElement element, SynthData data)
        {
            var limit = InvalidEffectSaveElementException.ParseFloat(element.Element("limit"));

            return(new Boost(limit));
        }