{"id":30767769,"url":"https://github.com/youpy/go-coremidi","last_synced_at":"2025-09-04T20:09:25.738Z","repository":{"id":6781770,"uuid":"8028938","full_name":"youpy/go-coremidi","owner":"youpy","description":"A Go library to use MIDI on Mac","archived":false,"fork":false,"pushed_at":"2024-11-17T11:18:36.000Z","size":49,"stargazers_count":15,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-17T12:20:24.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/youpy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-05T12:50:11.000Z","updated_at":"2024-11-17T11:18:39.000Z","dependencies_parsed_at":"2022-09-15T22:01:30.308Z","dependency_job_id":null,"html_url":"https://github.com/youpy/go-coremidi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/youpy/go-coremidi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpy%2Fgo-coremidi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpy%2Fgo-coremidi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpy%2Fgo-coremidi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpy%2Fgo-coremidi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youpy","download_url":"https://codeload.github.com/youpy/go-coremidi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpy%2Fgo-coremidi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273666005,"owners_count":25146279,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"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":"2025-09-04T20:09:24.170Z","updated_at":"2025-09-04T20:09:25.727Z","avatar_url":"https://github.com/youpy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-coremidi\n\nA Go library to use MIDI on Mac\n\n## Installation\n\n```\ngo get github.com/youpy/go-coremidi\n```\n\n## Synopsis\n\n### Monitor MIDI Messages\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/youpy/go-coremidi\"\n)\n\nfunc main() {\n\tclient, err := coremidi.NewClient(\"a client\")\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\tport, err := coremidi.NewInputPort(\n\t\tclient,\n\t\t\"test\",\n\t\tfunc(source coremidi.Source, packet coremidi.Packet) {\n\t\t\tfmt.Printf(\n\t\t\t\t\"device: %v, manufacturer: %v, source: %v, data: %v\\n\",\n\t\t\t\tsource.Entity().Device().Name(),\n\t\t\t\tsource.Manufacturer(),\n\t\t\t\tsource.Name(),\n\t\t\t\tpacket.Data,\n\t\t\t)\n\t\t\treturn\n\t\t},\n\t)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\tsources, err := coremidi.AllSources()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\tfor _, source := range sources {\n\t\tfunc(source coremidi.Source) {\n\t\t\tport.Connect(source)\n\t\t}(source)\n\t}\n\n\tch := make(chan int)\n\t\u003c-ch\n}\n```\n\n## Documents\n\n* http://godoc.org/github.com/youpy/go-coremidi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoupy%2Fgo-coremidi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoupy%2Fgo-coremidi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoupy%2Fgo-coremidi/lists"}