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

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

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

            return(new Boost(limit));
        }