-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export to .dez format [FEATURE] #47
Comments
Few changes to plan :
|
What about a default : LABEL_LINES = {
"Harmony": "bot.1", # first line below
"Phrase": "bot.2", # second line
"Localkey": "bot.3",
"Cadence": "all", # vertical line
#"Texture": "top.3", # first line above the score
#"Structure": "top.2" # Warning : top level structure could also use "top.1" ?
} ? |
According to the .dez examples and specifications, the lines can be defined globally in the "layout". However, the local definition of "line" in a DezrannLabel overwrites the global line. Thus, I suggest to remove the "line" key from DezrannLabels, and insert DEFAULT_LAYOUT = [
{"filter" : { "type": "Harmony" }, "style" : {"line": "bot.1"}},
{"filter" : { "type": "Phrase" }, "style" : {"line": "bot.2"}},
{"filter" : { "type": "Localkey" }, "style" : {"line": "bot.3"}},
{"filter" : { "type": "Cadence" }, "style" : {"line": "all"}},
#{"filter" : { "type": "Texture" }, "style" : {"line": "top.3"}},
#{"filter" : { "type": "Structure", "tag": "Exposition" }, "style" : {"line": "top.1"}}, # Optional : will ensure that these top level structure labels are on a separate line from other structure labels
#{"filter" : { "type": "Structure", "tag": "Development" }, "style" : {"line": "top.1"}},
#{"filter" : { "type": "Structure", "tag": "Recapitulation" }, "style" : {"line": "top.1"}},
{"filter" : { "type": "Structure" }, "style" : {"line": "top.2"}}
] In addition of the "line" in "style", we also can add a "color" for each category of labels. |
OK we've gotten pretty far already, @Pythouille2 ! Do you have any updates on the anacrusis question? |
Hi @johentsch ! I just talked with @Pythouille2, we're glad that this export is working. Anacrusis seems to work (on K283.1). More elaborated cases are questions linked to the measure map, but that are separate issues. Louis showed me the DCML .tsv, we talk on that here for Dezrann. |
Describe the solution you'd like
ms3 transform
command should have an option to exportexpanded
harmony tables to the JSON format .dez of Algomus' Dezrann app. In addition, the converter should be a standalone script.Concrete ToDos (Optional)
line
for each #49line
(three above, three below) (Separating DCML labels into separate Dezrann layers for conversion #50)add a test case for a set of labels issued elsewhere, e.g. .rntxt converted to a DataFrame(not planned)quarterbeats_all_endings
are now included with all facets by default (v2.2.0)The text was updated successfully, but these errors were encountered: