Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine(About.ToString());
            EpidLib.Virus v = new EpidLib.Virus();
            Console.WriteLine(v.ToString());
            RndGen rndGen = new RndGen();

            rndGen.Reset();
            Console.WriteLine(rndGen.ToString());
            for (int i = 0; i < 250; i++)
            {
                Console.WriteLine(rndGen.NextNorm());
            }

            rndGen.ToCSV(0, 1, 1500);

            Attribute attr = new Attribute();

            Console.WriteLine(attr);

            FreqTable ft = new FreqTable();

            ft.Append("male", 0.48);
            ft.Append("female", 0.52);

            Console.WriteLine(ft);

            ft.Cumulative = true;
            Console.WriteLine(ft);
            ft.Cumulative = false;
            Console.WriteLine(ft);

            FromTo diap1 = new FromTo()
            {
                From = 0, To = 1
            };

            Console.WriteLine(diap1);

            FromToPercent diap2 = new FromToPercent()
            {
                FromPercent = 0.2, ToPercent = 0.3
            };

            Console.WriteLine(diap2);
        }
Ejemplo n.º 2
0
    //▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    // Use this for initialization
    void Start()
    {
        oscA     = new OscRamp();
        flt      = new RCFilter();
        kickDrum = new Sampler(kickSample);
        vca      = new Envelope();

        flt.input = oscA.output;         // TODO: connect method

        slidderCut.onValueChanged.AddListener((float v) => { flt.cut = v; });
        slidderRez.onValueChanged.AddListener((float v) => { flt.rez = v; });

        Tempo = 133f;

        freqTable = new FreqTable();
        freqTable.Create();
    }
Ejemplo n.º 3
0
    //▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    // Use this for initialization
    void Start()
    {
        oscA     = new OscRamp();
        flt      = new RCFilter();
        kickDrum = new Sampler(kickSample);
        vca      = new Envelope();

        flt.input = oscA.output; // TODO: connect method

        slidderCut.onValueChanged.AddListener((float v) => { flt.cut = v; });
        slidderRez.onValueChanged.AddListener((float v) => { flt.rez = v; });

        Tempo = 133f;

        freqTable = new FreqTable ();
        freqTable.Create ();
    }