Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

In ABC notation, inline notation of key and time signature changes in the middle of a song using [] does not convert correctly to MusicXML.

Đang mở
#1,672 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Start by reproducing the report with converter.parse(abc_string, format='abc') followed by score.write('musicxml', ...), using the ABC source from the issue. The issue says that splitting the inline [K:] and [M:] changes onto their own lines produces correct output, so compare the two written MusicXML files to see where the key and meter changes are lost. Done when the single-line version produces the same key and time signature changes as the split version.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement-request

music21 version

9.1.0

Problem summary

Converting a score written in ABC notation to MusicXML may result in incorrect MusicXML output.

Steps to reproduce

ABC notation source

X:1
L:1/8
M:6/8
K:C#
c B A G |[K:Cb][M:3/8] F/ E/ D/ |] 

Music21 code fragment

score = converter.parse(abc_string, format='abc')       
score.write('musicxml', output_file)   

Expected vs. actual behavior

Expected
スクリーンショット 2023-12-13 15 49 36

Actual
スクリーンショット 2023-12-13 15 55 26

More information

X:1
L:1/8
M:6/8
K:C#
c B A G |\
K:Cb
M:3/8
F/ E/ D/ |]

is OK.

Ngôn ngữ chính
Python
Star
2.6k
Fork
459
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
40

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cuthbertLab/music21

Tất cả issue của cuthbertLab/music21

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.