{"id":18118553,"url":"https://github.com/munshkr/rawmidi-ruby","last_synced_at":"2026-04-28T08:02:57.047Z","repository":{"id":56891028,"uuid":"80296210","full_name":"munshkr/rawmidi-ruby","owner":"munshkr","description":"Ruby FFI binding for ALSA RawMIDI","archived":false,"fork":false,"pushed_at":"2017-02-13T14:30:19.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-15T04:52:52.663Z","etag":null,"topics":["alsa","alsa-rawmidi","midi","ruby"],"latest_commit_sha":null,"homepage":null,"language":"C","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/munshkr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-28T16:46:16.000Z","updated_at":"2017-01-30T05:14:45.000Z","dependencies_parsed_at":"2022-08-20T15:20:42.712Z","dependency_job_id":null,"html_url":"https://github.com/munshkr/rawmidi-ruby","commit_stats":null,"previous_names":["munshkr/rawmidi-rb"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/munshkr/rawmidi-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munshkr%2Frawmidi-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munshkr%2Frawmidi-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munshkr%2Frawmidi-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munshkr%2Frawmidi-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/munshkr","download_url":"https://codeload.github.com/munshkr/rawmidi-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munshkr%2Frawmidi-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32371673,"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":["alsa","alsa-rawmidi","midi","ruby"],"created_at":"2024-11-01T05:12:15.834Z","updated_at":"2026-04-28T08:02:57.012Z","avatar_url":"https://github.com/munshkr.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rawmidi-rb\n\nALSA RawMIDI bindings for Ruby\n\n\n## Usage\n\n### List cards and devices\n\n```ruby\nRawMIDI::Card.all\n#=\u003e [#\u003cRawMIDI::Card:0x002af7bb0f26ec hw:0 \"HDA Intel PCH\"\u003e,\n     #\u003cRawMIDI::Card:0x002af7bb0f269c hw:1 \"CH345\"\u003e]\n\ncard = RawMIDI::Card.new(1)\n#=\u003e #\u003cRawMIDI::Card:0x002af7bb094b3c hw:1 \"CH345\"\u003e\n\ncard.outputs\n#=\u003e [#\u003cRawMIDI::Output:0x002af7bb489760 hw:1,0,0 \"CH345\" closed\u003e]\n\nRawMIDI::Output.all\n#=\u003e [#\u003cRawMIDI::Output:0x002af7bb489760 hw:1,0,0 \"CH345\" closed\u003e]\n```\n\n### MIDI Output\n\n```ruby\nout = RawMIDI::Output.all.first\nout.open\n\nout.write [0x90, 60, 100]   # note on\n\nsleep 1\n\nout.write [0x90, 60, 0]     # note off\nout.close\n```\n\n### MIDI Input\n\n*to do*\n\n\n## Installation\n\n*NOTE*: This is still incomplete, so I still haven't published it to Rubygems.\nYou'll need to clone the repository and install it with `rake install`, or use\nBundler.\n\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rawmidi'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rawmidi\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake test` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push\ngit commits and tags, and push the `.gem` file to\n[rubygems.org](https://rubygems.org).\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/munshkr/rawmidi-rb. This project is intended to be a safe,\nwelcoming space for collaboration, and contributors are expected to adhere to\nthe [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT\nLicense](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunshkr%2Frawmidi-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmunshkr%2Frawmidi-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunshkr%2Frawmidi-ruby/lists"}