Clear Filters
Clear Filters

Use Matlab as external midi controller

1 view (last 30 days)
Arthur Parmentier
Arthur Parmentier on 18 Jul 2017
Answered: Ajey Pandey on 29 Jun 2018
Hello,
I want to be able to use a computer (1) that has Matlab installed as an external midi controller for an other pc (2) that has a DAW - Reaper in that case - installed on it. That means, I want to use the pc with matlab (1) to send midi messages to the pc (2), on which the pc (1) would be recognized as a midi device.
I have read several topics on how to use a midi controlled with matlab but I did not find information on how to use matlab to emulate an external midi controller. The connection between the two pcs would have to be via USB.
If you have any suggestions, let me know!
Best regards
  1 Comment
Don Zheng
Don Zheng on 21 Jul 2017
No likely for now. This may be possible in a future release of MATLAB.

Sign in to comment.

Answers (1)

Ajey Pandey
Ajey Pandey on 29 Jun 2018
There are the midisend and midimsg functions in R2018a:
This function takes in message data in a variety of formats and converts it into MIDI messages, using an object made by the function midimsg. Provided you have the data in a format that midimsg can read (and it can read a lot of formats), you can send all kinds of MIDI messages to a device that your MATLAB session has access to.

Products

Community Treasure Hunt

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

Start Hunting!