Hello everyone! I am new to programming and need some pointers.
I am trying to write a program that generates tones. I know how I want the program to work, but I have no clue on how to write the code.
The program needs to generate 2 tones, which are defined by the user input. The first tone is one second long, followed by a three second tone.
The user input follows the Motorola general encoding plan found here in table 1 http://www.midians.com/pdf/tone-signaling-charts.pdf .
I am programming a RaspberryPi model B using Python.
I would like to have a code that based on a 3 digit user input, would generate tone A and tone B. Tone A is 1 second long and Tone B is 3 seconds long.
The 1st digit would select the plan, i.e. which "Reed Groups" the tone are selected from. The 2nd and 3rd digit selects the tone from each Reed Group.
Examples;
A 394 would generate a 1 sec / 3 sec tone of (539.0 Hz / 707.3 Hz).
A 703 would generate a 1 sec / 3 sec tone of (321.7 Hz / 651.9 Hz).
Any help would be greatly appreciated!
James