Improving performance of sample_data=() by using map!() instead of map().
Improving performance of sample_data=() by using map!() instead of map().

Also replacing duplicated blocks with a single lambda.

lchanmann/wavefile,jstrait/wavefile