[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
abc2ly: Support R (rhythm / meter) and Z (transcription) fields (issue 3
From: |
paulwmorris |
Subject: |
abc2ly: Support R (rhythm / meter) and Z (transcription) fields (issue 324890043 by address@hidden) |
Date: |
Mon, 22 May 2017 12:43:38 -0700 |
Reviewers: ,
Message:
Please review,
-Paul
Description:
abc2ly: Support R (rhythm / meter) and Z (transcription) fields
Please review this at https://codereview.appspot.com/324890043/
Affected files (+5, -1 lines):
M scripts/abc2ly.py
Index: scripts/abc2ly.py
diff --git a/scripts/abc2ly.py b/scripts/abc2ly.py
index
752f97f3be6a27bc785a97e6411b6c2d3b72e739..e6e0d12407e4ed53006ee529da85f55f7ac7dbab
100644
--- a/scripts/abc2ly.py
+++ b/scripts/abc2ly.py
@@ -761,8 +761,12 @@ def try_parse_header_line (ln, state):
lyrics_append(a)
if g == 'w': # vocals
slyrics_append (a)
- if g == 'Q': #tempo
+ if g == 'Q': # tempo
try_parse_q (a)
+ if g == 'R': # Rhythm (e.g. jig, reel, hornpipe)
+ header['meter'] = a
+ if g == 'Z': # Transcription (e.g. Steve Mansfield 1/2/2000)
+ header['transcription'] = a
return ''
return ln
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- abc2ly: Support R (rhythm / meter) and Z (transcription) fields (issue 324890043 by address@hidden),
paulwmorris <=