jorge ·
Lalo asked for an example of how to draw a wave, here it is ( not very tidy though ) :
[old link]
Of course it can be made to look a lot better but the point was to show how each vertical bar is drawn between the min and max values of all the samples in one segment, in this case each bar represents 50 samples.