{"id":18645238,"url":"https://github.com/danigb/music.scale.dictionary","last_synced_at":"2025-09-23T16:17:38.143Z","repository":{"id":66458338,"uuid":"44904071","full_name":"danigb/music.scale.dictionary","owner":"danigb","description":"A dictionary of music scales","archived":false,"fork":false,"pushed_at":"2015-11-03T10:07:43.000Z","size":152,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-17T18:08:28.645Z","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":"mit","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":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-25T09:42:46.000Z","updated_at":"2016-05-31T17:55:23.000Z","dependencies_parsed_at":"2023-02-20T20:00:28.013Z","dependency_job_id":null,"html_url":"https://github.com/danigb/music.scale.dictionary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danigb/music.scale.dictionary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Fmusic.scale.dictionary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Fmusic.scale.dictionary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Fmusic.scale.dictionary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Fmusic.scale.dictionary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danigb","download_url":"https://codeload.github.com/danigb/music.scale.dictionary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Fmusic.scale.dictionary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276606057,"owners_count":25672160,"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","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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:09.102Z","updated_at":"2025-09-23T16:17:38.114Z","avatar_url":"https://github.com/danigb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# music.scale.dictionary\n\n[![Build Status](https://travis-ci.org/danigb/music.scale.dictionary.svg?branch=master)](https://travis-ci.org/danigb/music.scale.dictionary)\n[![Code Climate](https://codeclimate.com/github/danigb/music.scale.dictionary/badges/gpa.svg)](https://codeclimate.com/github/danigb/music.scale.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/music.scale.dictionary.svg)](https://www.npmjs.com/package/music.scale.dictionary)\n[![license](https://img.shields.io/npm/l/music.scale.dictionary.svg)](https://www.npmjs.com/package/music.scale.dictionary)\n[![music.kit](https://img.shields.io/badge/music-kit-yellow.svg)](https://www.npmjs.com/package/music.kit)\n\nA dictionary of music scales:\n\n```js\nvar scale = require('music.scale.dictionary')\nscale.get('phrygian') // =\u003e [ '1P', '2m', '3m', '4P', '5P', '6m', '7m' ]\nscale.get('Db phrygian') // =\u003e [ 'Db', 'Ebb', 'Fb', 'Gb', 'Ab', 'Bbb', 'Cb' ]\nscale.get('Eb4 phrygian') // =\u003e [ 'Eb4', 'Fb4', 'Gb4', 'Ab4', 'Bb4', 'Cb5', 'Db5' ]\n```\n\nThis is part of [music.kit](https://www.npmjs.com/package/music.kit)\n\n## Features\n\n- Build scales from names\n- Get scale intervals\n- Get all available names\n- Find scale name by notes\n\n## Install\n\nVia npm: `npm i --save music.scale.dictionary` or grab the file (10kb minified) from [dist](https://raw.githubusercontent.com/danigb/music.scale.dictionary/master/dist/music.scale.dictionary.min.js) folder.\n\n## Usage\n\n#### Create scales using a scale name\n\nThe simplest usage is creating a scale from a name with tonic:\n\n```js\nscale.get('F altered') // =\u003e [ 'F', 'Gb', 'Ab', 'A', 'Cb', 'Db', 'Eb' ]\nscale.get('Gb enigmatic') // =\u003e [ 'Gb', 'Abb', 'Bb', 'Dbb', 'Ebb', 'Fb', 'F' ]\n```\n\n#### Get scale intervals\n\nYou can get scale intervals if you don't specify the tonic:\n\n```js\nscale.get('bebop') // =\u003e [ '1P', '2M', '3M', '4P', '5P', '6M', '7m', '7M' ]\n```\n\n#### Get scale names\n\nUse the `names` function to get scale names. Passing `true` as first argument return scale aliases names too:\n\n```js\nscale.names() // =\u003e ['major', ...] (89 names)\nscale.names(true) // =\u003e ['major', ...] (108 names)\n```\n\n#### Find scale name\n\nThe `find` function get the scale name from a list of notes. All the notes of the scale must be inside the list and the first note of the list is considered the tonic:\n\n```js\nscale.find('c g a b e f b5 d') // =\u003e 'major'\nscale.find('d c g a b e f b5 d') // =\u003e 'dorian'\n```\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanigb%2Fmusic.scale.dictionary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanigb%2Fmusic.scale.dictionary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanigb%2Fmusic.scale.dictionary/lists"}