https://github.com/rachhshruti/automatic-music-transcription
Automatic transcription of piano music in R
https://github.com/rachhshruti/automatic-music-transcription
autocorrelation cepstral machine-learning music-information-retrieval piano-music r
Last synced: 2 months ago
JSON representation
Automatic transcription of piano music in R
- Host: GitHub
- URL: https://github.com/rachhshruti/automatic-music-transcription
- Owner: rachhshruti
- License: mit
- Created: 2017-12-03T04:44:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T05:37:31.000Z (8 months ago)
- Last Synced: 2025-03-28T10:01:36.422Z (3 months ago)
- Topics: autocorrelation, cepstral, machine-learning, music-information-retrieval, piano-music, r
- Language: R
- Homepage:
- Size: 3.32 MB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automatic Transcription of Piano Music
The goal of this project is to automate the music transcription process from a musical recording. In this project, we will consider piano recordings consisting of only monophonic notes i.e. only a single note will be played at a time. There are many algorithms to generate musical sheets from an audio such as autocorrelation, CQT transform and cepstral based. This project will focus on YIN, which is a modified autocorrelation algorithm, and cepstral algorithm.# Running the Code
Rscript pitch-detection.R sound-file-pathIt accepts one command line argument which is the path of sound file whose notation is to be identified.
# Results:
1. DG
Actual notes:
D G
Cepstrum method:
D G
Accuracy: 100%2. D chord
Actual notes:
D F# A D
Cepstrum method:
D F# A D#
Accuracy: 75%
3. Ode to Joy
Actual notes:
E4 E4 F4 G4 G4 F4 E4 D4 C4 C4 D4 E4 E4 D4
E4 E4 F4 G4 G4 F4 E4 D4 C4 C4 D4 E4 D4 C4Cepstrum method:
E4 E4 F4 G4 G4 F4 E4 D4 C4 C4 D4 E4 E4 D4
E4 F4 E4 G4 G4 E4 D4 C4 C4 D4 E4 D4 C4
Accuracy: 89% (2 missing notes and one additional note is detected)4. Mary had a little lamb
Actual notes:
E4 D4 C4 D4 E4 E4 E4 D4 D4 D4 E4 E4 E4
Cepstrum method:
E4 D4 C4 D4 E4 E4 E4 D4 D4 D4 E4 E4 E4 E3
Accuracy: 96% one extra low E (E3) detected