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

Sorting tiers with concatenate #17

Open
rbennett24 opened this issue May 3, 2019 · 1 comment
Open

Sorting tiers with concatenate #17

rbennett24 opened this issue May 3, 2019 · 1 comment

Comments

@rbennett24
Copy link

When concatenating TextGrids it appears that tiers are re-sorted in alphabetical order. Is there any way to disable this?

@mwlodarczak
Copy link
Collaborator

mwlodarczak commented May 4, 2019

That could be done of course but the reason we sort tiers by their names is that tiers in the concatenated TextGrids do not necessarily need to come in the same order. One thing that could be done is to only sort when there is a mismatch.

More generally, however, while using TextGridTools one should not depend on the order of tiers too much. One does this while writing Praat scripts because Praat’s scripting language lacks a good way of accessing tiers by name. By contrast, tgt.TextGrid objects have a get_tier_by_name method, which should be always preferred over relying on tier indices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants