-
Notifications
You must be signed in to change notification settings - Fork 25
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
Midi note measure #115
base: master
Are you sure you want to change the base?
Midi note measure #115
Conversation
And again, You've implemented the thing is being implemented almost a year ago in the #81. I'm afraid of inconsistency with the complex changes of #81 on the integration of which @RomeoDespres now is working on now... |
Is there something I could do that could help? Or should I be waiting for the next release? |
I feel, if You split this PR into the couple (one with import mesia, one with MIDI) — @RomeoDespres will be able to include something after #81 is merged. I doubt in what the «measure» is — do you mean measure Also, If I implement something like this — I would get all midi events from the measure, then filter by the event-type. Just for keeping |
I've added
Project.beats_to_measure()
to get the measure of a beat.In the Note object :
Note.beat
to get the absolute beat of a note (not relative to its current measure)Note.measure
to get the measure in which the note residesIn the NoteList object :
NoteList.in_measure()
to get a list of Notes in a specified measureIt would be used like so :
project.tracks[0].items[0].takes[0].notes.in_measure(1)