Beispiel #1
0
        public DataSubset(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            idxStart = src.ReadInt32();
            idxLen   = src.ReadInt32();

            init();
        }
Beispiel #2
0
        public FFTFilter(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            filterMode = (FFTFilterMode)src.ReadInt32();
            blockSize  = src.ReadInt32();

            switch (filterMode)
            {
            case FFTFilterMode.LowPass:
            case FFTFilterMode.HighPass:
            case FFTFilterMode.FrequencyShifter:
                f1 = src.ReadDouble();
                break;

            case FFTFilterMode.BandPass:
            case FFTFilterMode.BandStop:
                f1 = src.ReadDouble();
                f2 = src.ReadDouble();
                break;

            case FFTFilterMode.AllPass:
                phi = src.ReadDouble();
                // f1Select.value = phi * 180.0 / Math.PI;
                break;
            }

            init();
        }
Beispiel #3
0
 public WavFileReader(SystemPanel _owner, BinaryReader src) : base(_owner, src)
 {
     channels = src.ReadInt32();
     filename = src.ReadString();
     loop     = src.ReadBoolean();
     amp      = src.ReadDouble();
     speed    = src.ReadDouble();
     if ((filename != null) && filename.Equals("[NONE]"))
     {
         filename = null;
     }
     if ((filename != null) && (filename.Length > 0))
     {
         try
         {
             wave = AudioUtils.WaveData.readWAV(filename);
         }
         catch (Exception e)
         {
             _owner.logText(String.Format("Failed to read File {0}: {1}", filename, e.Message));
             filename = null;
         }
     }
     init();
 }
Beispiel #4
0
        public DataMerge(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            channels = src.ReadInt32();
            async    = src.ReadBoolean();

            init();
        }
Beispiel #5
0
        public Mux(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            channels = src.ReadInt32();
            input    = src.ReadInt32();

            init();
        }
Beispiel #6
0
        public BooleanOP(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            channels  = src.ReadInt32();
            booleanOp = (BooleanMode)src.ReadInt32();

            init();
        }
Beispiel #7
0
        public MFCC(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            coeffs    = src.ReadInt32();
            normalize = src.ReadBoolean();

            init();
        }
        public AsyncNetListener(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            port     = src.ReadInt32();
            channels = src.ReadInt32();

            init();
        }
Beispiel #9
0
        public VNA(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            channels = src.ReadInt32();
            config   = new vnaconfig(src);

            init();
        }
Beispiel #10
0
        public PLL(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            fc = src.ReadDouble();
            fl = src.ReadDouble();
            KA = src.ReadDouble();

            init();
        }
Beispiel #11
0
        public WhiteNoise(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            genAmp  = src.ReadDouble();
            inAmp   = src.ReadBoolean();
            AMNoOfs = src.ReadBoolean();

            init();
        }
Beispiel #12
0
        public Echo(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            delay     = src.ReadDouble();
            gain      = src.ReadDouble();
            recursive = src.ReadBoolean();

            init();
        }
Beispiel #13
0
        public MiniXY(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            AC      = src.ReadBoolean();
            xyscale = src.ReadDouble();
            decay   = src.ReadDouble();

            init();
        }
Beispiel #14
0
        public MiniOsci(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            AC        = src.ReadBoolean();
            yscale    = src.ReadDouble();
            timescale = src.ReadDouble();

            init();
        }
Beispiel #15
0
        public Averager(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            countTimeD = src.ReadDouble();
            avgmode    = src.ReadString();
            acmode     = src.ReadBoolean();

            init();
        }
        public DataWaterfallDisplay(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            log     = src.ReadBoolean();
            norm    = src.ReadBoolean();
            bipolar = src.ReadBoolean();

            init();
        }
Beispiel #17
0
        public FFTPicker(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            blockSize = src.ReadInt32();
            fftWindow = (FFTProcessor.WindowType)src.ReadInt32();
            f         = src.ReadDouble();

            init();
        }
