bmcfee / pumpp

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

added variable-length sampler. fixes #86 #87

Closed bmcfee closed 7 years ago

bmcfee commented 7 years ago

Reference Issue

Fixes #86

What does this implement/fix? Explain your changes.

This PR adds a new Sampler class VariableLengthSampler where patches can have a minimum and maximum duration. It otherwise behaves identically to Sampler.

In a future major revision, it might make sense to invert the class hierarchy here, since Sampler is the special case where min==max. However, extending it in this direction maintains pickled object compatibility going forward in the 0.3 series.