Skip to content

About timed events and note events #186

Answered by melanchall
Jenix-Park asked this question in Q&A
Discussion options

You must be logged in to vote

Note is not NoteOnEvent. Note is a pair of events: Note On and corresponding Note Off one. So GetTimedEvents() will return events including NoteOnEvent and NoteOffEvent, but event is not a note. DryWetMIDI provides following key objects:

  • TimedEvent – just a MIDI event along with absolute time;
  • Note – pair of timed events holding NoteOnEvent and NoteOffEvent;
  • Chord – set of Notess.

So ObjectType.TimedEvent will give you just all timed events, but ObjectType.Note | ObjectType.TimedEvent will return notes for pairs of linked events and timed events for all other events.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Jenix-Park
Comment options

@melanchall
Comment options

@Jenix-Park
Comment options

Answer selected by Jenix-Park
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Just question about the library
2 participants