-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from Abjad/trevor/dev
Merges trevor/dev to change \times to \tuplet
- Loading branch information
Showing
6 changed files
with
131 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import abjad | ||
from abjadext import nauert | ||
|
||
|
||
def test_MeasurewiseAttackPointOptimizer___call___01(): | ||
string = r""" | ||
\tuplet 11/8 | ||
{ | ||
a''8 | ||
~ | ||
a''8 | ||
~ | ||
a''8 | ||
~ | ||
a''8 | ||
~ | ||
a''8 | ||
~ | ||
a''8 | ||
~ | ||
a''8 | ||
\grace { | ||
e''16 | ||
e''16 | ||
} | ||
d''8 | ||
~ | ||
d''8 | ||
r8 | ||
r8 | ||
} | ||
""" | ||
string = abjad.string.normalize(string) | ||
container = abjad.Container(string) | ||
time_signature = abjad.TimeSignature((4, 4)) | ||
attack_point_optimizer = nauert.MeasurewiseAttackPointOptimizer() | ||
attack_point_optimizer(container, time_signature) | ||
string = abjad.lilypond(container) | ||
assert string == abjad.string.normalize( | ||
r""" | ||
{ | ||
\tuplet 11/8 | ||
{ | ||
a''2.. | ||
\grace { | ||
e''16 | ||
e''16 | ||
} | ||
d''4 | ||
r4 | ||
} | ||
} | ||
""" | ||
), print(string) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.