Skip to content
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

Repeated fragments in test (subdivision) #172

Open
Luke-Poeppel opened this issue Jun 25, 2021 · 0 comments
Open

Repeated fragments in test (subdivision) #172

Luke-Poeppel opened this issue Jun 25, 2021 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Luke-Poeppel
Copy link
Owner

Luke-Poeppel commented Jun 25, 2021

Onset ranges for some fragments repeat themselves because of found subdivisions (e.g. stretch trochee and peon 4).

path = search.path_finder(
		filepath=os.path.dirname(here) + "/tests/static/Shuffled_Transcription_1.xml",
		part_num=0,
		table=GreekFootHashTable(),
		allow_subdivision=True,
		allow_contiguous_summation=False,
		algorithm="floyd-warshall",
		slur_constraint=True
	)
	for x in path:
		print(x.fragment)

RESULT:

<fragment.GreekFoot Peon_IV>
<fragment.GreekFoot Trochee>
<fragment.GreekFoot Iamb>
<fragment.GreekFoot Peon_IV>
<fragment.GreekFoot Trochee>
<fragment.GreekFoot Iamb>
<fragment.GreekFoot Peon_IV>
<fragment.GreekFoot Trochee>
@Luke-Poeppel Luke-Poeppel added the bug Something isn't working label Jun 25, 2021
@Luke-Poeppel Luke-Poeppel self-assigned this Jun 25, 2021
@Luke-Poeppel Luke-Poeppel added this to the v1.0.0 milestone Jul 3, 2021
@Luke-Poeppel Luke-Poeppel removed this from the v1.0.0 milestone Jul 19, 2021
@Luke-Poeppel Luke-Poeppel added this to the v1.2.0 milestone Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant