Generating a Sin Waveform.

How do I generate a Sin waveform or square wave for android of a given set of frequency or numbers?

Thank you

Answers

  • FaisalAshourFaisalAshour USMember

    Update,

    class Sinwave

        {
            static double[] data= new double[2500];
    
            static void Main(string[] args)
            {
                for (int i = 0; i < 2500; i++) 
                {
                    data[i] = 170 * Math.Sin (2 * Math.PI * 60 * i * 0.00004);
    
                    Console.WriteLine (data.ToString ());
                }
            }
    

    How can I display it on the grid, like View or other type of layouts.???

Sign In or Register to comment.