Title: Export issues on explicitly placed rests via \rest command · Issue #147 · frescobaldi/python-ly · GitHub
Open Graph Title: Export issues on explicitly placed rests via \rest command · Issue #147 · frescobaldi/python-ly
X Title: Export issues on explicitly placed rests via \rest command · Issue #147 · frescobaldi/python-ly
Description: Hello, thank you for the software in the first place! Unfortunately I seem to trigger a bug upon explicitely placed \rest commands: Minimum failing example: \version "2.22.2" \score { << \new Staff { \time 2/4 \clef "treble" \key c \majo...
Open Graph Description: Hello, thank you for the software in the first place! Unfortunately I seem to trigger a bug upon explicitely placed \rest commands: Minimum failing example: \version "2.22.2" \score { << \new Staff...
X Description: Hello, thank you for the software in the first place! Unfortunately I seem to trigger a bug upon explicitely placed \rest commands: Minimum failing example: \version "2.22.2" \score { <...
Opengraph URL: https://github.com/frescobaldi/python-ly/issues/147
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Export issues on explicitly placed rests via \\rest command","articleBody":"Hello, thank you for the software in the first place! Unfortunately I seem to trigger a bug upon explicitely placed \\rest commands:\r\n\r\nMinimum failing example:\r\n\r\n```\r\n\\version \"2.22.2\"\r\n\r\n\\score {\r\n \u003c\u003c\r\n\t\\new Staff {\r\n\t \\time 2/4\r\n\t \\clef \"treble\" \\key c \\major\r\n\t \\relative b' {\r\n\t\tb4. b8 \\rest\r\n\t }\r\n\t}\r\n >>\r\n}\r\n```\r\n\r\nThis simple snippet cannot be exported to musicxml:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"/usr/bin/ly\", line 4, in \u003cmodule>\r\n sys.exit(main())\r\n File \"/usr/lib/python3.10/site-packages/ly/cli/main.py\", line 288, in main\r\n c.run(options, cursor, output)\r\n File \"/usr/lib/python3.10/site-packages/ly/cli/command.py\", line 222, in run\r\n xml = writer.musicxml()\r\n File \"/usr/lib/python3.10/site-packages/ly/musicxml/lymus2musxml.py\", line 156, in musicxml\r\n self.mediator.check_score()\r\n File \"/usr/lib/python3.10/site-packages/ly/musicxml/ly2xml_mediator.py\", line 314, in check_score\r\n self.score.merge_globally(self.score.glob_section, override=True)\r\n File \"/usr/lib/python3.10/site-packages/ly/musicxml/xml_objs.py\", line 261, in merge_globally\r\n p.merge_voice(section, override)\r\n File \"/usr/lib/python3.10/site-packages/ly/musicxml/xml_objs.py\", line 342, in merge_voice\r\n org_v.inject_voice(add_v, override, self.active_slur_count)\r\n File \"/usr/lib/python3.10/site-packages/ly/musicxml/xml_objs.py\", line 521, in inject_voice\r\n if new_voice.obj_list[0].has_attr():\r\nIndexError: list index out of range\r\n```\r\n\r\nOn the other hand, it exports just fine on lilypond itself and looks like valid lilypond to me. Rewriting the rest by replacing `b8 \\rest` with `r8` on the other hand works fine.\r\n\r\nVersion: 0.9.7.r1.gf24b840-1 (current git master)\r\n\r\nThanks for reading this far! Please let me know if you need any further information of I can be of any further assistance\r\n ~ Simon","author":{"url":"https://github.com/noctux","@type":"Person","name":"noctux"},"datePublished":"2022-10-09T22:20:35Z","url":"https://github.com/frescobaldi/python-ly/issues/147"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c309e4ea-c14d-489e-e829-43491d66e912 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0CA:3F508E:275A0DF:33EB735:6B09B74F |
| html-safe-nonce | 80109a02e7a4c650eff4240cd05f2f519cee4a2e058c5406f3f824ab0f2a2c87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMENBOjNGNTA4RToyNzVBMERGOjMzRUI3MzU6NkIwOUI3NEYiLCJ2aXNpdG9yX2lkIjoiODk3ODU1MjQzODg1Mjc5NDE5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6004e45317f96175009580dc27dc68a1933759bbf899d3981268d08b62cd4f1f |
| hovercard-subject-tag | issue:1402415942 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/frescobaldi/python-ly/147/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77d13c3f89ee1b6eddcbfd3679db09c85dac47f1dc332d468e407d2ec7e7c6d3/frescobaldi/python-ly/issues/147 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77d13c3f89ee1b6eddcbfd3679db09c85dac47f1dc332d468e407d2ec7e7c6d3/frescobaldi/python-ly/issues/147 |
| og:image:alt | Hello, thank you for the software in the first place! Unfortunately I seem to trigger a bug upon explicitely placed \rest commands: Minimum failing example: \version "2.22.2" \score { << \new Staff... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | noctux |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29e6866c4c5b6697a062df08d37fa80bbfb75810ca4280c0d277f04956012d39 |
| turbo-cache-control | no-preview |
| go-import | github.com/frescobaldi/python-ly git https://github.com/frescobaldi/python-ly.git |
| octolytics-dimension-user_id | 19853952 |
| octolytics-dimension-user_login | frescobaldi |
| octolytics-dimension-repository_id | 29728425 |
| octolytics-dimension-repository_nwo | frescobaldi/python-ly |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 29728425 |
| octolytics-dimension-repository_network_root_nwo | frescobaldi/python-ly |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e72aac8801621433bb0313888fbbe243f5998abc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width