Closed jzq2000 closed 3 years ago
I believe that compute_features
will always return framesync features, regardless on your feat_type
. So I don't think this might cause an error. If you want the synchronous features, you may use the compute_beat_sync_features
function. Does this make sense?
But here PCP feat_type will be FeatureTypes.est_beatsync, and therefore its shape is wrong (based on beat).
pcp = PCP(self.file_struct, self.feat_type, self.sr, self.hop_length,
self.n_bins, self.norm, self.f_min, self.n_octaves).features
Oh, you're totally right, I forgot about the features
getter! I believe your solution would work.
Would you mind creating a PR with this? Nice catch!
Hi, I think these codes will cause bugs when calling 'self._framesync_features = self.compute_features()'
If Tonnetz .feat_type is FeatureTypes.est_beatsync, The feat_type of Pcp in compute_features() is also FeatureTypes.est_beatsync rather than FeatureTypes.framesync.
I wonder if this will work?