# How to make use of -Mm flag for multiple input ports?

**URL:** <https://forum.csound.com/t/how-to-make-use-of-mm-flag-for-multiple-input-ports/1281>\
**Category:** General\
**Created:** [July 24, 2023, 10:24pm UTC](https://forum.csound.com/t/how-to-make-use-of-mm-flag-for-multiple-input-ports/1281 "2023-07-24T22:24:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![boonier](https://forum.csound.com/user_avatar/forum.csound.com/boonier/32/426_2.png) [@boonier](https://forum.csound.com/u/boonier)\
**Post date:** [July 24, 2023, 10:24pm UTC](https://forum.csound.com/t/how-to-make-use-of-mm-flag-for-multiple-input-ports/1281/1 "2023-07-24T22:24:07Z")

</div>

See [LISTSERV 16.5 - CSOUND Archives](https://listserv.heanet.ie/cgi-bin/wa?A2=ind1912&L=CSOUND&D=0&P=151555)

This feature to enable access to multiple midi ports was added in 6.14, but I can’t figure out how to make use of it in `ctrl7` (for example).

Say I want to use channel 3 of port 2, that would be channel 18 according to the docs, but I get an error when I plug that number into the `ctrl7` opcode (which accepts 1-16). Any ideas what I’m missing?

thanks

---

<div class="post-metadata">

**Author:** ![tjingboem](https://forum.csound.com/user_avatar/forum.csound.com/tjingboem/32/44_2.png) [@tjingboem](https://forum.csound.com/u/tjingboem)\
**Post date:** [October 6, 2023, 9:20am UTC](https://forum.csound.com/t/how-to-make-use-of-mm-flag-for-multiple-input-ports/1281/2 "2023-10-06T09:20:17Z")

</div>

i have made a feature request feature request: several midi ports #1750  
that looks somewhat like yours. I am looking for inputs and outputs for more than 1 midi port.  
As i understand, channels \>16 for inputs are possible when you use the PortMidi driver.

So far i have been unsuccessful at isolating a certain keyboard on different midi input ports.  
Were you able to do so?
