Get track events/notes. #124
-
Is it possible to get the amount of events or notes per track? |
Beta Was this translation helpful? Give feedback.
Answered by
melanchall
Jun 15, 2021
Replies: 1 comment 1 reply
-
Hi, Of course. Sample code below shows how to get both events and notes count for each track chunk of a MIDI file: foreach (var trackChunk in midiFile.GetTrackChunks())
{
var eventsCount = trackChunk.Events.Count;
var notesCount = trackChunk.GetNotes().Count;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ar065
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Of course. Sample code below shows how to get both events and notes count for each track chunk of a MIDI file: