Unified · Split
| @@ -1,5 +1,7 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | # Thanks to Reynir H. Stefánsson for the original version of this script. | ||
| 4 | |||
| 3 | # In marine radio, a Mayday emergency call is transmitted preceded by a | 5 | # In marine radio, a Mayday emergency call is transmitted preceded by a |
| 4 | # 30-second alert sound. The alert sound comprises two audio tones at | 6 | # 30-second alert sound. The alert sound comprises two audio tones at |
| 5 | # 1300Hz and 2100Hz alternating at a rate of 4Hz. This script shows how SoX | 7 | # 1300Hz and 2100Hz alternating at a rate of 4Hz. This script shows how SoX |
| @@ -41,6 +43,6 @@ while [ $iterations -ge 1 ]; do · 35 unmodified lines | |||
| 41 | done | 43 | done |
| 42 | 44 | ||
| 43 | $SOX -c 1 -r 8000 alert.ul alert.au # Add a file header | 45 | $SOX -c 1 -r 8000 alert.ul alert.au # Add a file header |
| 44 | rm 2tones.ul alert.ul # Tidy up intermediate files | 46 | rm 2tones.ul alert.ul # Tidy up intermediate files |
| 45 | 47 | ||
| 46 | $PLAY alert.au | 48 | $PLAY alert.au |