1. A method comprising: generating, by a computing device, a plurality of sub-bands of digital data; determining, at a rate that provides a substantially peak signal-to-noise ratio for the digital data, by the computing device, a basis function for the digital data in one of the plurality of sub-bands; adding, by the computing device, the basis function to a codebook; and compressing, by the computing device, the digital data using the codebook.