I love so much Cython, as it takes the best of the two main programming worlds: C and Python. Both languages can be combined together in a straightforward way, in order to give you more computational efficient APIs or scripts. Furthermore, coding in Cython and C helps you to understand what is underneath common python packages such as sklearn, bringing data scientists to a further step, which is quite far from the simple import torch and predefined algorithms usage.

In this series I am going to show you how to implement in C and Cyhton algorithms to analyse music, following as a reference the corresponding sklearn and scipypackages.

This lesson deals with the Short-time Fourier Transform or STFT. This algorithm is widely used to analyse frequencies of a signal and their evolution in time. The codes are stored in this repository:

The codes are extremely useful to understand how to structure a Cython project, subdividing codes in folders and install the final package.

This post contains external link to Amazon affiliate program.

#c-programming #machine-learning #cython #music #python

Practical Cython— Music Retrieval: Short Time Fourier Transform
1.35 GEEK