Beispiel #18
0
        public RMSVal(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            channels     = src.ReadInt32();
            windowLength = src.ReadDouble();
            removeDC     = src.ReadBoolean();

            init();
        }
Beispiel #19
0
 // Use this for initialization
 void Start()
 {
     System = GameObject.Find("System");
     com    = GetComponent <Computer>();
     ss     = System.GetComponent <ScreenSaver>();
     sp     = System.GetComponent <SystemPanel>();
     os     = System.GetComponent <OS>();
     mouse  = System.GetComponent <Mouse>();
 }
 public GenericNAudioSinkSource(SystemPanel _owner, BinaryReader src) : base(_owner, src)
 {
     setChannels(null, null);
     overrun           = 0;
     prevstate         = false;
     fromDriverStarted = false;
     toDriverStarted   = false;
     sinkSourceMode    = SinkSourceMode.Offline;
 }
Beispiel #21
0
        public Agc(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            inputs   = src.ReadInt32();
            tau      = src.ReadDouble();
            countMax = (int)Math.Floor(tau * owner.sampleRate + 0.5);
            gainmax  = src.ReadDouble();

            init();
        }
Beispiel #22
0
        public DataFFT(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            blockSize = src.ReadInt32();
            fftWindow = (FFTProcessor.WindowType)src.ReadInt32();
            mode      = (FFTOutMode)src.ReadInt32();
            normalize = src.ReadBoolean();

            init();
        }
Beispiel #23
0
        public Sweep(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            start       = src.ReadDouble();
            stop        = src.ReadDouble();
            time        = src.ReadDouble();
            triggerMode = (TriggerMode)src.ReadInt32();

            init();
        }
Beispiel #24
0
        public IIRFilter(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            filterOrder = (FilterOrder)src.ReadInt32();
            filterType  = (BiQuad.BiQuadMode)src.ReadInt32();
            channels    = src.ReadInt32();
            fc          = src.ReadDouble();
            Q           = src.ReadDouble();

            init();
        }
Beispiel #25
0
        public VCF(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            HighPass = src.ReadBoolean();
            f1       = src.ReadDouble();
            f2       = src.ReadDouble();
            q1       = src.ReadDouble();
            q2       = src.ReadDouble();

            init();
        }
Beispiel #26
0
        public Chromagram(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            blockSize = src.ReadInt32();
            fftWindow = (FFTProcessor.WindowType)src.ReadInt32();
            fA        = src.ReadDouble();
            fMax      = src.ReadDouble();
            normalize = src.ReadBoolean();

            init();
        }
Beispiel #27
0
        public ShapeGen(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            attack      = src.ReadDouble();
            attacklevel = src.ReadDouble();
            decay       = src.ReadDouble();
            decaylevel  = src.ReadDouble();
            sustain     = src.ReadDouble();
            fade        = src.ReadDouble();
            gated       = src.ReadBoolean();

            init();
        }
Beispiel #28
0
        public Switch(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            channels = src.ReadInt32();
            state    = new bool[channels];
            for (int i = 0; i < channels; i++)
            {
                state[i] = src.ReadBoolean();
            }
            active = src.ReadBoolean();

            init();
        }
Beispiel #29
0
        public Mixer(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            inputs = src.ReadInt32();
            gain   = new double[inputs];

            for (int i = 0; i < inputs; i++)
            {
                gain[i] = src.ReadDouble();
            }

            init();
        }
Beispiel #30
0
        public Equalizer(SystemPanel _owner, BinaryReader src) : base(_owner, src)
        {
            inputs = src.ReadInt32();
            g50    = src.ReadDouble();
            g150   = src.ReadDouble();
            g500   = src.ReadDouble();
            g1k5   = src.ReadDouble();
            g5k    = src.ReadDouble();
            g15k   = src.ReadDouble();

            init();
        }