GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — New music command \= is not parsed correctly · Issue #178 · frescobaldi/python-ly

New music command \= is not parsed correctly #178

New issue
Copy link
New issue
Copy link
Open
Open
New music command \= is not parsed correctly#178
Copy link

Description

@ksnortum
ksnortum
opened on May 26, 2025
Issue body actions

In version 2.20, LilyPond introduced the \= command, which is used to assign IDs to slurs so thay can cross or line up correctly in a chord. For example:

\fixed c' { c\=1( d\=2( e\=1) f\=2) }
\fixed c' { <c\=A( e\=2^(>4 <d\=A) f\=2)> }

ly.lex does not parse this command correctly, leading to this issues in Frescobaldi: frescobaldi/frescobaldi#1964. It looks like new classifications will be needed, perhaps called "SlurAssignment" and "SlurId".

Using a simple Python script and the above LilyPond source code, you can see the problem:

import sys
import ly.lex

with open(sys.argv[1]) as f:
	txt = f.read()

for t in ly.lex.state("lilypond").tokens(txt):
	print(t, t.__class__.__name__)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.