bmcfee / pumpp

practically universal music pre-processor
ISC License
60 stars 11 forks source link

quantization and explicit dtype #108

Closed bmcfee closed 5 years ago

bmcfee commented 5 years ago

Reference Issue

103

104

What does this implement/fix? Explain your changes.

This PR adds quantization of extracted features. It will also add explicit dtypes, and refactor some of the feature classes to be a bit less interdependent.

Enabling quantization will be automatic if the extractor object is instantiated with dtype='uint8' or dtype='uint16'. Otherwise, it will cast to the given float type ('float32' by default, but it could be float16 or float64 as well.)