Exemplo n.º 1
0
        public AuditoryModel Clone()
        {
            AuditoryModel tmp = new AuditoryModel();

            tmp._rule                 = this._rule;
            tmp._base                 = this._base;
            tmp._step                 = this._step;
            tmp._minFq                = this._minFq;
            tmp._maxFq                = this._maxFq;
            tmp._lBeat                = this._lBeat;
            tmp._lStim                = this._lStim;
            tmp._lIntStim             = this._lIntStim;
            tmp._lIntSignal           = this._lIntSignal;
            tmp._nBufferSize          = this._nBufferSize;
            tmp._attenuationSequencer = this._attenuationSequencer;
            tmp._attenuationRandom    = this._attenuationRandom;
            return(tmp);
        }
Exemplo n.º 2
0
        public void Copy(AuditoryModel tmp)
        {
            if (tmp == null)
            {
                return;
            }
            this._base  = tmp._base;
            this._step  = tmp._step;
            this._rule  = tmp._rule;
            this._minFq = tmp._minFq;
            this._maxFq = tmp._maxFq;

            this._lBeat                = tmp._lBeat;
            this._lStim                = tmp._lStim;
            this._lIntStim             = tmp._lIntStim;
            this._lIntSignal           = tmp._lIntSignal;
            this._nBufferSize          = tmp._nBufferSize;
            this._attenuationSequencer = tmp._attenuationSequencer;
            this._attenuationRandom    = tmp._attenuationRandom;
        }
Exemplo n.º 3
0
 override public void EndEdit()
 {
     _tmpModel = null;
 }
Exemplo n.º 4
0
 override public void CancelEdit()
 {
     this.Copy(_tmpModel);
     _tmpModel = null;
 }
Exemplo n.º 5
0
 override public void BeginEdit()
 {
     _tmpModel = this.Clone();
 }