{"id":4683,"url":"https://github.com/oliviachang29/react-native-tone","last_synced_at":"2025-08-04T01:32:59.111Z","repository":{"id":57340993,"uuid":"137866043","full_name":"oliviachang29/react-native-tone","owner":"oliviachang29","description":"🎶  Generate sine waves with frequency and amplitude (iOS only).","archived":false,"fork":false,"pushed_at":"2021-03-15T01:42:17.000Z","size":22,"stargazers_count":18,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-14T11:16:01.409Z","etag":null,"topics":["ios","react-native","tone"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-tone","language":"Objective-C","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/oliviachang29.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":"2018-06-19T08:58:04.000Z","updated_at":"2024-03-04T14:46:54.000Z","dependencies_parsed_at":"2022-09-08T01:50:21.654Z","dependency_job_id":null,"html_url":"https://github.com/oliviachang29/react-native-tone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oliviachang29/react-native-tone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliviachang29%2Freact-native-tone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliviachang29%2Freact-native-tone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliviachang29%2Freact-native-tone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliviachang29%2Freact-native-tone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oliviachang29","download_url":"https://codeload.github.com/oliviachang29/react-native-tone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oliviachang29%2Freact-native-tone/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266180250,"owners_count":23888723,"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":["ios","react-native","tone"],"created_at":"2024-01-05T20:17:20.181Z","updated_at":"2025-08-04T01:32:58.808Z","avatar_url":"https://github.com/oliviachang29.png","language":"Objective-C","funding_links":[],"categories":["Components"],"sub_categories":["Media"],"readme":"\n# react-native-tone 🎶\nSimple library for playing tones in React Native (iOS only). Bridge of https://github.com/picciano/iOS-Tone-Generator\n\n⚠️ Note: this library is **not actively maintained.**\n\n## Getting started\n\n```\nyarn add react-native-tone\n\nor\n\nnpm install react-native-tone --save\n```\n\n```\nreact-native link react-native-tone\n```\n\n## Usage\n\nGenerates simple sine wave, specify a frequency and amplitude. Play sound indefinitely or for a specified time interval.\n\n```\nimport RNTone from 'react-native-tone';\n\n// In constructor\nRNTone.initWithChannels(numChannels, volume) // initalize\n// volume ranges from 0.01-0.25\n\nRNTone.play() // play tone, indefinitely\nRNTone.playForDuration(seconds) // play specified time interval (in seconds)\nRNTone.stop() // stop tone\n\n// Example\nRNTone.initWithChannels(2, 0.25) // initalize two channels at full volume\nRNTone.setChannelFrequencies([440, 220]) // A4 and A3\nRNTone.playForDuration(0.5) // play for half a second\n```\n\n## Todo\n* Remove clicking sound at beginning and end of tone\n\nP.S. I'm still still learning Obj-C and bridging, so if anyone would like to help with this module they are very welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliviachang29%2Freact-native-tone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foliviachang29%2Freact-native-tone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foliviachang29%2Freact-native-tone/lists"}