About timed events and note events #186
-
|
Apologies again for keeping you with my bothers. One example code from the official page a little confuses me. Couldn't we just call either |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Note is not
So |
Beta Was this translation helpful? Give feedback.
Note is not
NoteOnEvent. Note is a pair of events: Note On and corresponding Note Off one. SoGetTimedEvents()will return events includingNoteOnEventandNoteOffEvent, 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 holdingNoteOnEventandNoteOffEvent;Chord– set ofNotess.So
ObjectType.TimedEventwill give you just all timed events, butObjectType.Note | ObjectType.TimedEventwill return notes for pairs of linked events and timed events for all other events.