This repo contains scripts to compute STRF like representations. It's inspired from the NSL Toolbox (http://nsl.isr.umd.edu/downloads.html) but is in python.
Its allows to generate beautiful images like this:
The scripts 'demo.py' contains an example of computation and plot.
These scripts have been developed to compute STRFs like representations in:
Thoret, E., Caramiaux, B., Depalle, P., McAdams, S. (2021) Learning metrics on spectrotemporal modulations reveals the perception of musical instrument timbre, Nature Human Behaviour, 5, 369-377 10.1038/s41562-020-00987-5 (Free online version of the paper: https://rdcu.be/cbuTM)
Please cite us if you use it :)
Feel free to ask questions, report bugs, or suggest improvements => etiennethoret [at] gmail [dot] com