{"id":20216669,"url":"https://github.com/developer-shivam/waveview","last_synced_at":"2025-04-10T15:13:15.505Z","repository":{"id":115367988,"uuid":"68715763","full_name":"developer-shivam/WaveView","owner":"developer-shivam","description":"Create sine waves","archived":false,"fork":false,"pushed_at":"2016-09-23T05:17:37.000Z","size":4249,"stargazers_count":80,"open_issues_count":0,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T13:11:21.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/developer-shivam.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-20T13:41:39.000Z","updated_at":"2024-05-24T04:42:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"abf9a519-a6d4-473d-bb56-61546e79036c","html_url":"https://github.com/developer-shivam/WaveView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-shivam%2FWaveView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-shivam%2FWaveView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-shivam%2FWaveView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-shivam%2FWaveView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer-shivam","download_url":"https://codeload.github.com/developer-shivam/WaveView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243205,"owners_count":21071054,"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-11-14T06:29:11.788Z","updated_at":"2025-04-10T15:13:15.499Z","avatar_url":"https://github.com/developer-shivam.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WaveView - Android custom view.\n\n[![License](https://img.shields.io/badge/License-Apache%202-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n[![API](https://img.shields.io/badge/API-8%2B-brightred.svg)](https://github.com/developer-shivam/WaveView.git)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-WaveView-green.svg?style=true)](https://android-arsenal.com/details/1/4378)\n\n### Min SDK 9 (Android 2.3–2.3.1 Gingerbread)\n\n### Preview\n![gif](screenshots/wave_gif.gif) ![screenshot](screenshots/screenshot.png) \n\n### About\nThis custom view is sturctured of Sine Wave Equation.\n\nThe sine wave formula is : \ny(t) = A sin(2πft + ρ) = A sin(ωt + ρ)\n\nThe above formula can be explained in sound terms as follows:\n\ny = amplitude X sin ( 2π ( velocity of rotation in cycles per second))\n\nIncreasing the amplitude of the sine wave, how high the tops and bottoms of the wave go, increases the volume.  Increasing or decreasing the cycle rate, how many cycles over distance/time, increases and decreases the pitch of the sound – how high or low the tone sounds.\n\n### Implementation (XML)\n\n```xml\n\t\u003cdeveloper.shivam.library.WaveView\n        android:id=\"@+id/sample_wave_view\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        wave:wave_speed=\"1\"\n        wave:wave_height=\"2\"/\u003e\n```\n### Implementation (Java)\n``` java\nWaveView view = new WaveView(this);\n        view.setSpeed(5);\n        view.setAmplitude(5);\n        setContentView(view);\n```\n\nTo use this awesome library you first need to add below lines to build.gradle at your project root level\n\n```xml\nallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url \"https://jitpack.io\" }\n\t\t}\n\t}\n```\n\nAnd then add dependency to your app build.gradle file\n```xml\ndependencies {\n\t        compile 'com.github.developer-shivam:WaveView:1.0'\n\t}\n```\n\nAnd you're done! Don't forget to give a star.\n\n#### Features \n- Two attribute to control wave behaviour.\n- One for controlling the amplitude of wave (Height of wave).\n- Second to control speed of wave (Movement along x-axis).\n\n#### What else to come \n- Wave height controlled with sound input\n- Different color palettes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-shivam%2Fwaveview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper-shivam%2Fwaveview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-shivam%2Fwaveview/lists"}