{"id":16944618,"url":"https://github.com/krgn/tinymidi","last_synced_at":"2026-05-14T21:38:02.813Z","repository":{"id":7711378,"uuid":"9076502","full_name":"krgn/tinymidi","owner":"krgn","description":"Alsa Raw MIDI Library ","archived":false,"fork":false,"pushed_at":"2013-03-28T12:23:13.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-04T15:43:47.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krgn.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-28T12:22:49.000Z","updated_at":"2024-04-17T21:03:13.000Z","dependencies_parsed_at":"2022-07-06T22:09:59.034Z","dependency_job_id":null,"html_url":"https://github.com/krgn/tinymidi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/krgn/tinymidi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krgn%2Ftinymidi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krgn%2Ftinymidi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krgn%2Ftinymidi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krgn%2Ftinymidi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krgn","download_url":"https://codeload.github.com/krgn/tinymidi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krgn%2Ftinymidi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33044462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":[],"created_at":"2024-10-13T21:18:44.580Z","updated_at":"2026-05-14T21:38:02.794Z","avatar_url":"https://github.com/krgn.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"*tinymidi* - a small C library for doing MIDI on GNU/Linux\n==========\n\n### Abstract ###\n\nOn Android, its difficult to work with USB-Midi devices. Even if building your\nown ROM and adding kernel-level support for such devices, there is no library to\naccess those drivers functionality easily as alsa-lib has been removed from\nandroid a while ago and cannot be built against bionic. This small library\nintends to provide simple access to such raw Midi device files for read and\nwriting data to.\n\n## Building ##\n\nBuilding tinymidi should be straight forward. On GNU/Linux or equivalent, just\nrun `make` in the project directory. Adding tinymidi to an android project is\nslightly more involved, as it requires using the JNI as well as a kernel\nconfigured to include raw MIDI drivers.\n\n### Dependencies: ###\n\nGNU make, gcc, and glibc\n\n### GNU/Linux ###\n\n1) configure the target installation directory by editing `Makefile`\n\n2) run `make`\n\n3) run `sudo make install`\n\n### Android ###\n\n(TODO)\n\n## Usage ##\n\n1) include `tinimidi.h` in your project\n\n2) open a midi device file (e.g. `/dev/midi2`) using `rawmidi_hw_open` (see\ntests for more detailed information)\n\n3) read/write from/to the device using `rawmidi_hw_write` \u0026 `rawmidi_hw_read`\n\n4) close the device file descriptor using `rawmidi_rw_close`\n\n## Licence ##\n\n*tinymidi* is licensed under the `GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007`\nas per [http://www.gnu.org/copyleft/lesser.html](http://www.gnu.org/copyleft/lesser.html)\n\n## Credit ##\n\nLarge parts of the source code are inspired by, or exerpts from the the\n*alsa-lib* project, which can be found here: \n[http://www.alsa-project.org/](http://www.alsa-project.org/) - thanks to them\nfor their hard work!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrgn%2Ftinymidi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrgn%2Ftinymidi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrgn%2Ftinymidi/lists"}