{"action":"closed","issue":{"url":"https://api.github.com/repos/hugbug/conpianist/issues/8","repository_url":"https://api.github.com/repos/hugbug/conpianist","labels_url":"https://api.github.com/repos/hugbug/conpianist/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/hugbug/conpianist/issues/8/comments","events_url":"https://api.github.com/repos/hugbug/conpianist/issues/8/events","html_url":"https://github.com/hugbug/conpianist/issues/8","id":302105624,"number":8,"title":"Connect to piano and initialise piano functions","user":{"login":"hugbug","id":3368402,"avatar_url":"https://avatars1.githubusercontent.com/u/3368402?v=4","gravatar_id":"","url":"https://api.github.com/users/hugbug","html_url":"https://github.com/hugbug","followers_url":"https://api.github.com/users/hugbug/followers","following_url":"https://api.github.com/users/hugbug/following{/other_user}","gists_url":"https://api.github.com/users/hugbug/gists{/gist_id}","starred_url":"https://api.github.com/users/hugbug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugbug/subscriptions","organizations_url":"https://api.github.com/users/hugbug/orgs","repos_url":"https://api.github.com/users/hugbug/repos","events_url":"https://api.github.com/users/hugbug/events{/privacy}","received_events_url":"https://api.github.com/users/hugbug/received_events","type":"User","site_admin":false},"labels":[{"id":854216371,"url":"https://api.github.com/repos/hugbug/conpianist/labels/feature","name":"feature","color":"55e059","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/hugbug/conpianist/milestones/1","html_url":"https://github.com/hugbug/conpianist/milestone/1","labels_url":"https://api.github.com/repos/hugbug/conpianist/milestones/1/labels","id":3159427,"number":1,"title":"v1.0","description":"First usable version.","creator":{"login":"hugbug","id":3368402,"avatar_url":"https://avatars1.githubusercontent.com/u/3368402?v=4","gravatar_id":"","url":"https://api.github.com/users/hugbug","html_url":"https://github.com/hugbug","followers_url":"https://api.github.com/users/hugbug/followers","following_url":"https://api.github.com/users/hugbug/following{/other_user}","gists_url":"https://api.github.com/users/hugbug/gists{/gist_id}","starred_url":"https://api.github.com/users/hugbug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugbug/subscriptions","organizations_url":"https://api.github.com/users/hugbug/orgs","repos_url":"https://api.github.com/users/hugbug/repos","events_url":"https://api.github.com/users/hugbug/events{/privacy}","received_events_url":"https://api.github.com/users/hugbug/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":7,"state":"open","created_at":"2018-03-04T17:53:32Z","updated_at":"2018-03-04T17:57:45Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-03-04T17:48:49Z","updated_at":"2018-03-04T17:57:45Z","closed_at":"2018-03-04T17:57:45Z","author_association":"OWNER","body":"For app to correctly show status of buttons like Guide and Lights as well as correct status of playback controls the app must know the current state of the piano. There are no midi-messages defined to read the status from the piano. \r\n\r\nTherefore our app must set certain functions of the piano in order to know the status if these functions. This is also how Smart Pianist app works - when it starts it initialises all piano functions to bring  the piano into a known state (the state the app had the last time it was used).\r\n\r\nWe will do the same - when our app starts it should set functions Guide, Lights etc. to certain values. Then we can show correct status of the buttons. Default values at the moment are:\r\n - Guide=off;\r\n - Lights=on;\r\n - Tone=on.\r\n\r\nLater we can implement saving and restoring of the last app status but for now we will use the above values.\r\n\r\nWhen should these values be set? We add a new button \"Connect\" which must be clicked first after the app is started. All other controls remains disabled until the button \"Connect\" is clicked. In addition to initialising the above functions the connect-procedure will read piano model and firmware version and show them for information purposes.\r\n\r\nIn the future the app should connect on start automatically but this function is not part of this issue; we need to implement saving of settings (midi-port and ip-address) first before the automatic connection can be implement. That's for later."}}
{"actor":{"display_login":"hugbug"}}