{"action":"created","issue":{"url":"https://api.github.com/repos/0xfe/vexflow/issues/482","repository_url":"https://api.github.com/repos/0xfe/vexflow","labels_url":"https://api.github.com/repos/0xfe/vexflow/issues/482/labels{/name}","comments_url":"https://api.github.com/repos/0xfe/vexflow/issues/482/comments","events_url":"https://api.github.com/repos/0xfe/vexflow/issues/482/events","html_url":"https://github.com/0xfe/vexflow/issues/482","id":196112567,"number":482,"title":"EasyScore: rest in middle of measure not working (possible bug)","user":{"login":"graciano","id":3246681,"avatar_url":"https://avatars.githubusercontent.com/u/3246681?v=3","gravatar_id":"","url":"https://api.github.com/users/graciano","html_url":"https://github.com/graciano","followers_url":"https://api.github.com/users/graciano/followers","following_url":"https://api.github.com/users/graciano/following{/other_user}","gists_url":"https://api.github.com/users/graciano/gists{/gist_id}","starred_url":"https://api.github.com/users/graciano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graciano/subscriptions","organizations_url":"https://api.github.com/users/graciano/orgs","repos_url":"https://api.github.com/users/graciano/repos","events_url":"https://api.github.com/users/graciano/events{/privacy}","received_events_url":"https://api.github.com/users/graciano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-16T17:27:44Z","updated_at":"2016-12-16T19:30:30Z","closed_at":null,"body":"So, I'm messing with some strings with easyScore and when a rest is in the middle of a measure, it returns an error.\r\n\r\nThis string: `A4/8, B4/8, A4/8, B4/8, B4/8, A4/r8`(with a rest at the end) generates this ([fiddle here](https://jsfiddle.net/0b6hcc69/45/)) :\r\n\r\n![image](http://i.imgur.com/UeeZImA.png)\r\n\r\n--\r\n\r\nBut this string `A4/8, B4/8, A4/8, B4/r8, B4/8, A4/r8` (with a rest in the middle) generates an error ( [fiddle here](https://jsfiddle.net/0b6hcc69/44/)) :\r\n```javascript\r\nformatter.js:84 Uncaught RuntimeErrorcode: \"IncompleteVoice\"\r\nmessage: \"Voice does not have enough notes.\"\r\n\r\n__proto__: Object\r\n(anonymous) @ formatter.js:84\r\ncreateContexts @ formatter.js:76\r\ncreateModifierContexts @ formatter.js:404\r\njoinVoices @ formatter.js:659\r\n(anonymous) @ system.js:92\r\nformat @ system.js:89\r\n(anonymous) @ factory.js:329\r\ndraw @ factory.js:329\r\n(anonymous) @ embedded:18\r\ntransform.run @ VM161 babel.js:3192\r\nexec @ VM161 babel.js:3247\r\nrunScripts @ VM161 babel.js:3284\r\n```\r\n\r\n**AND** this string `A4/8, B4/8, A4/8, B4/8, A4/8, B4/r8, A4/8, A4/8`, that should return an error because it's too many notes in the same voice, renders just fine with the rest at the end, and ignoring notes after that. Seems to me that this is the reason I mentioned in #477 when it ignored a *too many notes* error.  [fiddle here](https://jsfiddle.net/0b6hcc69/46/)\r\n\r\nI tried looking into the files [easyscore.js](https://github.com/0xfe/vexflow/blob/d27e7b027b15c1bf583da9d583ccaede548c6b1a/src/easyscore.js) and [note.js](https://github.com/0xfe/vexflow/blob/5654fa3c492bde48a8189f9d13932b81818801e3/src/note.js) and couldn't find anything wrong."},"comment":{"url":"https://api.github.com/repos/0xfe/vexflow/issues/comments/267676559","html_url":"https://github.com/0xfe/vexflow/issues/482#issuecomment-267676559","issue_url":"https://api.github.com/repos/0xfe/vexflow/issues/482","id":267676559,"user":{"login":"Silverwolf90","id":1631625,"avatar_url":"https://avatars.githubusercontent.com/u/1631625?v=3","gravatar_id":"","url":"https://api.github.com/users/Silverwolf90","html_url":"https://github.com/Silverwolf90","followers_url":"https://api.github.com/users/Silverwolf90/followers","following_url":"https://api.github.com/users/Silverwolf90/following{/other_user}","gists_url":"https://api.github.com/users/Silverwolf90/gists{/gist_id}","starred_url":"https://api.github.com/users/Silverwolf90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Silverwolf90/subscriptions","organizations_url":"https://api.github.com/users/Silverwolf90/orgs","repos_url":"https://api.github.com/users/Silverwolf90/repos","events_url":"https://api.github.com/users/Silverwolf90/events{/privacy}","received_events_url":"https://api.github.com/users/Silverwolf90/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T19:30:30Z","updated_at":"2016-12-16T19:30:30Z","body":"Thank you for the thorough report (and especially the fiddles)!\r\n\r\nThis does appear to be a bug. I haven't looked at the code yet, but discovered that if you let the duration carry over instead of setting it every time)([fiddle](https://jsfiddle.net/0b6hcc69/47/)) that it behaves as expected."}}
{"actor":{"display_login":"Silverwolf90"}}