{"id":17610034,"url":"https://github.com/darnfish/use-tx-6","last_synced_at":"2026-04-28T08:35:10.108Z","repository":{"id":65231840,"uuid":"586987072","full_name":"darnfish/use-tx-6","owner":"darnfish","description":"React hooks for accessing teenage engineering TX-6 inputs","archived":false,"fork":false,"pushed_at":"2023-02-17T00:11:56.000Z","size":165,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-21T01:45:45.998Z","etag":null,"topics":["react","react-hooks","teenage-engineering","tx-6"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/darnfish.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":"2023-01-09T17:42:13.000Z","updated_at":"2025-05-19T22:12:21.000Z","dependencies_parsed_at":"2024-10-23T00:49:20.620Z","dependency_job_id":"0a36d52d-943c-4b1c-b37c-83e55e894f52","html_url":"https://github.com/darnfish/use-tx-6","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/darnfish/use-tx-6","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnfish%2Fuse-tx-6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnfish%2Fuse-tx-6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnfish%2Fuse-tx-6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnfish%2Fuse-tx-6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darnfish","download_url":"https://codeload.github.com/darnfish/use-tx-6/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnfish%2Fuse-tx-6/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32373511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["react","react-hooks","teenage-engineering","tx-6"],"created_at":"2024-10-22T17:43:04.302Z","updated_at":"2026-04-28T08:35:10.061Z","avatar_url":"https://github.com/darnfish.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# useTX6\nA set of React hooks for interacting with teenage engineering TX-6 over BLE MIDI\n\n## Installation\n```\nyarn add use-tx-6\n```\n\n## Usage\nThe following demo will let you adjust the font size of the text using the slider for channel 1:\n```tsx\nimport useTX6, { useTX6Attribute } from 'use-tx-6'\n\nexport default function App() {\n  const { connect, status, error } = useTX6()\n\n  const { progress } = useTX6Attribute('input1.slider')\n\n  switch(status) {\n  case 'disconnected':\n    return (\n      \u003c\u003e\n        \u003cbutton onClick={connect}\u003econnect to TX-6\u003c/button\u003e\n        {error \u0026\u0026 (\n          \u003cp\u003eerror connecting to TX-6: {error.toString()}\u003c/p\u003e\n        )}\n      \u003c/\u003e\n    )\n  case 'connecting':\n    return (\n      \u003cp\u003econnecting to TX-6...\u003c/p\u003e\n    )\n  }\n\n  return (\n    \u003cspan style={{ fontSize: `${progress * 100}px` }}\u003econnected to TX-6\u003c/span\u003e\n  )\n}\n```\n\nIf you want to access multiple attributes at the same time, use `useTX6Attributes`—this is useful for the EQ knobs:\n```tsx\nconst [{ progress: eq1 }, { progress: eq2 }, { progress: eq3 }] = useTX6Attributes(['input1.eq1', 'input1.eq2', 'input1.eq3'])\n```\n\n## Thanks\nInspired by [this demo](https://twitter.com/hturan/status/1523702486258782208) by [@hturan@twitter.com](https://twitter.com/hturan).\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarnfish%2Fuse-tx-6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarnfish%2Fuse-tx-6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarnfish%2Fuse-tx-6/lists"}