The MIDI Forum

  1. Bobby Wapap
  2. Getting Started with MIDI
  3. Thursday, 28 July 2016
  4.  Subscribe via email
Hi all, MIDI newbie here.

I'm looking for a way to extract all the melody information about a midi track that I exported from a DAW (Logic, in this case).
That would be: time, note on/off, note number, velocity and so forth...

In the end, my goal is to use that information to plug it into a graphic software (Blender) using a Python script, in order to visually illustrate the melody the way I want.

I've only managed to open the file in a text format, and I don't understand much of what I have here (see image attached).

Any idea of the way I should approach this problem?
Attachments (1)
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Well this is a standard MIDI file, you would need to open it rather as binary. See the "Standard MIDI File" section of the complete MIDI specification at https://www.midi.org/specifications/item/the-midi-1-0-specification for the file format.

If you are looking for something ready to use, try one of the suggestions at http://stackoverflow.com/questions/2933938/reading-a-midi-file-in-python or e.g. https://mido.readthedocs.io/en/latest/parsing.html
Comment
There are no comments made yet.
  1. more than a month ago
  2. Getting Started with MIDI
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Don't think of any way that has a graphic user interface?

Welp, I'm also kind of new to python and to coding in general. This seems like a huge challenge but if it's the only way, I'll try to understand how these python libraries work.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Getting Started with MIDI
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.