{"id":16651277,"url":"https://github.com/vvzen/osc-route-midi-examples","last_synced_at":"2026-04-10T23:05:32.666Z","repository":{"id":40841152,"uuid":"251753519","full_name":"vvzen/osc-route-midi-examples","owner":"vvzen","description":"Collections of examples of sending/receiving MIDI/OSC that can be useful for live visuals","archived":false,"fork":false,"pushed_at":"2023-01-05T18:12:31.000Z","size":1466,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-07T00:35:23.478Z","etag":null,"topics":["midi","midi-player","midiplayer","nodejs","osc","processing","routing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/vvzen.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}},"created_at":"2020-03-31T22:04:15.000Z","updated_at":"2023-09-08T18:05:18.000Z","dependencies_parsed_at":"2023-02-04T09:30:29.723Z","dependency_job_id":null,"html_url":"https://github.com/vvzen/osc-route-midi-examples","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/vvzen%2Fosc-route-midi-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvzen%2Fosc-route-midi-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvzen%2Fosc-route-midi-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvzen%2Fosc-route-midi-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vvzen","download_url":"https://codeload.github.com/vvzen/osc-route-midi-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243238976,"owners_count":20259132,"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":["midi","midi-player","midiplayer","nodejs","osc","processing","routing"],"created_at":"2024-10-12T09:24:29.799Z","updated_at":"2025-12-27T00:51:27.175Z","avatar_url":"https://github.com/vvzen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# osc-route-midi-examples ✏️🎶💻🎨\n\nThis repo hosts a series of tiny examples that will hopefully make your life easier if you're trying to do real time visuals or music, new media installation work, etc.. 👨🏻‍🎨👩🏻‍🎤\n\nHope this helps someone!\n\n\n## processing\\_read\\_midi\n\n*Processing*\n\nSimple example that shows how to read MIDI from a file and how to send via OSC some of the attributes of each note while the file is being played.\nIt uses the sequence object from the `javax.sound.midi` package, and the oscp5 processing library.\nOSC messages are sent on localhost using UDP as transport.\nOriginal creedits for the code go to Hamoid, who wrote [this tiny wrapper class]([https://github.com/hamoid/Fun-Programming/tree/master/processing/ideas/2017/04/MidiViz]) to facilitate dealing with MIDI.\n\nYou also can run it in background via the `processing-java` binary.\n\n`processing-java --sketch=/full/path/to/processing_read_midi --run`\n\n\nYou can also export the .pde sketch to an app if you want:\n\n`processing-java --sketch=/full/path/to/processing_read_midi --output=/where/you/like --export`\n\n## node\\_receive\\_osc\n\n*NodeJS*\n\nThis example shows how to receive OSC messages in NodeJS using the `osc` nodejs package.\n\n\n## node\\_bridge\\_osc\n\n*NodeJS* *Threejs*\n\nThis slightly more complex example shows how to forward OSC messages from NodeJS to the browser using **WebSockets** using the `osc` and `ws` packages.\n\nIn this way you can have your browser side library (like *p5js* or *threejs*) creating graphics in the browser but reacting to inputs that could come from any application/framework that supports sending OSC messages via UDP (which means a lot of apps like Vezér or Ableton Live, etc.. or creative coding frameworks like Processing or Openframeworks).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvzen%2Fosc-route-midi-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvvzen%2Fosc-route-midi-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvzen%2Fosc-route-midi-examples/lists"}