how to save a midi message?

Is there a way to save midi messages created with midimsg into a midi file that can be played with a program that plays audio files?
I can send the TEST message to a midi device and hear the note, but I'd prefer to save and open in music software that reads midi files.
msgs = midimsg('Note',1,48,64,0.25); % TEST
midisend(device, msgs)

回答 (1 件)

Rik
Rik 2023 年 9 月 3 日

1 投票

I haven't tested it myself, but this was on the first page of Google for me. It is bit old, but it might still work. And if not, you might be able to learn from the internals enough to make your own.

カテゴリ

ヘルプ センター および File ExchangeMusical Instrument Digital Interface (MIDI) についてさらに検索

タグ

質問済み:

2023 年 9 月 3 日

回答済み:

Rik
2023 年 9 月 3 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by