{"action":"created","issue":{"url":"https://api.github.com/repos/newlandsvalley/elm-comidi/issues/8","repository_url":"https://api.github.com/repos/newlandsvalley/elm-comidi","labels_url":"https://api.github.com/repos/newlandsvalley/elm-comidi/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/newlandsvalley/elm-comidi/issues/8/comments","events_url":"https://api.github.com/repos/newlandsvalley/elm-comidi/issues/8/events","html_url":"https://github.com/newlandsvalley/elm-comidi/issues/8","id":278727203,"number":8,"title":"Running status assumes data bytes are grouped in twos","user":{"login":"rhofour","id":821442,"avatar_url":"https://avatars2.githubusercontent.com/u/821442?v=4","gravatar_id":"","url":"https://api.github.com/users/rhofour","html_url":"https://github.com/rhofour","followers_url":"https://api.github.com/users/rhofour/followers","following_url":"https://api.github.com/users/rhofour/following{/other_user}","gists_url":"https://api.github.com/users/rhofour/gists{/gist_id}","starred_url":"https://api.github.com/users/rhofour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhofour/subscriptions","organizations_url":"https://api.github.com/users/rhofour/orgs","repos_url":"https://api.github.com/users/rhofour/repos","events_url":"https://api.github.com/users/rhofour/events{/privacy}","received_events_url":"https://api.github.com/users/rhofour/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-12-02T23:25:35Z","updated_at":"2017-12-05T16:27:30Z","closed_at":"2017-12-05T16:27:30Z","author_association":"COLLABORATOR","body":"I believe it's possible to have running status with something like Channel Aftertouch where you could get an odd number of data bytes."},"comment":{"url":"https://api.github.com/repos/newlandsvalley/elm-comidi/issues/comments/349358595","html_url":"https://github.com/newlandsvalley/elm-comidi/issues/8#issuecomment-349358595","issue_url":"https://api.github.com/repos/newlandsvalley/elm-comidi/issues/8","id":349358595,"user":{"login":"newlandsvalley","id":1901936,"avatar_url":"https://avatars2.githubusercontent.com/u/1901936?v=4","gravatar_id":"","url":"https://api.github.com/users/newlandsvalley","html_url":"https://github.com/newlandsvalley","followers_url":"https://api.github.com/users/newlandsvalley/followers","following_url":"https://api.github.com/users/newlandsvalley/following{/other_user}","gists_url":"https://api.github.com/users/newlandsvalley/gists{/gist_id}","starred_url":"https://api.github.com/users/newlandsvalley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newlandsvalley/subscriptions","organizations_url":"https://api.github.com/users/newlandsvalley/orgs","repos_url":"https://api.github.com/users/newlandsvalley/repos","events_url":"https://api.github.com/users/newlandsvalley/events{/privacy}","received_events_url":"https://api.github.com/users/newlandsvalley/received_events","type":"User","site_admin":false},"created_at":"2017-12-05T16:27:30Z","updated_at":"2017-12-05T16:27:30Z","author_association":"OWNER","body":"I think this is relevant on page 92 of the spec:\r\n\r\n> The receiver should always hold the last status byte in a Running Status buffer in case the transmitter is utilizing Running Status to reduce the number of bytes sent. This also means the receiver has to determine how many data bytes (one or two) are associated with each message. \r\n\r\nIt then gives an algorithm for how it should behave and says:\r\n\r\n> The data bytes are ignored when the value of the status buffer is 0 (zero).\r\n\r\nwhich happens when there is no last status byte.  This defines the behaviour for live streams, but it does imply that some sort of 'live stream parser' needs to store state between messages.  How we do that, I'm not sure.\r\n\r\nIn the case of the file parser, we can follow this mechanism, I hope, if we save event state each time we parse an event and thus make the last status byte available to a subsequent running status event."}}
{"actor":{"display_login":"newlandsvalley"}}