Exemple #1
0
        public override ProgrammingElement Clone()
        {
            SoundModifier clone = new SoundModifier();

            CopyTo(clone);
            return(clone);
        }
Exemple #2
0
 protected void CopyTo(SoundModifier clone)
 {
     base.CopyTo(clone);
     clone.sound         = this.sound;
     clone.spatial       = this.spatial;
     clone.loudness      = this.loudness;
     clone.vlength       = this.vlength;
     clone.previewLength = this.previewLength;
 }
        public SoundFilter(SoundModifier soundMod)
        {
            WhileHighlitDel  += WhileHighlit;
            OnUnHighlightDel += OnUnHighlight;

            this.sound         = soundMod.upid;
            this.upid          = soundMod.upid.Replace("modifier.", "filter.");
            this.icon          = soundMod.icon;
            this.label         = soundMod.label;
            this.previewLength = soundMod.previewLength;

            this.XmlInputs.Add(SensorOutputType.SoundSensor);
            this.XmlCategories.Add(BrainCategories.SoundFilter);
            this.XmlExclusions.Add(BrainCategories.SoundFilter);
            this.OnLoad();
        }