tscope magchars

This commit is contained in:
Kamal Mostafa 2011-05-26 23:17:26 -07:00
parent 9e4ad3a2f7
commit d79f11ae66
1 changed files with 6 additions and 7 deletions

View File

@ -36,7 +36,7 @@ tscope_print( fftwf_complex * const fftout, int nbands, float magscalar,
int one_line_mode, int show_maxmag )
{
char *buf = alloca(nbands+1);
char magchars[] = " .-=+#^";
char magchars[] = " .-=^!";
if ( one_line_mode )
magchars[0] = '_';
float maxmag = 0;
@ -47,12 +47,11 @@ tscope_print( fftwf_complex * const fftout, int nbands, float magscalar,
if ( maxmag < mag )
maxmag = mag;
if ( mag <= 0.05 ) c = magchars[0];
else if ( mag <= 0.10 ) c = magchars[1];
else if ( mag <= 0.25 ) c = magchars[2];
else if ( mag <= 0.50 ) c = magchars[3];
else if ( mag <= 0.95 ) c = magchars[4];
else if ( mag <= 1.00 ) c = magchars[5];
else c = magchars[6];
else if ( mag <= 0.25 ) c = magchars[1];
else if ( mag <= 0.50 ) c = magchars[2];
else if ( mag <= 0.75 ) c = magchars[3];
else if ( mag <= 1.00 ) c = magchars[4];
else c = magchars[5];
buf[i] = c;
}
buf[i] = 0;