We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Check this out:
>>> m = muspy.Music(tracks=[muspy.Track(notes=[ muspy.Note(time=-2, pitch=58, duration=19, velocity=99), muspy.Note(time=-1, pitch=65, duration=20, velocity=65), muspy.Note(time=0, pitch=67, duration=23, velocity=65), ])]) >>> m.remove_invalid() Music(metadata=Metadata(schema_version='0.0'), resolution=24, tracks=[Note(time=0, pitch=67, duration=23, velocity=65)])
The valid note somehow gets added to the track list, and the track itself gets removed.
Not sure why this is happening, but #47 seems to fix it.
The text was updated successfully, but these errors were encountered:
Looks like a bug. Will check the pull request. Thanks.
Sorry, something went wrong.
Fix remove_invalid and remove_duplicate (#49)
8899576
This has been fixed by 8899576.
Note: When applying recursively, we have to modifying the lists in place so that their references remain unchanged.
Successfully merging a pull request may close this issue.
Check this out:
The valid note somehow gets added to the track list, and the track itself gets removed.
Not sure why this is happening, but #47 seems to fix it.
The text was updated successfully, but these errors were encountered: