Giter Site home page Giter Site logo

lead-sheet-dataset's Introduction

Lead-Sheet-Dataset

The collection of lead sheets in three different formats.

Latest Update:

  • Codes: 2018/10/21
  • Sample Dataset: 2018/8/1

Source: Link (4.9 G).
MIDI: Link (11 MB)

The following diagram illustrates the process and available formats: image

The source of the current dataset is from Theorytab. However, under this framework, users can easily extend this dataset by incorporating other resources. All utilities and resources are only for academic purposes.

Formats for Symbolic Domain Analysis

In symbolic domain researches, there are two common formats to represent music: events and pinorolls.

  • Event
    a list of event tuples
    (tag, event_on, event_off) or (tag, event_on, duration)

  • Pianoroll
    a tensor whose size is timesteps x pitches

In event-based works, when analyzing 'chords', there are two common approaches: Roman Analysis (roman) or Chord Names and Symbols (symbol). The former one is usually used for music theorists or students to analyze the harmony of pieces, and the latter one is frequently used in pop music. Fortunately, Theorytab has abundant chord notations in roman, so applying some transformationa, we can get two different notatinos for further researches.

The pianorolls and corresponding midi files are rendered afterwards. When transforming notations into scores, the voicing or the arrangement is also an art. Here, I only adopt some simple polices (ex: omit 5 in 9-th chords). Users can get desired resultsby comstomized the functions.

In summary, there are two major folers:

  • event

    • 'roman_key': roman, original key
    • 'roman_nokey': roman, C key
    • 'symbol_key': symbol, original key
    • 'symbol_nokey': symbol, C key
  • pianoroll

    • key: original key (with midi)
    • no key: C key (with midi)
    • The .npz file and the figure are all from 'no key'.
      The beat resolution is 24 for all pianorolls.

Sample Pianoroll: image


Citation

@article{ahu61,
   author={Yin-Cheng Yeh, Wen-Yi Hsiao, Satoru Fukayama, Tetsuro Kitahara, Benjamin Genchel, Hao-Min Liu, Hao-Wen Dong, Yian Chen, Terence Leong, and Yi-Hsuan Yang, },
   title={Automatic melody harmonization with triad chords: A comparative study},
   journal={Journal of New Music Research (JNMR)},
   volume={50},
   number={1},
   year={2021},
   pages={37-51}
}

How to Create the Dataset

cd lead_sheet_dataset/src
python theorytab_crawler.py
python main.py

The generated data will be placed at 'datasets' folder. For sanity check, you can refer to notebooks to test every individual file.

  • 4956 artists
  • 11380 songs
  • 18843 succesfully parsed files in 18986 sections

How to Incorporate Other Resources

Current accessible resources of lead sheets are almost in symbol format. Users can use 'to_pianoroll.py' to do the conversion. Please be sure the format is identical.

lead-sheet-dataset's People

Contributors

wayne391 avatar bearpelican avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.