{"id":18645343,"url":"https://github.com/danigb/chord.dictionary","last_synced_at":"2025-07-07T14:10:14.314Z","repository":{"id":66458268,"uuid":"47181072","full_name":"danigb/chord.dictionary","owner":"danigb","description":"A music chord dictionary","archived":false,"fork":false,"pushed_at":"2015-12-01T22:02:45.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-17T18:08:58.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danigb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-01T10:01:44.000Z","updated_at":"2022-10-17T04:28:30.000Z","dependencies_parsed_at":"2023-02-20T20:45:14.637Z","dependency_job_id":null,"html_url":"https://github.com/danigb/chord.dictionary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danigb/chord.dictionary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Fchord.dictionary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Fchord.dictionary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Fchord.dictionary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Fchord.dictionary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danigb","download_url":"https://codeload.github.com/danigb/chord.dictionary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Fchord.dictionary/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264089672,"owners_count":23555785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T06:15:36.782Z","updated_at":"2025-07-07T14:10:14.290Z","avatar_url":"https://github.com/danigb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chord.dictionary\n\n[![Build Status](https://travis-ci.org/danigb/chord.dictionary.svg?branch=master)](https://travis-ci.org/danigb/chord.dictionary)\n[![Climate](https://codeclimate.com/github/danigb/chord.dictionary/badges/gpa.svg)](https://codeclimate.com/github/danigb/chord.dictionary)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n[![npm version](https://img.shields.io/npm/v/chord.dictionary.svg)](https://www.npmjs.com/package/chord.dictionary)\n[![license](https://img.shields.io/npm/l/chord.dictionary.svg)](https://www.npmjs.com/package/chord.dictionary)\n[![tonal](https://img.shields.io/badge/tonal-chord.dictionary-yellow.svg)](https://www.npmjs.com/browse/keyword/tonal)\n\nA dictionary of music chords. This contains a [json file](https://github.com/danigb/chord.dictionary/blob/master/chords.json) with chord definitions (currently 106), and a javascript function to access them:\n\n```js\nvar chord = require('chord.dictionary')\nchord('Maj7') // =\u003e { name: 'Maj7', aliases: ['M7', 'maj7']\n               //      intervals:  [ '1', '3', '5', '7' ],\n               //      steps: [ ... ]\n               //      binary: '100010010001', decimal: 2193 }\n```\n\nThis is part of [tonal](https://github.com/danigb/tonal)\n\n## Installation\n\nInstall via npm: `npm install --save chord.dictionary`. For browsers use the browserify or similar tool or get [tonal.chord](https://github.com/danigb/tonal.chord)\n\n## Usage\n\nYou can get or require [json data file](https://github.com/danigb/chord.dictionary/blob/master/chords.json) directly:\n\n```js\nvar data = require('chord.dictionary/chords.json')\n```\n\nOr use the function:\n\n```js\nvar chord = require('chord.dictionary')\nchord('Maj7') // =\u003e { name: 'Maj7', ... }\n```\n\nThe function returns a data object with the following properties:\n\n- name: the name of the chord\n- aliases: an array with the alternative names of the chord\n- intervals: an array with the intervals\n- steps: an array with the intervals in __array notation__\n- binary: a binary representation of the chord set\n- decimal: the decimal representation of the chord set\n\nYou can get an array of available names:\n\n```js\nvar chord = require('chord.dictionary')\nchord.names // =\u003e ['Maj7', 'm7', ...]\nchord.names.length // =\u003e 107\n```\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanigb%2Fchord.dictionary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanigb%2Fchord.dictionary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanigb%2Fchord.dictionary/lists"}