const int, const int num_channels, const int samples, const int)
{
QTime start = QTime::currentTime();
const int, const int num_channels, const int samples, const int)
{
QTime start = QTime::currentTime();
int dbsize=20;
bool showdb=width()>(dbsize+40);
//valpixel=1.0 for 127, 1.0+(1/40) for 1 short oversample, 1.0+(2/40) for longer oversample
int dbsize=20;
bool showdb=width()>(dbsize+40);
//valpixel=1.0 for 127, 1.0+(1/40) for 1 short oversample, 1.0+(2/40) for longer oversample
//int maxx= (unsigned char)channels[i] * (horiz ? width() : height() ) / 127;
double valpixel=valueToPixel((double)(unsigned char)channels[i]/127.0);
int maxx= height() * valpixel;
//int maxx= (unsigned char)channels[i] * (horiz ? width() : height() ) / 127;
double valpixel=valueToPixel((double)(unsigned char)channels[i]/127.0);
int maxx= height() * valpixel;
- //in=0 -> return 0 (null length from max), in=127/127 return 1 (max length )
- return 1.0- log10( in)/log10(1.0/127.0);
+ //in=0 -> return 0 (null length from max), in=127/127 return 1 (max length )
+ return 1.0- log10( in)/log10(1.0/127.0);