{"id":18645158,"url":"https://github.com/danigb/interval-notation","last_synced_at":"2025-06-26T23:45:25.157Z","repository":{"id":57275343,"uuid":"56938393","full_name":"danigb/interval-notation","owner":"danigb","description":"Parse and build musical intervals in shorthand notation","archived":false,"fork":false,"pushed_at":"2017-05-05T15:55:41.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-27T17:23:42.148Z","etag":null,"topics":["music-theory","musical-intervals","parse"],"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":"2016-04-23T20:02:12.000Z","updated_at":"2022-02-25T16:34:37.000Z","dependencies_parsed_at":"2022-09-15T19:10:57.958Z","dependency_job_id":null,"html_url":"https://github.com/danigb/interval-notation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Finterval-notation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Finterval-notation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Finterval-notation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danigb%2Finterval-notation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danigb","download_url":"https://codeload.github.com/danigb/interval-notation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449548,"owners_count":19640532,"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":["music-theory","musical-intervals","parse"],"created_at":"2024-11-07T06:14:52.918Z","updated_at":"2025-02-18T09:44:31.332Z","avatar_url":"https://github.com/danigb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# interval-notation [![npm](https://img.shields.io/npm/v/interval-notation.svg)](https://www.npmjs.com/package/interval-notation)\n\n[![Build Status](https://travis-ci.org/danigb/interval-notation.svg?branch=master)](https://travis-ci.org/danigb/interval-notation) [![Code Climate](https://codeclimate.com/github/danigb/interval-notation/badges/gpa.svg)](https://codeclimate.com/github/danigb/interval-notation)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\nParse music intervals in shorthand notation (https://en.wikipedia.org/wiki/Interval_(music)#Shorthand_notation) with javascript. Given a string, obtain an object\nwith interval properties (including interval size in semitones). It provides function to build string from its properties.\n\n## Install\n\nyarn: `yarn add interval-notation`\n\nnpm: `npm i --save interval-notation`\n\n## Usage\n\nES6 modules:\n\n```js\nimport { parse, shorthand } from 'interval-notation'\nparse('M3') // =\u003e { num: 3, q: 'M', dir: 1, simple: 3,\n            //      type: 'M', alt: 0, oct: 0, size: 4 }\nshorthand(3, 0, 0, 1) // =\u003e 'M3'\n```\n\nES5 node import:\n\n```js\nvar interval = require('interval-notation')\ninterval.parse('M3') // =\u003e { num: 3, q: 'M', dir: 1, simple: 3,\n                     //      type: 'M', alt: 0, oct: 0, size: 4 }\ninterval.shorthand(3, 0, 0, 1) // =\u003e 'M3'\n```\n\n## Documentation\n\nYou can read the [generated API documentation here](https://github.com/danigb/interval-notation/blob/master/API.md)\n\n## Test and development\n\nTo run the test clone this repo and:\n\n```\nnpm i\nnpm test\n```\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanigb%2Finterval-notation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanigb%2Finterval-notation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanigb%2Finterval-notation/lists"}