{"action":"created","issue":{"url":"https://api.github.com/repos/gregorio-project/gregorio/issues/157","labels_url":"https://api.github.com/repos/gregorio-project/gregorio/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/gregorio-project/gregorio/issues/157/comments","events_url":"https://api.github.com/repos/gregorio-project/gregorio/issues/157/events","html_url":"https://github.com/gregorio-project/gregorio/issues/157","id":64646179,"number":157,"title":"Improvement of flats line by line","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-26T22:20:13Z","updated_at":"2015-05-11T20:38:36Z","closed_at":null,"body":"Flats can have convoluted meanings, and occur until the end of the line, so Gregorio should know be able to add flats or naturals at beginning of line.\r\n\r\nMore details explanation, from a mail on the mailing-list.\r\n\r\nCurrently this is the part of score production that is most laborious for me, because the flats and naturals have to be readjusted manually each time depending on the width and text/chant size of the score. If we were able to have a more absolute system of flats that could appear or not appear depending on the context, that would go a long way towards making an individual GABC file much more flexible.\r\n\r\nAs far as I know, there are two different systems in 19th/20th century chant books for notating flats and naturals.\r\n\r\n1) In the Vatican edition, a flat applies until a natural, or a division line, or a new word.\r\n\r\n2) In Dominican chant books, a flat applies until a natural or the end of a line.\r\n\r\nI think that the best way to notate flats in GABC should be to put a flat indication on every note that ought to be flat, and then have Gregorio determine when to actually print the flats in relation to the rules of the flats. If this change was to be implemented, perhaps it could be done in a way that left that current system in place (and would thus be backwards compatible) but which added a flat or natural to a note in a way analogous to the notations that add a rhythmic mark to a note, i.e., by putting a letter after the pitch/height indication. As an offhand suggestion, you could use % for flat: [e.g.: A(i%)men.(j)]\r\n\r\nA specific letter-notation for natural would not be necessary because a natural would be added automatically if the flat was not present in the notation."},"comment":{"url":"https://api.github.com/repos/gregorio-project/gregorio/issues/comments/101040827","html_url":"https://github.com/gregorio-project/gregorio/issues/157#issuecomment-101040827","issue_url":"https://api.github.com/repos/gregorio-project/gregorio/issues/157","id":101040827,"user":{"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},"created_at":"2015-05-11T20:38:36Z","updated_at":"2015-05-11T20:38:36Z","body":"I think that the Dominican rules could be supported.  We can tell when a new line begins because GregorioTeX needs to print the staff lines at the beginning of each line (as well as the clef that goes at the beginning of the line).  By piggy backing onto an event like this, we can reset a visibility tracker which determines whether or not an accidental needs to be shown."}}