makefile to 0.8.3; implement |S(ilence) text command
This commit is contained in:
parent
207aec776b
commit
aebb450d2c
2
Makefile
2
Makefile
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# $Id$
|
||||
|
||||
VERSION=0.8.2
|
||||
VERSION=0.8.3
|
||||
DESTDIR ?= /usr
|
||||
|
||||
# Set to NO to compile without Lame/Ogg-vorbis support
|
||||
|
|
|
|||
|
|
@ -117,7 +117,8 @@ CW prosigns can be generated by enclosing arbitrary letters in angle brackets
|
|||
The tone frequency (f), speed (w), effective speed (e), volume (v, 1..100)
|
||||
waveform (T) and SNR (N) can be changed arbitrarily within the text by
|
||||
inserting commands, starting with a pipe symbol, followed by the parameter to
|
||||
change and the value.
|
||||
change and the value. Additionally, |Sn adds a period of n milliseconds silence
|
||||
to the file at the given position (0 < n < 10000).
|
||||
|
||||
Example: |f400 changes the tone frequency to 400Hz, |w60 changes the speed to
|
||||
60wpm, |T3 changes the waveform to squarewave.
|
||||
|
|
|
|||
|
|
@ -1035,6 +1035,11 @@ void command (char * cmd, CWP *cw) {
|
|||
cw->addnoise = 1;
|
||||
cw->snr = i;
|
||||
break;
|
||||
case 'S':
|
||||
if (i > 1 && i < 10000) {
|
||||
add_silence(i, cw);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "Invalid command %s. Ignored.\n", cmd);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue