Ask HN: Machine learning resources for audio processing
See this book and the sources it links to: <a href="https://musicinformationretrieval.com/" rel="nofollow">https://musicinformationretrieval.com/</a> Also google for pitch and onset detection. If you want more specific help, you have to ask a more specific question.