The Dataset Viewer has been disabled on this dataset.

DJ Music: open-licensed hip hop from the Free Music Archive

Full-length hip hop tracks, every one released by its artist under a Creative Commons licence or into the public domain. It is the hip hop slice of the FMA dataset (fma_full), repackaged as plain MP3 files with one metadata row per track so the genre can be downloaded without fetching the whole 900 GB archive.

It was assembled as training audio for a model that scores how well one song's vocal sits on another song's instrumental, as part of an AI DJ project. It is equally usable for source separation, beat and key analysis, tagging, or any other music research that needs real, full-length, legally shareable hip hop.

At a glance

Tracks 4,880 (snapshot; grows to about 7,900 as the transfer completes)
Audio 279.5 hours, 36.9 GB
Artists 706
Format MP3, full length, as distributed by FMA (not re-encoded)
Track length 60 to 600 seconds
Genre FMA top-level genre Hip-Hop and its sub-genres (Rap, Alternative Hip-Hop, Abstract Hip-Hop, Hip-Hop Beats, Breakbeat, and others)

Layout

audio/fma/hiphop/<first 3 digits of track id>/<6-digit FMA track id>.mp3
metadata/fma/part-<timestamp>.jsonl

Metadata is split across many small part-*.jsonl files (one per upload batch). Read them all and concatenate. Each line describes one track:

Field Meaning
id fma_<6-digit FMA track id>
path location of the MP3 inside this repository
title, artist as listed on the Free Music Archive
licence the licence name FMA recorded for this track
seconds duration
bytes file size
bucket hiphop
source fma

The FMA track id is kept, so any other field from FMA's own tracks.csv (album, sub-genre list, play counts, tags) can be joined back on it.

Loading

import glob, json
from huggingface_hub import snapshot_download

# metadata only (a few MB)
root = snapshot_download("travis-moore/dj-music", repo_type="dataset", allow_patterns="metadata/*")
tracks = [json.loads(line) for f in glob.glob(f"{root}/metadata/fma/*.jsonl") for line in open(f)]

# then fetch just the audio you want
from huggingface_hub import hf_hub_download
mp3 = hf_hub_download("travis-moore/dj-music", tracks[0]["path"], repo_type="dataset")

How it was built

  1. Read FMA's tracks.csv and kept tracks whose genre list includes Hip-Hop (FMA genre id 21) or any sub-genre under it.
  2. Kept only tracks between 60 and 600 seconds long.
  3. Kept only tracks whose FMA licence is a Creative Commons licence, CC0, or a public-domain mark. Tracks with other terms (for example FMA's "download only" licence) were left out.
  4. Fetched each MP3 from the official fma_full.zip and stored it unchanged.
  5. Skipped files larger than 40 MB.

Licences

There is no single licence for this dataset. Each track carries its own, recorded in the licence field. Breakdown of the current snapshot:

Licence family Tracks What it means for you
BY-NC-ND 2,086 credit the artist, non-commercial only, do not share altered versions
BY-NC-SA 1,869 credit the artist, non-commercial only, share adaptations under the same licence
BY-NC 323 credit the artist, non-commercial only
BY 300 credit the artist
BY-SA 240 credit the artist, share adaptations under the same licence
BY-ND 52 credit the artist, do not share altered versions
Public domain mark 10 no restrictions recorded

Things to keep in mind:

  • About 88% of the tracks are non-commercial. Filter on licence before any commercial use.
  • About 44% are no-derivatives. Do not redistribute stems, remixes, mashups or other altered audio made from those tracks.
  • Every licence except the public-domain mark requires attribution. The artist and title fields are there for that.
  • Licence names are the strings FMA recorded, including older and country-specific versions (for example "3.0 United States", "2.5 Hungary"). Check the exact version when it matters.
  • Whether training a model on this audio is permitted under a given licence is for you to assess for your own use.

Limitations

  • Independent and underground hip hop. These are artists who chose open licences on the Free Music Archive, mostly from before 2017. It is not chart hip hop and does not sound like it.
  • Genre labels come from uploaders. Some tracks tagged Hip-Hop are instrumental beats, breakbeat or experimental pieces with little or no rapping.
  • No modern Afrobeats, amapiano or Afropop. The archive's "African" and "Afrobeat" genres are traditional and 1970s-style music, so they were deliberately left out.
  • Uneven audio quality. Bitrates and mastering vary from track to track.
  • Artist imbalance. A small number of prolific artists account for a large share of the tracks. Split by artist, not by track, when evaluating.
  • Unreviewed content. Lyrics have not been screened and include explicit language.
  • Snapshot. The track count above was taken while the transfer was still running.

Removal requests

If you are the rights holder of a track here and want it removed, open a discussion in the Community tab of this repository and it will be taken down.

Credit

All audio and the underlying metadata come from the FMA dataset. Please cite it if you use this subset:

@inproceedings{fma_dataset,
  title     = {{FMA}: A Dataset for Music Analysis},
  author    = {Defferrard, Micha\"el and Benzi, Kirell and Vandergheynst, Pierre and Bresson, Xavier},
  booktitle = {18th International Society for Music Information Retrieval Conference (ISMIR)},
  year      = {2017},
  archiveprefix = {arXiv},
  eprint    = {1612.01840}
}

The FMA metadata is released under CC BY 4.0. The music belongs to its artists.

Downloads last month
91

Paper for travis-moore/dj-music