Skip to content

translate.py uses old GUILE syntax #1791

@jeremy9959

Description

@jeremy9959

Music21 Version

9.7.0

Operating System(s) checked
Mac OS 15.5

Problem summary
The lilypond translation uses old GUILE syntax. So for example

\override VerticalAxisGroup #'remove-first = ##t

should be

\override VerticalAxisGroup.remove-first=##t

There are many places in translate.py where this happens.

Steps to reproduce

import music21 as m21

music=[m21.note.Note('G4'),m21.note.Note('A4')]
s = m21.stream.Score(music)

s.show('lily')

Note also that lilypond \RemoveEmptyStaffContext is now \RemoveAllEmptyStaves.

Expected vs. actual behavior
Basically all of the many examples of
ClassName #'attribute = value
need to be changed to
ClassName.attribute=value
in translate.py.

More information
I'm willing to put a PR together if this is a change that you're interested in making. But it could cause problems for people using older versions of lilypond.

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