Skip to content

Error thrown with grace notes and layers #396

Open

Description

@minamouse

I found these errors popping up:

cannot reindex from a duplicate axis

and

reindexing only valid with uniquely valued index objects

and figured out that they happen when there are duplicates in the index, so duplicate offsets. Right now this is happening when there are grace notes in the music or different layers. There might be other cases too, but these are the ones I've found so far.

Here's an example of grace notes:

4.25       C5
4.50       C5
4.50       B4
5.50       A4

Activity

  1. minamouse commented on May 26, 2016

    @minamouse
    CollaboratorAuthor

    I think the solution to this might be related to the issue with indexing chords - #258 and #382, so maybe they should be worked on together?

  2. alexandermorgan commented on Jun 9, 2016

    @alexandermorgan
    Contributor

    Good catch! What piece did you use that had the grace notes? The issue with grace notes is that they're not exactly the same as chord objects, because in reality they don't happen at the same time as the "real" note. They happen in a linear succession. Perhaps we should check for grace notes and ignore them? This doesn't seem like an ideal solution either. This should be discussed in the next ELVIS meeting because it's more of a musicological problem than a coding one.

  3. musicus commented on Jun 9, 2016

    @musicus
    Contributor

    @mborsodi did you you already try your proposed solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions