{"action":"created","issue":{"url":"https://api.github.com/repos/alda-lang/alda/issues/254","repository_url":"https://api.github.com/repos/alda-lang/alda","labels_url":"https://api.github.com/repos/alda-lang/alda/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/alda-lang/alda/issues/254/comments","events_url":"https://api.github.com/repos/alda-lang/alda/issues/254/events","html_url":"https://github.com/alda-lang/alda/issues/254","id":167738721,"number":254,"title":"Event handlers for MIDI input","user":{"login":"daveyarwood","id":4909079,"avatar_url":"https://avatars.githubusercontent.com/u/4909079?v=3","gravatar_id":"","url":"https://api.github.com/users/daveyarwood","html_url":"https://github.com/daveyarwood","followers_url":"https://api.github.com/users/daveyarwood/followers","following_url":"https://api.github.com/users/daveyarwood/following{/other_user}","gists_url":"https://api.github.com/users/daveyarwood/gists{/gist_id}","starred_url":"https://api.github.com/users/daveyarwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveyarwood/subscriptions","organizations_url":"https://api.github.com/users/daveyarwood/orgs","repos_url":"https://api.github.com/users/daveyarwood/repos","events_url":"https://api.github.com/users/daveyarwood/events{/privacy}","received_events_url":"https://api.github.com/users/daveyarwood/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alda-lang/alda/labels/feature","name":"feature","color":"eb6420"},{"url":"https://api.github.com/repos/alda-lang/alda/labels/idea","name":"idea","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-26T23:53:48Z","updated_at":"2016-08-30T13:53:28Z","closed_at":null,"body":"I was daydreaming today and it occurred to me that we could add a live performance aspect to Alda by allowing users to define event handlers for MIDI events from input (e.g. a USB MIDI controller), using inline Clojure code.\r\n\r\nPseudocode representing the kind of thing a score writer could potentially do in an Alda score:\r\n\r\n```\r\n(on-midi-note [{:keys [midi-note velocity]}]\r\n  (part \"double-bass\"\r\n    (volume velocity)\r\n    (note (pitch midi-note)\r\n          (duration (note-length 1)))))\r\n```\r\n\r\nEach time a MIDI note-on message is received, the body of the user-defined function would be executed."},"comment":{"url":"https://api.github.com/repos/alda-lang/alda/issues/comments/243445745","html_url":"https://github.com/alda-lang/alda/issues/254#issuecomment-243445745","issue_url":"https://api.github.com/repos/alda-lang/alda/issues/254","id":243445745,"user":{"login":"daveyarwood","id":4909079,"avatar_url":"https://avatars.githubusercontent.com/u/4909079?v=3","gravatar_id":"","url":"https://api.github.com/users/daveyarwood","html_url":"https://github.com/daveyarwood","followers_url":"https://api.github.com/users/daveyarwood/followers","following_url":"https://api.github.com/users/daveyarwood/following{/other_user}","gists_url":"https://api.github.com/users/daveyarwood/gists{/gist_id}","starred_url":"https://api.github.com/users/daveyarwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveyarwood/subscriptions","organizations_url":"https://api.github.com/users/daveyarwood/orgs","repos_url":"https://api.github.com/users/daveyarwood/repos","events_url":"https://api.github.com/users/daveyarwood/events{/privacy}","received_events_url":"https://api.github.com/users/daveyarwood/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T13:53:28Z","updated_at":"2016-08-30T13:53:28Z","body":"Related: #259 (that issue is MIDI OUT, this one is MIDI IN)"}}
{"actor":{"display_login":"daveyarwood"}}