public void Test_Quickstart_Demo() { var wspr = new WsprSharp.WsprTransmission("AJ4VD", "EL89", 3); Console.WriteLine("Encoded Bytes:"); Console.WriteLine(string.Join(" ", wspr.Message)); Console.WriteLine("Transmission Frequency:"); Console.WriteLine(string.Join(" ", wspr.Levels)); }
private void Recalculate() { var wspr = new WsprSharp.WsprTransmission(tbCallsign.Text, tbLocation.Text, double.Parse(cbPower.Text)); if (wspr.IsValid == false) { tbMessage.Text = "invalid input"; rtbLevels.Text = "invalid input"; return; } tbMessage.Text = wspr.GetMessageString(); rtbLevels.Text = wspr.GetLevelsString(); pictureBox1.Image = WsprImage.MakeSpectrogram(wspr.Levels); }