For algorithm explanation see Python version:
https://github.com/BShakhovsky/PolyphonicPianoTranscription
The Python code from above is translated into pure C++ here, in order to make this C++ static library available from my 3D-piano application:
https://github.com/BShakhovsky/PianoTranscription_Windows
Python neural network is converted to C++ with the help of the following library:
https://github.com/Dobiasd/frugally-deep
C++ code related to spectrogram etc. is blindly coppied from the following Python-library: