{"id":16906582,"url":"https://github.com/rsms/ortho-remote","last_synced_at":"2025-04-11T15:26:34.178Z","repository":{"id":61661789,"uuid":"380844616","full_name":"rsms/ortho-remote","owner":"rsms","description":"Some code for playing with the Teenage Engineering Ortho Remote","archived":false,"fork":false,"pushed_at":"2021-06-28T00:17:05.000Z","size":27,"stargazers_count":18,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T15:26:34.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-27T21:53:38.000Z","updated_at":"2025-01-25T19:20:37.000Z","dependencies_parsed_at":"2022-10-20T00:45:37.144Z","dependency_job_id":null,"html_url":"https://github.com/rsms/ortho-remote","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fortho-remote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fortho-remote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fortho-remote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fortho-remote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsms","download_url":"https://codeload.github.com/rsms/ortho-remote/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429855,"owners_count":21101906,"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-13T18:43:24.015Z","updated_at":"2025-04-11T15:26:34.155Z","avatar_url":"https://github.com/rsms.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ortho-remote\n\nC program for interfacing with the\n[Teenage Engineering Ortho Remote](https://teenage.engineering/products/orthoremote).\n\n- Currently only implemented for macOS\n- Puts the remote into MIDI mode which means it has a fixed range of values\n\n### Usage\n\nEither build and run the provided `ortho` program\nor copy the source files in `src` into your project and use the `ortho.h` interface.\n\n### Example\n\n```c\n#include \"ortho.h\"\n#include \u003cstdlib.h\u003e // malloc \u0026 free\n#include \u003cstdio.h\u003e  // printf\n\nstatic void onmsg(const OrthoMsg* msg, void* userdata) {\n  switch (msg-\u003eev) {\n    case ORTHO_RESTING: printf(\"button is up\\n\"); break;\n    case ORTHO_PRESSED: printf(\"button is down\\n\"); break;\n    case ORTHO_VALUE:   printf(\"value %f\\n\", msg-\u003evalue); break;\n    default:            printf(\"%s\\n\", ortho_event_name(msg-\u003eev));\n  }\n}\n\nint main(int argc, char *argv[]) {\n  Ortho* ortho = ortho_create(malloc, free);\n  if (!ortho) {\n    return 1;\n  }\n  ortho_runloop(ortho, onmsg, NULL);\n  ortho_free(ortho);\n  return 0;\n}\n\n```\n\nBuild \u0026 run:\n\n```sh\n$ make\n$ ./ortho\nCONNECT\nbutton is up\nvalue 0.007874\nvalue 0.000000\nvalue 0.007874\nvalue 0.015748\nvalue 0.023622\nvalue 0.031496\nbutton is down\nvalue 0.039370\nvalue 0.047244\nbutton is up\nvalue 0.055118\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fortho-remote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsms%2Fortho-remote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fortho-remote/lists"}