https://github.com/mobeets/mood-music
generating music by mood
https://github.com/mobeets/mood-music
Last synced: 10 days ago
JSON representation
generating music by mood
- Host: GitHub
- URL: https://github.com/mobeets/mood-music
- Owner: mobeets
- Created: 2017-09-19T15:30:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-29T15:20:53.000Z (over 8 years ago)
- Last Synced: 2025-03-02T04:33:20.575Z (over 1 year ago)
- Language: Python
- Size: 39.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
__Data__: MIDI data for songs in the Million Songs Dataset can be obtained by downloading "LMD-matched" and "LMD-matched-metadata" from the [Lakh MIDI Dataset](http://colinraffel.com/projects/lmd/).
__Preprocessing__:
1. Find the mood of each song using [pygn](https://github.com/cweichen/pygn) to query the [Gracenote API](https://developer.gracenote.com/web-api)
2. Discretize midi data into sixteenth notes, convert to piano-roll notation (binary matrix of [nsamples x npitches]), and tranpose to C major or C minor.