{"id":16125772,"url":"https://github.com/dy/piano-key","last_synced_at":"2025-06-20T16:11:40.729Z","repository":{"id":31062332,"uuid":"34621143","full_name":"dy/piano-key","owner":"dy","description":"Piano keys frequences","archived":false,"fork":false,"pushed_at":"2015-08-28T02:48:03.000Z","size":152,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-20T16:11:23.610Z","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/dy.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-04-26T16:51:41.000Z","updated_at":"2023-02-19T09:00:36.000Z","dependencies_parsed_at":"2022-08-17T18:05:34.364Z","dependency_job_id":null,"html_url":"https://github.com/dy/piano-key","commit_stats":null,"previous_names":["audio-lab/piano-key"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dy/piano-key","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fpiano-key","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fpiano-key/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fpiano-key/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fpiano-key/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/piano-key/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fpiano-key/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260976894,"owners_count":23091526,"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-09T21:31:48.632Z","updated_at":"2025-06-20T16:11:35.716Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Piano-key [![Build Status](https://travis-ci.org/dfcreative/piano-key.svg?branch=master)](https://travis-ci.org/dfcreative/piano-key) [![Code Climate](https://codeclimate.com/github/dfcreative/piano-key/badges/gpa.svg)](https://codeclimate.com/github/dfcreative/piano-key) [![unstable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nTools for working with [piano keys and frequencies](http://en.wikipedia.org/wiki/Piano_key_frequencies).\n\n[![npm install piano-key](https://nodei.co/npm/piano-key.png?mini=true)](https://nodei.co/npm/piano-key/)\n\n\n```js\nvar key = require('piano-key');\n\nkey.getName(49);\t\t\t\t//A4\nkey.getFrequency(49);\t\t\t//440\nkey.getFrequency('A4');\t\t\t//440\nkey.getNumber('A4');\t\t\t//49\nkey.getNumber(440);\t\t\t\t//49\nkey.getOctave(49);\t\t\t\t//4\nkey.getNote(50);\t\t\t\t//A#\nkey.getNote('A#4');\t\t\t\t//A#\n\nkey.isBlack(49);\t\t\t\t//false\nkey.isBlack(48);\t\t\t\t//true\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fpiano-key","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Fpiano-key","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fpiano-key/lists"}