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.
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 toSampler
.In a future major revision, it might make sense to invert the class hierarchy here, since
Sampler
is the special case wheremin==max
. However, extending it in this direction maintains pickled object compatibility going forward in the 0.3 series.