Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pae2xml
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kainhofer
pae2xml
Commits
dd0b2be1
Commit
dd0b2be1
authored
14 years ago
by
Reinhold Kainhofer
Browse files
Options
Downloads
Patches
Plain Diff
Fix rhythmic model enclosed by beaming (pull beaming after the rhythmic model)
parent
daef3e6a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pae2xml.pl
+2
-2
2 additions, 2 deletions
pae2xml.pl
sample_files/4-11d-Shortcuts-rhythmic-model-beaming.pae
+8
-0
8 additions, 0 deletions
sample_files/4-11d-Shortcuts-rhythmic-model-beaming.pae
with
10 additions
and
2 deletions
pae2xml.pl
+
2
−
2
View file @
dd0b2be1
...
@@ -256,6 +256,7 @@ sub parse_notes {
...
@@ -256,6 +256,7 @@ sub parse_notes {
$notes
=~
s/(\.|\d|\,|\')qq/qq$1/gs
;
# pull beginning mark of group of grace notes in front of corresponding notes
$notes
=~
s/(\.|\d|\,|\')qq/qq$1/gs
;
# pull beginning mark of group of grace notes in front of corresponding notes
$notes
=~
s/(xx|x|bb|b|n)qq/qq$1/gs
;
# qq first, then parts of notes
$notes
=~
s/(xx|x|bb|b|n)qq/qq$1/gs
;
# qq first, then parts of notes
$notes
=~
s/([\.\d,'xbn])+(q|g)/$2$1/gs
;
# q and g first, then parts of notes
$notes
=~
s/([\.\d,'xbn])+(q|g)/$2$1/gs
;
# q and g first, then parts of notes
$notes
=~
s/(\{)(\d\.*(\d\.*)+)/$2$1/gs
;
# pull beaming inside a rhythmic model
# Beam starts/endings are handled by the first/last note of the beam, since
# Beam starts/endings are handled by the first/last note of the beam, since
# we need to know for the first note the <beam>begin</beam> and for the
# we need to know for the first note the <beam>begin</beam> and for the
...
@@ -424,8 +425,7 @@ sub parse_notes {
...
@@ -424,8 +425,7 @@ sub parse_notes {
}
}
elsif ($notes =~ s/(\d+\.*)\(({?(g|q)?(\,|
\'
)*(x|xx|b|bb|n)?\d*\.*(\-|A|B|C|D|E|F|G)t?\+?}?)\)/\($1$2\)/gs) { # pull duration into fermata parentheses
elsif ($notes =~ s/(\d+\.*)\(({?(g|q)?(\,|
\'
)*(x|xx|b|bb|n)?\d*\.*(\-|A|B|C|D|E|F|G)t?\+?}?)\)/\($1$2\)/gs) { # pull duration into fermata parentheses
# print "after replacement: $notes\n"; exit;
# print "after replacement: $notes\n"; exit;
}
} elsif ($notes =~ /^ +(.*)$/) {
elsif ($notes =~ /^ +(.*)$/) {
$notes = $1;
$notes = $1;
print("Invalid space encountered in notes before $notes\n");
print("Invalid space encountered in notes before $notes\n");
}
}
...
...
This diff is collapsed.
Click to expand it.
sample_files/4-11d-Shortcuts-rhythmic-model-beaming.pae
0 → 100644
+
8
−
0
View file @
dd0b2be1
Test Composer
Test case for a rhythmic model with enclosing beaming
1.1.1: S rhythmic model with enclosing beaming
plain&easy: %G-2@c$xFC {8.6''FADD}{DFEG}/{FA}{DD}
pae2xml Test Suite 4-11d-Shortcuts-rhythmic-model-beaming
4-11d-Shortcuts-rhythmic-model-beaming
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment