danomatika / ofxMidi

(maintained) Midi addon for openFrameworks
Other
262 stars 72 forks source link

saving midi file #73

Closed paul-ferragut closed 5 years ago

paul-ferragut commented 5 years ago

Is it possible to export midi tracks?

Thank you for the addon!

danomatika commented 5 years ago

No. It handles MIDI message input and output only. There are a few C and C++ libraries out there for handling MIDI files. You’d basically receive messages, calculate a delta time from the last message, then hand it to the file library.

enohp ym morf tnes

Dan Wilcox danomatika.com robotcowboy.com

On Apr 1, 2019, at 1:56 PM, Paul Ferragut notifications@github.com wrote:

Is it possible to export midi tracks?

Thank you for the addon!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

paul-ferragut commented 5 years ago

thank you for the quick reply! To send the midi message I would need to open a virtual port I believe? however I can't open a virtual port on Windows with openVirtualPort I have "MidiOutWinNN::openVirtualPort: cannot be implemented in Windows MM MIDI API!"

danomatika commented 5 years ago

To send the midi message I would need to open a virtual port I believe?

No. You can use open() with a "normal" MIDI port. Virtual ports are not available on Windows as noted by:

As noted in the readme, you can use something which acts as a router between MIDI applications, like loopMIDI.

paul-ferragut commented 5 years ago

thank you for your answer