Constant Q transforms do not allow STFT operations without zero padding for chunked audio processing. #1788
Labels
enhancement
Does this improve existing functionality?
question
Issues asking for help doing something
Is your feature request related to a problem? Please describe.
Currently all constant Q operations call the
stft
operation with parametercenter=True
, which forces some sort of padding (e.g., zeros, or a reflection). This prevents the computation of the equivalent of a very large CQT in chunks, as this padding will be inserted at each chunk point. Thiscenter
parameter should be configurable through the user interface so that it is possible to for "gapless" chunking by the user, where the user can provide each segment of audio as a continuation of the former. This would also require a simple interface to get the equivalent maximum CQT window size, so that a user can chunk the audio and align CQT windows appropriately.Describe the solution you'd like
center
parameter to cqt, vqt and pseudo_cqt operations.cqt_window_size(sample_rate, fmin, num_octaves, bins_per_octave, hop_length)
) so that this is easily accessible to the user.Describe alternatives you've considered
Currently to do this, one must modify private functions of the
constantq
module such as__cqt_response
, which is bad practice.Additional context
N/A
The text was updated successfully, but these errors were encountered: