Unified · Split
| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | #!/bin/sh |
| 2 | 2 | |
| 3 | +# Thanks to Reynir H. Stefánsson for the original version of this script. | |
| 4 | + | |
| 3 | 5 | # In marine radio, a Mayday emergency call is transmitted preceded by a |
| 4 | 6 | # 30-second alert sound. The alert sound comprises two audio tones at |
| 5 | 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 | 43 | done |
| 42 | 44 | |
| 43 | 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 | 48 | $PLAY alert.au |