When-in-Rome icon indicating copy to clipboard operation
When-in-Rome copied to clipboard

Reimplement pitch profiles (AKA distributions) with np.arrays

Open giamic opened this issue 3 years ago • 1 comments

Operations on numpy arrays are much faster and also the code is much more compact because it avoids explicit for loops. Swapping is not a trivial task because it would require carefully examining every place where pitch distributions are used and making the conversion. A first step could be to implement functions to input and output lists, but internally use np.arrays.

giamic avatar Dec 13 '22 15:12 giamic

A first leg of this work is proposed in #73

giamic avatar Dec 14 '22 12:12 giamic