{"action":"created","issue":{"url":"https://api.github.com/repos/lenmus/lomse/issues/118","repository_url":"https://api.github.com/repos/lenmus/lomse","labels_url":"https://api.github.com/repos/lenmus/lomse/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/lenmus/lomse/issues/118/comments","events_url":"https://api.github.com/repos/lenmus/lomse/issues/118/events","html_url":"https://github.com/lenmus/lomse/issues/118","id":294346754,"number":118,"title":"Adding Notation on rendered score","user":{"login":"sensibol","id":14214856,"avatar_url":"https://avatars1.githubusercontent.com/u/14214856?v=4","gravatar_id":"","url":"https://api.github.com/users/sensibol","html_url":"https://github.com/sensibol","followers_url":"https://api.github.com/users/sensibol/followers","following_url":"https://api.github.com/users/sensibol/following{/other_user}","gists_url":"https://api.github.com/users/sensibol/gists{/gist_id}","starred_url":"https://api.github.com/users/sensibol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensibol/subscriptions","organizations_url":"https://api.github.com/users/sensibol/orgs","repos_url":"https://api.github.com/users/sensibol/repos","events_url":"https://api.github.com/users/sensibol/events{/privacy}","received_events_url":"https://api.github.com/users/sensibol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-05T10:41:45Z","updated_at":"2018-02-06T12:17:13Z","closed_at":null,"author_association":"NONE","body":"Is It possible to add additional notes over notes loaded from file. I would like functionality \r\ninteractor->addNote(time value)\r\npresenter-> update()\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lenmus/lomse/issues/comments/363405208","html_url":"https://github.com/lenmus/lomse/issues/118#issuecomment-363405208","issue_url":"https://api.github.com/repos/lenmus/lomse/issues/118","id":363405208,"user":{"login":"cecilios","id":5238679,"avatar_url":"https://avatars3.githubusercontent.com/u/5238679?v=4","gravatar_id":"","url":"https://api.github.com/users/cecilios","html_url":"https://github.com/cecilios","followers_url":"https://api.github.com/users/cecilios/followers","following_url":"https://api.github.com/users/cecilios/following{/other_user}","gists_url":"https://api.github.com/users/cecilios/gists{/gist_id}","starred_url":"https://api.github.com/users/cecilios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cecilios/subscriptions","organizations_url":"https://api.github.com/users/cecilios/orgs","repos_url":"https://api.github.com/users/cecilios/repos","events_url":"https://api.github.com/users/cecilios/events{/privacy}","received_events_url":"https://api.github.com/users/cecilios/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T12:17:13Z","updated_at":"2018-02-06T12:17:13Z","author_association":"OWNER","body":"If cursor is pointing to an empty place, you can always move it to a valid place. For instance:\r\n```\r\ncursor.move_next();\r\ncursor.move_prev();\r\n```\r\n\r\nIn any case, it is important to note that rules for music notation impose constrains on valid places (time positions) for inserting notes, rests or other objects. Therefore, it is not possible (at least in lomse) to place notes on arbitrary time positions. In fact, as in any music score on paper, time position for a note is implied by its position on the staff in relation to previous notes.\r\n\r\nIn lomse, the music is basically a list of objects (mainly notes and rests) on the staff. These objects are ImoStaffObj objects. For inserting a new staffobj you can either:\r\n- append the new staffobj at the end, and\r\n- insert the new staffobj before an *existing* staffobj\r\nIn both cases, the time position for the new added staffobj will be implied by the preceding staffobjs in the staff.\r\n\r\nFor instance, in lomse a quarter note lasts for 64 TimeUnits. So, for instance, in an score with three quarter notes c4, e4 and c5, note c4 is at time 0, note e4 is at time 64 and note c5 is at time 128.\r\n\r\nIf you insert a new quarter note (pitch g4) before c5 note, the the new inserted note will be at time 128 and the c5 note will be shifted to time 128+64 = 192.\r\n\r\nIf you would like that note c5 remains at time 128, then the new inserted note must be on a different voice or the inserted note should be added to form a chord.\r\n\r\nModifying the internal model by using the Direct edition API requires a good understanding of lomse internals, at least about the internal model organization, cursors and API methods. I will start soon to document all this but it will take some time.\r\n\r\nCould you tell me exactly what are you trying to achieve, so that I can better guide you?\r\n"}}
{"actor":{"display_login":"cecilios"}}