Dataset, code and spectrogram images from: https://mindmatters.ai/2019/12/playing-tetris-shows-that-true-ai-is-impossible/
You will need R installed.
To run the code:
cd code
RScript generate_spectrograms.r
It takes awhile, so for your convenience the images have been pregenerated.