{"action":"closed","issue":{"url":"https://api.github.com/repos/TerryCavanagh/boscaceoil/issues/9","labels_url":"https://api.github.com/repos/TerryCavanagh/boscaceoil/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/TerryCavanagh/boscaceoil/issues/9/comments","events_url":"https://api.github.com/repos/TerryCavanagh/boscaceoil/issues/9/events","html_url":"https://github.com/TerryCavanagh/boscaceoil/issues/9","id":71621921,"number":9,"title":"When loading a .ceol after a fresh start, the BPM is not set correctly.","user":{"login":"dy-dx","id":1074881,"avatar_url":"https://avatars.githubusercontent.com/u/1074881?v=3","gravatar_id":"","url":"https://api.github.com/users/dy-dx","html_url":"https://github.com/dy-dx","followers_url":"https://api.github.com/users/dy-dx/followers","following_url":"https://api.github.com/users/dy-dx/following{/other_user}","gists_url":"https://api.github.com/users/dy-dx/gists{/gist_id}","starred_url":"https://api.github.com/users/dy-dx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dy-dx/subscriptions","organizations_url":"https://api.github.com/users/dy-dx/orgs","repos_url":"https://api.github.com/users/dy-dx/repos","events_url":"https://api.github.com/users/dy-dx/events{/privacy}","received_events_url":"https://api.github.com/users/dy-dx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-28T15:28:54Z","updated_at":"2015-05-10T23:07:39Z","closed_at":"2015-05-10T23:07:39Z","body":"On Mac OSX build, using v1.1. Steps to reproduce:\r\n\r\n1. Start Bosca Ceoil (must be a fresh start, do not place any notes)\r\n2. Load a `.ceol` that has a BPM other than 120\r\n3. The displayed BPM will be correct, but the song will be playing at 120 BPM instead.\r\n\r\n\r\nThe workaround I am using in my [online version branch](https://github.com/dy-dx/boscaceoil/commit/61fa248f6b786bbaecd195621e35d8180612dd1a) is to delay the call to [`control._driver.play()`](https://github.com/TerryCavanagh/boscaceoil/blob/c57d784557cbaf6c26419558b1ba9b717c2e944f/src/controlclass.as#L201) until after a `.ceol` is loaded. This works for my purposes but I'm not sure how to fix this for the desktop version.\r\n\r\n\r\nI also noticed that if you start Bosca fresh, place a note somewhere and play it, and then load a .ceol, this bug does not occur."}}