{"action":"created","issue":{"url":"https://api.github.com/repos/rism-ch/verovio/issues/229","repository_url":"https://api.github.com/repos/rism-ch/verovio","labels_url":"https://api.github.com/repos/rism-ch/verovio/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/rism-ch/verovio/issues/229/comments","events_url":"https://api.github.com/repos/rism-ch/verovio/issues/229/events","html_url":"https://github.com/rism-ch/verovio/issues/229","id":163706931,"number":229,"title":"temporal bug in clef changes","user":{"login":"craigsapp","id":3487289,"avatar_url":"https://avatars.githubusercontent.com/u/3487289?v=3","gravatar_id":"","url":"https://api.github.com/users/craigsapp","html_url":"https://github.com/craigsapp","followers_url":"https://api.github.com/users/craigsapp/followers","following_url":"https://api.github.com/users/craigsapp/following{/other_user}","gists_url":"https://api.github.com/users/craigsapp/gists{/gist_id}","starred_url":"https://api.github.com/users/craigsapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigsapp/subscriptions","organizations_url":"https://api.github.com/users/craigsapp/orgs","repos_url":"https://api.github.com/users/craigsapp/repos","events_url":"https://api.github.com/users/craigsapp/events{/privacy}","received_events_url":"https://api.github.com/users/craigsapp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rism-ch/verovio/labels/1st%20priority","name":"1st priority","color":"eb6420"},{"url":"https://api.github.com/repos/rism-ch/verovio/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-04T16:20:50Z","updated_at":"2016-07-14T19:02:09Z","closed_at":"2016-07-14T19:02:09Z","body":"I am trying to convert the following Humdrum data into MEI for verovio:\r\n\r\n```\r\n**kern\r\n*clefG2\r\n*M4/4\r\n=1-\r\n*^\r\n4e          [1c\r\n4g          .\r\n4f          .\r\n4e          .\r\n=           =\r\n4f          2c]\r\n4b          .\r\n4a          2d\r\n4f          .\r\n*v          *v\r\n*clefF4\r\n=\r\n1C;\r\n=\r\n*-\r\n```\r\n\r\nIt has a clef change at the end of the first measure so that the next measure is in bass clef.\r\n\r\nThe expected rendering in verovio:\r\n\r\n![screen shot 2016-07-04 at 9 15 01 am](https://cloud.githubusercontent.com/assets/3487289/16566267/db348db2-41c7-11e6-832e-5251bed593b6.png)\r\n\r\nBut instead I get this rendering:\r\n\r\n![screen shot 2016-07-04 at 9 12 35 am](https://cloud.githubusercontent.com/assets/3487289/16566272/e30d6e82-41c7-11e6-90e4-8aa68dd6f0c2.png)\r\n\r\nWhere the clef-change at the end of layer 1 is retroactively placing all of layer 2 in the bass clef (but superimposed on the same staff as treble clef music of layer 1).\r\n\r\nThis seems to be an error in verovio, but you can comment on how the MEI data is organized (with a clef change indicated at the end of layer 1).\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<?xml-model href=\"http://music-encoding.org/schema/3.0.0/mei-all.rng\" type=\"application/xml\" schematypens=\"http://relaxng.org/ns/structure/1.0\"?>\r\n<?xml-model href=\"http://music-encoding.org/schema/3.0.0/mei-all.rng\" type=\"application/xml\" schematypens=\"http://purl.oclc.org/dsdl/schematron\"?>\r\n<mei xmlns=\"http://www.music-encoding.org/ns/mei\" meiversion=\"3.0.0\">\r\n    <meiHead>\r\n        <fileDesc>\r\n            <titleStmt>\r\n                <title />\r\n            </titleStmt>\r\n            <pubStmt>\r\n                <date>2016-07-04 09:18:00</date>\r\n            </pubStmt>\r\n        </fileDesc>\r\n        <encodingDesc>\r\n            <projectDesc>\r\n                <p>Transcoded from Humdrum with Verovio version 0.9.12-dev-b6a184c</p>\r\n            </projectDesc>\r\n        </encodingDesc>\r\n    </meiHead>\r\n    <music>\r\n        <body>\r\n            <mdiv>\r\n                <score>\r\n                    <scoreDef xml:id=\"scoredef-000000105329191\">\r\n                        <staffGrp xml:id=\"m-000000202014990\">\r\n                            <staffDef xml:id=\"staffdef-000000094291023\" clef.shape=\"G\" clef.line=\"2\" meter.count=\"4\" meter.unit=\"4\" n=\"1\" lines=\"5\" />\r\n                        </staffGrp>\r\n                    </scoreDef>\r\n                    <section>\r\n                        <measure xml:id=\"measure-000000121040439\" n=\"1\">\r\n                            <staff xml:id=\"staff-000000159178472\" n=\"1\">\r\n                                <!-- kern: =1-  *^  4e  4g  4f  4e  = -->\r\n                                <layer xml:id=\"layer-000000192213281\" n=\"1\">\r\n                                    <note xml:id=\"note-000000068975349\" dur=\"4\" oct=\"4\" pname=\"e\" accid.ges=\"n\" />\r\n                                    <note xml:id=\"note-000000057031438\" dur=\"4\" oct=\"4\" pname=\"g\" accid.ges=\"n\" />\r\n                                    <note xml:id=\"note-000000105426809\" dur=\"4\" oct=\"4\" pname=\"f\" accid.ges=\"n\" />\r\n                                    <note xml:id=\"note-000000019636849\" dur=\"4\" oct=\"4\" pname=\"e\" accid.ges=\"n\" />\r\n                                </layer>\r\n                                <!-- kern: [1c  = -->\r\n                                <layer xml:id=\"layer-000000183043048\" n=\"2\">\r\n                                    <note xml:id=\"note-000000134183408\" dur=\"1\" oct=\"4\" pname=\"c\" accid.ges=\"n\" />\r\n                                </layer>\r\n                            </staff>\r\n                            <tie xml:id=\"tie-000000030617622\" startid=\"note-000000134183408\" endid=\"note-000000063594527\" />\r\n                        </measure>\r\n                        <measure xml:id=\"measure-000000147968944\">\r\n                            <staff xml:id=\"staff-000000094252546\" n=\"1\">\r\n                                <!-- kern: =  4f  4b  4a  4f  *v  *clefF4  = -->\r\n                                <layer xml:id=\"layer-000000118614359\" n=\"1\">\r\n                                    <note xml:id=\"note-000000042473967\" dur=\"4\" oct=\"4\" pname=\"f\" accid.ges=\"n\" />\r\n                                    <note xml:id=\"note-000000036412551\" dur=\"4\" oct=\"4\" pname=\"b\" accid.ges=\"n\" />\r\n                                    <note xml:id=\"note-000000167667072\" dur=\"4\" oct=\"4\" pname=\"a\" accid.ges=\"n\" />\r\n                                    <note xml:id=\"note-000000052442552\" dur=\"4\" oct=\"4\" pname=\"f\" accid.ges=\"n\" />\r\n                                    <clef xml:id=\"clef-000000074694500\" shape=\"F\" line=\"4\" />\r\n                                </layer>\r\n                                <!-- kern: =  2c]  2d  *v -->\r\n                                <layer xml:id=\"layer-000000186271509\" n=\"2\">\r\n                                    <note xml:id=\"note-000000063594527\" dur=\"2\" oct=\"4\" pname=\"c\" accid.ges=\"n\" />\r\n                                    <note xml:id=\"note-000000053302897\" dur=\"2\" oct=\"4\" pname=\"d\" accid.ges=\"n\" />\r\n                                </layer>\r\n                            </staff>\r\n                        </measure>\r\n                        <measure xml:id=\"measure-000000146372480\">\r\n                            <staff xml:id=\"staff-000000020017636\" n=\"1\">\r\n                                <!-- kern: =  1C;  = -->\r\n                                <layer xml:id=\"layer-000000140480896\" n=\"1\">\r\n                                    <note xml:id=\"note-000000118909325\" dur=\"1\" fermata=\"above\" oct=\"3\" pname=\"c\" accid.ges=\"n\" />\r\n                                </layer>\r\n                            </staff>\r\n                        </measure>\r\n                    </section>\r\n                </score>\r\n            </mdiv>\r\n        </body>\r\n    </music>\r\n</mei>\r\n```"},"comment":{"url":"https://api.github.com/repos/rism-ch/verovio/issues/comments/232760776","html_url":"https://github.com/rism-ch/verovio/issues/229#issuecomment-232760776","issue_url":"https://api.github.com/repos/rism-ch/verovio/issues/229","id":232760776,"user":{"login":"lpugin","id":689412,"avatar_url":"https://avatars.githubusercontent.com/u/689412?v=3","gravatar_id":"","url":"https://api.github.com/users/lpugin","html_url":"https://github.com/lpugin","followers_url":"https://api.github.com/users/lpugin/followers","following_url":"https://api.github.com/users/lpugin/following{/other_user}","gists_url":"https://api.github.com/users/lpugin/gists{/gist_id}","starred_url":"https://api.github.com/users/lpugin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpugin/subscriptions","organizations_url":"https://api.github.com/users/lpugin/orgs","repos_url":"https://api.github.com/users/lpugin/repos","events_url":"https://api.github.com/users/lpugin/events{/privacy}","received_events_url":"https://api.github.com/users/lpugin/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T19:02:08Z","updated_at":"2016-07-14T19:02:08Z","body":"Fixed in d8be65507c7a8cfebc2d997dedd036c8317e728e"}}
{"actor":{"display_login":"lpugin"}}