{"action":"created","comment":{"url":"https://api.github.com/repos/gregorio-project/gregorio/pulls/comments/68614509","id":68614509,"diff_hunk":"@@ -4028,6 +4028,33 @@ static void suppress_expansion(FILE *const f, const char *text)\n     }\n }\n \n+static int first_note_near_clef(const gregorio_score *const score) {\n+    gregorio_clef_info clef = gregorio_default_clef;\n+    if (score->first_voice_info) {\n+        clef = score->first_voice_info->initial_clef;\n+        if (!clef.secondary_line && !clef.flatted && score->first_syllable\n+                && score->first_syllable->elements) {\n+            gregorio_element *element = score->first_syllable->elements[0];\n+            if (element && element->type == GRE_ELEMENT) {\n+                gregorio_glyph *glyph = element->u.first_glyph;\n+                if (glyph && glyph->type == GRE_GLYPH) {\n+                    signed char clef_pitch = LOW_LINE_PITCH\n+                        + ((clef.line - 1) * 2);\n+                    gregorio_note *note = glyph->u.notes.first_note;\n+                    if (glyph->u.notes.glyph_type == G_PODATUS && note->next) {","path":"src/gregoriotex/gregoriotex-write.c","position":17,"original_position":17,"commit_id":"debdb7cbe985ea41ebb42aa51341c5acb7f4e24b","original_commit_id":"debdb7cbe985ea41ebb42aa51341c5acb7f4e24b","user":{"login":"eroux","id":60868,"avatar_url":"https://avatars.githubusercontent.com/u/60868?v=3","gravatar_id":"","url":"https://api.github.com/users/eroux","html_url":"https://github.com/eroux","followers_url":"https://api.github.com/users/eroux/followers","following_url":"https://api.github.com/users/eroux/following{/other_user}","gists_url":"https://api.github.com/users/eroux/gists{/gist_id}","starred_url":"https://api.github.com/users/eroux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eroux/subscriptions","organizations_url":"https://api.github.com/users/eroux/orgs","repos_url":"https://api.github.com/users/eroux/repos","events_url":"https://api.github.com/users/eroux/events{/privacy}","received_events_url":"https://api.github.com/users/eroux/received_events","type":"User","site_admin":false},"body":"don't hesitate to apply these changes directly, I won't have time today...","created_at":"2016-06-27T16:59:23Z","updated_at":"2016-06-27T16:59:23Z","html_url":"https://github.com/gregorio-project/gregorio/pull/1166#discussion_r68614509","pull_request_url":"https://api.github.com/repos/gregorio-project/gregorio/pulls/1166","_links":{"self":{"href":"https://api.github.com/repos/gregorio-project/gregorio/pulls/comments/68614509"},"html":{"href":"https://github.com/gregorio-project/gregorio/pull/1166#discussion_r68614509"},"pull_request":{"href":"https://api.github.com/repos/gregorio-project/gregorio/pulls/1166"}}},"pull_request":{"url":"https://api.github.com/repos/gregorio-project/gregorio/pulls/1166","id":75270282,"html_url":"https://github.com/gregorio-project/gregorio/pull/1166","diff_url":"https://github.com/gregorio-project/gregorio/pull/1166.diff","patch_url":"https://github.com/gregorio-project/gregorio/pull/1166.patch","issue_url":"https://api.github.com/repos/gregorio-project/gregorio/issues/1166","number":1166,"state":"open","locked":false,"title":"Fix 1138","user":{"login":"eroux","id":60868,"avatar_url":"https://avatars.githubusercontent.com/u/60868?v=3","gravatar_id":"","url":"https://api.github.com/users/eroux","html_url":"https://github.com/eroux","followers_url":"https://api.github.com/users/eroux/followers","following_url":"https://api.github.com/users/eroux/following{/other_user}","gists_url":"https://api.github.com/users/eroux/gists{/gist_id}","starred_url":"https://api.github.com/users/eroux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eroux/subscriptions","organizations_url":"https://api.github.com/users/eroux/orgs","repos_url":"https://api.github.com/users/eroux/repos","events_url":"https://api.github.com/users/eroux/events{/privacy}","received_events_url":"https://api.github.com/users/eroux/received_events","type":"User","site_admin":false},"body":"Fixes #1138.","created_at":"2016-06-27T08:03:06Z","updated_at":"2016-06-27T16:59:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1800173f1a0cd647afe4d467ba3cd221f5a874d","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/gregorio-project/gregorio/milestones/7","html_url":"https://github.com/gregorio-project/gregorio/milestones/4.2","labels_url":"https://api.github.com/repos/gregorio-project/gregorio/milestones/7/labels","id":1618956,"number":7,"title":"4.2","description":"Feature enhancements to 4.1 that won't require a major version","creator":{"login":"rpspringuel","id":7671682,"avatar_url":"https://avatars.githubusercontent.com/u/7671682?v=3","gravatar_id":"","url":"https://api.github.com/users/rpspringuel","html_url":"https://github.com/rpspringuel","followers_url":"https://api.github.com/users/rpspringuel/followers","following_url":"https://api.github.com/users/rpspringuel/following{/other_user}","gists_url":"https://api.github.com/users/rpspringuel/gists{/gist_id}","starred_url":"https://api.github.com/users/rpspringuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpspringuel/subscriptions","organizations_url":"https://api.github.com/users/rpspringuel/orgs","repos_url":"https://api.github.com/users/rpspringuel/repos","events_url":"https://api.github.com/users/rpspringuel/events{/privacy}","received_events_url":"https://api.github.com/users/rpspringuel/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":73,"state":"open","created_at":"2016-03-02T22:16:58Z","updated_at":"2016-06-27T08:03:06Z","due_on":"2016-04-29T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/gregorio-project/gregorio/pulls/1166/commits","review_comments_url":"https://api.github.com/repos/gregorio-project/gregorio/pulls/1166/comments","review_comment_url":"https://api.github.com/repos/gregorio-project/gregorio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gregorio-project/gregorio/issues/1166/comments","statuses_url":"https://api.github.com/repos/gregorio-project/gregorio/statuses/debdb7cbe985ea41ebb42aa51341c5acb7f4e24b","head":{"label":"gregorio-project:fix-1138","ref":"fix-1138","sha":"debdb7cbe985ea41ebb42aa51341c5acb7f4e24b","user":{"login":"gregorio-project","id":7902256,"avatar_url":"https://avatars.githubusercontent.com/u/7902256?v=3","gravatar_id":"","url":"https://api.github.com/users/gregorio-project","html_url":"https://github.com/gregorio-project","followers_url":"https://api.github.com/users/gregorio-project/followers","following_url":"https://api.github.com/users/gregorio-project/following{/other_user}","gists_url":"https://api.github.com/users/gregorio-project/gists{/gist_id}","starred_url":"https://api.github.com/users/gregorio-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregorio-project/subscriptions","organizations_url":"https://api.github.com/users/gregorio-project/orgs","repos_url":"https://api.github.com/users/gregorio-project/repos","events_url":"https://api.github.com/users/gregorio-project/events{/privacy}","received_events_url":"https://api.github.com/users/gregorio-project/received_events","type":"Organization","site_admin":false},"repo":{"id":20884374,"name":"gregorio","full_name":"gregorio-project/gregorio","owner":{"login":"gregorio-project","id":7902256,"avatar_url":"https://avatars.githubusercontent.com/u/7902256?v=3","gravatar_id":"","url":"https://api.github.com/users/gregorio-project","html_url":"https://github.com/gregorio-project","followers_url":"https://api.github.com/users/gregorio-project/followers","following_url":"https://api.github.com/users/gregorio-project/following{/other_user}","gists_url":"https://api.github.com/users/gregorio-project/gists{/gist_id}","starred_url":"https://api.github.com/users/gregorio-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregorio-project/subscriptions","organizations_url":"https://api.github.com/users/gregorio-project/orgs","repos_url":"https://api.github.com/users/gregorio-project/repos","events_url":"https://api.github.com/users/gregorio-project/events{/privacy}","received_events_url":"https://api.github.com/users/gregorio-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gregorio-project/gregorio","description":"The Gregorio Project","fork":false,"url":"https://api.github.com/repos/gregorio-project/gregorio","forks_url":"https://api.github.com/repos/gregorio-project/gregorio/forks","keys_url":"https://api.github.com/repos/gregorio-project/gregorio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gregorio-project/gregorio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gregorio-project/gregorio/teams","hooks_url":"https://api.github.com/repos/gregorio-project/gregorio/hooks","issue_events_url":"https://api.github.com/repos/gregorio-project/gregorio/issues/events{/number}","events_url":"https://api.github.com/repos/gregorio-project/gregorio/events","assignees_url":"https://api.github.com/repos/gregorio-project/gregorio/assignees{/user}","branches_url":"https://api.github.com/repos/gregorio-project/gregorio/branches{/branch}","tags_url":"https://api.github.com/repos/gregorio-project/gregorio/tags","blobs_url":"https://api.github.com/repos/gregorio-project/gregorio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gregorio-project/gregorio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gregorio-project/gregorio/git/refs{/sha}","trees_url":"https://api.github.com/repos/gregorio-project/gregorio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gregorio-project/gregorio/statuses/{sha}","languages_url":"https://api.github.com/repos/gregorio-project/gregorio/languages","stargazers_url":"https://api.github.com/repos/gregorio-project/gregorio/stargazers","contributors_url":"https://api.github.com/repos/gregorio-project/gregorio/contributors","subscribers_url":"https://api.github.com/repos/gregorio-project/gregorio/subscribers","subscription_url":"https://api.github.com/repos/gregorio-project/gregorio/subscription","commits_url":"https://api.github.com/repos/gregorio-project/gregorio/commits{/sha}","git_commits_url":"https://api.github.com/repos/gregorio-project/gregorio/git/commits{/sha}","comments_url":"https://api.github.com/repos/gregorio-project/gregorio/comments{/number}","issue_comment_url":"https://api.github.com/repos/gregorio-project/gregorio/issues/comments{/number}","contents_url":"https://api.github.com/repos/gregorio-project/gregorio/contents/{+path}","compare_url":"https://api.github.com/repos/gregorio-project/gregorio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gregorio-project/gregorio/merges","archive_url":"https://api.github.com/repos/gregorio-project/gregorio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gregorio-project/gregorio/downloads","issues_url":"https://api.github.com/repos/gregorio-project/gregorio/issues{/number}","pulls_url":"https://api.github.com/repos/gregorio-project/gregorio/pulls{/number}","milestones_url":"https://api.github.com/repos/gregorio-project/gregorio/milestones{/number}","notifications_url":"https://api.github.com/repos/gregorio-project/gregorio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gregorio-project/gregorio/labels{/name}","releases_url":"https://api.github.com/repos/gregorio-project/gregorio/releases{/id}","deployments_url":"https://api.github.com/repos/gregorio-project/gregorio/deployments","created_at":"2014-06-16T12:41:52Z","updated_at":"2016-05-30T09:11:02Z","pushed_at":"2016-06-27T08:03:06Z","git_url":"git://github.com/gregorio-project/gregorio.git","ssh_url":"git@github.com:gregorio-project/gregorio.git","clone_url":"https://github.com/gregorio-project/gregorio.git","svn_url":"https://github.com/gregorio-project/gregorio","homepage":"http://gregorio-project.github.io","size":84939,"stargazers_count":34,"watchers_count":34,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":26,"forks":15,"open_issues":26,"watchers":34,"default_branch":"master"}},"base":{"label":"gregorio-project:release-4.2","ref":"release-4.2","sha":"26d1496affb142eca66817cd092e3679e4dc6bc3","user":{"login":"gregorio-project","id":7902256,"avatar_url":"https://avatars.githubusercontent.com/u/7902256?v=3","gravatar_id":"","url":"https://api.github.com/users/gregorio-project","html_url":"https://github.com/gregorio-project","followers_url":"https://api.github.com/users/gregorio-project/followers","following_url":"https://api.github.com/users/gregorio-project/following{/other_user}","gists_url":"https://api.github.com/users/gregorio-project/gists{/gist_id}","starred_url":"https://api.github.com/users/gregorio-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregorio-project/subscriptions","organizations_url":"https://api.github.com/users/gregorio-project/orgs","repos_url":"https://api.github.com/users/gregorio-project/repos","events_url":"https://api.github.com/users/gregorio-project/events{/privacy}","received_events_url":"https://api.github.com/users/gregorio-project/received_events","type":"Organization","site_admin":false},"repo":{"id":20884374,"name":"gregorio","full_name":"gregorio-project/gregorio","owner":{"login":"gregorio-project","id":7902256,"avatar_url":"https://avatars.githubusercontent.com/u/7902256?v=3","gravatar_id":"","url":"https://api.github.com/users/gregorio-project","html_url":"https://github.com/gregorio-project","followers_url":"https://api.github.com/users/gregorio-project/followers","following_url":"https://api.github.com/users/gregorio-project/following{/other_user}","gists_url":"https://api.github.com/users/gregorio-project/gists{/gist_id}","starred_url":"https://api.github.com/users/gregorio-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregorio-project/subscriptions","organizations_url":"https://api.github.com/users/gregorio-project/orgs","repos_url":"https://api.github.com/users/gregorio-project/repos","events_url":"https://api.github.com/users/gregorio-project/events{/privacy}","received_events_url":"https://api.github.com/users/gregorio-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gregorio-project/gregorio","description":"The Gregorio Project","fork":false,"url":"https://api.github.com/repos/gregorio-project/gregorio","forks_url":"https://api.github.com/repos/gregorio-project/gregorio/forks","keys_url":"https://api.github.com/repos/gregorio-project/gregorio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gregorio-project/gregorio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gregorio-project/gregorio/teams","hooks_url":"https://api.github.com/repos/gregorio-project/gregorio/hooks","issue_events_url":"https://api.github.com/repos/gregorio-project/gregorio/issues/events{/number}","events_url":"https://api.github.com/repos/gregorio-project/gregorio/events","assignees_url":"https://api.github.com/repos/gregorio-project/gregorio/assignees{/user}","branches_url":"https://api.github.com/repos/gregorio-project/gregorio/branches{/branch}","tags_url":"https://api.github.com/repos/gregorio-project/gregorio/tags","blobs_url":"https://api.github.com/repos/gregorio-project/gregorio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gregorio-project/gregorio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gregorio-project/gregorio/git/refs{/sha}","trees_url":"https://api.github.com/repos/gregorio-project/gregorio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gregorio-project/gregorio/statuses/{sha}","languages_url":"https://api.github.com/repos/gregorio-project/gregorio/languages","stargazers_url":"https://api.github.com/repos/gregorio-project/gregorio/stargazers","contributors_url":"https://api.github.com/repos/gregorio-project/gregorio/contributors","subscribers_url":"https://api.github.com/repos/gregorio-project/gregorio/subscribers","subscription_url":"https://api.github.com/repos/gregorio-project/gregorio/subscription","commits_url":"https://api.github.com/repos/gregorio-project/gregorio/commits{/sha}","git_commits_url":"https://api.github.com/repos/gregorio-project/gregorio/git/commits{/sha}","comments_url":"https://api.github.com/repos/gregorio-project/gregorio/comments{/number}","issue_comment_url":"https://api.github.com/repos/gregorio-project/gregorio/issues/comments{/number}","contents_url":"https://api.github.com/repos/gregorio-project/gregorio/contents/{+path}","compare_url":"https://api.github.com/repos/gregorio-project/gregorio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gregorio-project/gregorio/merges","archive_url":"https://api.github.com/repos/gregorio-project/gregorio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gregorio-project/gregorio/downloads","issues_url":"https://api.github.com/repos/gregorio-project/gregorio/issues{/number}","pulls_url":"https://api.github.com/repos/gregorio-project/gregorio/pulls{/number}","milestones_url":"https://api.github.com/repos/gregorio-project/gregorio/milestones{/number}","notifications_url":"https://api.github.com/repos/gregorio-project/gregorio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gregorio-project/gregorio/labels{/name}","releases_url":"https://api.github.com/repos/gregorio-project/gregorio/releases{/id}","deployments_url":"https://api.github.com/repos/gregorio-project/gregorio/deployments","created_at":"2014-06-16T12:41:52Z","updated_at":"2016-05-30T09:11:02Z","pushed_at":"2016-06-27T08:03:06Z","git_url":"git://github.com/gregorio-project/gregorio.git","ssh_url":"git@github.com:gregorio-project/gregorio.git","clone_url":"https://github.com/gregorio-project/gregorio.git","svn_url":"https://github.com/gregorio-project/gregorio","homepage":"http://gregorio-project.github.io","size":84939,"stargazers_count":34,"watchers_count":34,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":26,"forks":15,"open_issues":26,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gregorio-project/gregorio/pulls/1166"},"html":{"href":"https://github.com/gregorio-project/gregorio/pull/1166"},"issue":{"href":"https://api.github.com/repos/gregorio-project/gregorio/issues/1166"},"comments":{"href":"https://api.github.com/repos/gregorio-project/gregorio/issues/1166/comments"},"review_comments":{"href":"https://api.github.com/repos/gregorio-project/gregorio/pulls/1166/comments"},"review_comment":{"href":"https://api.github.com/repos/gregorio-project/gregorio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gregorio-project/gregorio/pulls/1166/commits"},"statuses":{"href":"https://api.github.com/repos/gregorio-project/gregorio/statuses/debdb7cbe985ea41ebb42aa51341c5acb7f4e24b"}}}}
{"actor":{"display_login":"eroux"}}