{"id":15621763,"url":"https://github.com/pirtleshell/string-tunings","last_synced_at":"2025-04-28T14:09:23.446Z","repository":{"id":57372614,"uuid":"76815218","full_name":"pirtleshell/string-tunings","owner":"pirtleshell","description":":guitar: API for the tunings of string instruments","archived":false,"fork":false,"pushed_at":"2016-12-19T00:37:53.000Z","size":3,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T14:09:18.198Z","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/pirtleshell.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-12-19T00:34:22.000Z","updated_at":"2020-04-03T20:31:45.000Z","dependencies_parsed_at":"2022-09-05T13:31:23.613Z","dependency_job_id":null,"html_url":"https://github.com/pirtleshell/string-tunings","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/pirtleshell%2Fstring-tunings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirtleshell%2Fstring-tunings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirtleshell%2Fstring-tunings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirtleshell%2Fstring-tunings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pirtleshell","download_url":"https://codeload.github.com/pirtleshell/string-tunings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251326839,"owners_count":21571636,"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-10-03T09:51:45.679Z","updated_at":"2025-04-28T14:09:23.420Z","avatar_url":"https://github.com/pirtleshell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# string-tunings\n\n\u003e :guitar: API for the tunings of string instruments\n\nStandard and common tunings for:\n\n* Guitar\n* Bass\n* Ukulele\n* Banjo\n* Mandolin\n* Cello\n* Viola\n* Violin\n\n## Install\n\nThe tunings are simply a [JSON file](https://github.com/PirtleShell/string-tunings/blob/master/tunings.json) that can be used anywhere.\n\n```sh\n$ npm install --save string-tunings\n```\n\n## Usage\n\nAll instruments have a `standard` key. Many have more. The tunings are `String`s on note letters, generally from low notes to high notes (_ie._ top to bottom string for guitar-like instruments, outermost to innermost for violin-like instruments).\n\n\n```js\nvar tunings = require('string-tunings');\n\ntunings.guitar.standard\n//=\u003e \"EADGBE\"\n\ntunings.guitar.open.G\n//=\u003e \"DGDGBD\"\n\ntunings.banjo.sawmill\n//=\u003e \"GDGBE\"\n\ntunings.toArray(tunings.ukulele.soprano)\n//=\u003e [ 'A', 'D', 'F#', 'B' ]\n```\n\n## Contributing\n\n**Contributions are welcome.** Keep the instruments alphabetically ordered for easy reading. Stay practical.\n\n## API\n\n### toArray\nConvert the strings in the JSON to an array of note names.\n\nexample:\n```js\ntunings.toArray(tunings.guitar.drop.Db)\n//=\u003e [ 'Db', 'Ab', 'Db', 'Gb', 'Bb', 'Eb' ]\n\ntunings.toArray(tunings.violin.cajun)\n//=\u003e [ 'F', 'C', 'G', 'D' ]\n```\n\n## License\n\nMIT \u0026copy; 2016 [Robert Pirtle](https://pirtle.xyz/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirtleshell%2Fstring-tunings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpirtleshell%2Fstring-tunings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirtleshell%2Fstring-tunings/lists"}