{"id":16753463,"url":"https://github.com/thbar/demo-elixir-reloading-music","last_synced_at":"2025-03-21T22:32:15.499Z","repository":{"id":66410826,"uuid":"90127994","full_name":"thbar/demo-elixir-reloading-music","owner":"thbar","description":"Demonstrating Elixir code reloading ability (with music events generation)","archived":false,"fork":false,"pushed_at":"2018-11-09T12:51:10.000Z","size":557,"stargazers_count":54,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T05:51:18.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/thbar.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-03T08:48:00.000Z","updated_at":"2024-10-14T11:31:52.000Z","dependencies_parsed_at":"2023-02-24T00:30:31.737Z","dependency_job_id":null,"html_url":"https://github.com/thbar/demo-elixir-reloading-music","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/thbar%2Fdemo-elixir-reloading-music","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Fdemo-elixir-reloading-music/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Fdemo-elixir-reloading-music/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Fdemo-elixir-reloading-music/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thbar","download_url":"https://codeload.github.com/thbar/demo-elixir-reloading-music/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880449,"owners_count":20525507,"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-13T02:50:10.363Z","updated_at":"2025-03-21T22:32:15.494Z","avatar_url":"https://github.com/thbar.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"The code in this repository demonstrates how to use Elixir \"hot-reloading\"\nfeature, together with MIDI events generation.\n\nYoutube link:\n\n* https://www.youtube.com/watch?v=_VgcUatTilU\u0026feature=youtu.be\u0026t=2m2s\n\nSlides:\n\n* https://speakerdeck.com/thbar/elixir-hot-reloading-and-midi-events-generation\n\nIn short:\n\n* `reloading.exs` monitors the file system and hot-reloads `music.exs`\n* `music.exs`:\n  * relies on `GenServer` to ensure the \"midi player\" will keep state between code reloads\n  * creates a \"tick\" every 50 milliseconds\n  * uses `portmidi` to send MIDI events to [Renoise](https://www.renoise.com)\n\n### How to use?\n\n* Install [Renoise](https://www.renoise.com) demo and load `Song.xrns`\n* Run the code:\n\n```\nbrew install portmidi\nmix deps.get\nmix run --no-halt reloading.exs\n```\n\n* Edit `music.exs` to play around\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthbar%2Fdemo-elixir-reloading-music","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthbar%2Fdemo-elixir-reloading-music","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthbar%2Fdemo-elixir-reloading-music/lists"}