{"id":18077201,"url":"https://github.com/trungdq88/chorddroid","last_synced_at":"2025-10-28T03:07:07.266Z","repository":{"id":11534663,"uuid":"14019181","full_name":"trungdq88/ChordDroid","owner":"trungdq88","description":"Android library to render Guitar Chord.","archived":false,"fork":false,"pushed_at":"2023-09-15T04:49:16.000Z","size":996,"stargazers_count":27,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-04T21:45:26.291Z","etag":null,"topics":["chords","draw","guitar","java"],"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/trungdq88.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":"2013-10-31T14:27:56.000Z","updated_at":"2024-12-02T09:28:09.000Z","dependencies_parsed_at":"2024-10-31T11:12:37.287Z","dependency_job_id":"c9defc18-fbea-4eee-a78c-d174d44337ab","html_url":"https://github.com/trungdq88/ChordDroid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/trungdq88/ChordDroid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trungdq88%2FChordDroid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trungdq88%2FChordDroid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trungdq88%2FChordDroid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trungdq88%2FChordDroid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trungdq88","download_url":"https://codeload.github.com/trungdq88/ChordDroid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trungdq88%2FChordDroid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265705726,"owners_count":23814495,"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":["chords","draw","guitar","java"],"created_at":"2024-10-31T11:12:28.872Z","updated_at":"2025-10-20T07:51:23.476Z","avatar_url":"https://github.com/trungdq88.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"What it looks like\n========\n\n![screen shot](https://raw.githubusercontent.com/trungdq88/ChordDroid/master/screenshot-1.png)\n\nFeatures\n========\n\n- Render chord based on chord name\n- Support normal chords and advanced chords: maj, add, sus, dim, aug...\n- Draw **all** hand positions for each chord\n- Transpose chord\n- Resizeable bitmap\n- Supports Android API \u003e= 4\n\n\nUsage\n===\n\nDraw to an existing `ImageView`:\n---\n\n    // Prepare data\n    Resources resources = activity.getResources();\n    int width = 200;\n    int height = 200;\n    String chordName = \"Am\";\n    int position = 0; // fret position index (0 to 8)\n    int transpose = 0; // transpose distance (-12 to 12)\n    \n    // Draw chord\n    BitmapDrawable chord = DrawHelper.getBitmapDrawable(\n        resources, width, height, chordName, position, transpose);\n        \n    // Display chord to your image view\n    yourImageView.setImageDrawable(chord);\n\nUse `ChordTextureView`:\n---\n\nIn your layout:\n\n    \u003ccom.dqt.libs.chorddroid.components.ChordTextureView\n        android:layout_width=\"150dp\"\n        android:layout_height=\"150dp\"\n        android:layout_marginLeft=\"20dp\"\n        android:layout_centerVertical=\"true\"\n        android:id=\"@+id/chord_texture_view\" /\u003e\n\nIn your code:\n\n    ChordTextureView chord = (ChordTextureView) findViewById(R.id.chord_texture_view);\n    chord.drawChord(\"Am\", 0);\n\nChord Helper\n===\n\n    ChordHelper.transpose(String chordName, int distance)\n    ChordHelper.getChord(String chordName, int position)\n    ChordHelper.simplifyName(String chordName)\n\n\nBuild the library\n===\n\n    ./gradlew assemble\n\nCheck `ChordDroidLibrary/build/outputs/arr` directory to find `ChordDroidLibrary-release.arr` files.\n\nAdd library to your project\n===\n\n1. Copy `aar` file to your `libs` directory\n2. Add following section to your gradle file:\n  \nAdd `flatDir` to your `repositories` tag:\n  \n    repositories {\n        ...\n        flatDir {\n            dirs 'libs'\n        }\n    }\n    \nAdd `compile` to your `dependencies` tag:\n\n    dependencies {\n        ...\n        compile(name:'ChordDroidLibrary-release', ext:'aar')\n    }\n    \n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrungdq88%2Fchorddroid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrungdq88%2Fchorddroid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrungdq88%2Fchorddroid/lists"}