Xojo Conferences
XDCMay2019MiamiUSA

[MBS] Re: multiple devices with Windows MIDI ? (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Get OS X "Input Source" selection as English language
Next thread: [MBS] [ANN] 12.2pr2


[MBS] Re: multiple devices with Windows MIDI ?   -   Aaron Andrew Hunt
  [MBS] Re: multiple devices with Windows MIDI ?   -   Aaron Andrew Hunt
  [MBS] multiple devices with Windows MIDI   -   Julia Truchsess
   [MBS] multiple devices with Windows MIDI ?   -   Aaron Andrew Hunt
    Re: [MBS] multiple devices with Windows MIDI ?   -   Christian Schmitz
    Re: [MBS] multiple devices with Windows MIDI ?   -   Tim Jones

[MBS] Re: multiple devices with Windows MIDI ?
Date: 02.04.12 22:48 (Mon, 2 Apr 2012 17:48:40 -0400)
From: Aaron Andrew Hunt
OK, I think I figured out the problem at least.

On Mac, the input is a separate object that gets any number of devices connected to it. On Windows, the input is an object representing one device, so I just need to make an array of input objects and then it should work.

Thanks,
Aaron



On Apr 2, 2012, at 6:00 AM, <email address removed> wrote:
>
> Am 01.04.2012 um 20:01 schrieb Aaron Andrew Hunt:
>
>> On Mac it's easy to connect multiple MIDI source devices as unique input endpoints.
>>
>> On Windows, connecting a source device disconnects any currently connected source, so only one can be connected at a time.
>>
>> Is there no way to connect multiple MIDI input sources on Windows?
>
> Sorry, I have no idea about this.
>
> Greetings
> Christian
>
> --
> Real Studio Conferences, Training and Meetings.
>
> More details and registration here:
> http://www.monkeybreadsoftware.de/realbasic/events/

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

[MBS] Re: multiple devices with Windows MIDI ?
Date: 02.04.12 20:43 (Mon, 2 Apr 2012 15:43:37 -0400)
From: Aaron Andrew Hunt
Hi Tim. The device connect method doesn't include channel information; it's just a device, which can transmit on any channel, 0-15.

On Mac, there can be any number of ports, and multiple devices can send to the same port. This makes everything easy, the way it should be.

it looks like on Windows, a device is considered a port, since only one device can send to a port, and only one input port is allowed to be open.

Does anyone have more info on this? MSDN doesn't help, and the web seems to be glutted with very old info on Windows MIDI, like circa '98.

Thanks!
Aaron

On Apr 2, 2012, at 6:00 AM, <email address removed> wrote:
>> On Mac it's easy to connect multiple MIDI source devices as unique input endpoints.
>>
>> On Windows, connecting a source device disconnects any currently connected source, so only one can be connected at a time.
>>
>> Is there no way to connect multiple MIDI input sources on Windows?
>
> Just a thought back to my Windows 95 days, but are you trying to connect all of the devices on the same channel? Each device must be on its own channel.
>
> Tim

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

[MBS] multiple devices with Windows MIDI
Date: 02.04.12 19:25 (Mon, 2 Apr 2012 14:25:49 -0400)
From: Julia Truchsess
Hi Aaron,

I talk to multiple Windows midi devices no problem. I just instantiate and open as many WindowsMidiInputMBS's and WindowsMidiOutputMBS's as are needed:

// Open every Midi device in the system
dim wmin As MyWindowsMidiInputMBS, wmout As MyWindowsMidiOutputMBS
For i as Integer = 0 to MyWinMidi.NumberOfMidiInputDevices-1
wmin = new MyWindowsMidiInputMBS
WinMidiInput.Append wmin
WinMidiInput(i).Open(i,4096)
WinMidiInput(i).Start
WinMidiInput(i).DeviceNum = i
next
for o as Integer = 0 to MyWinMidi.NumberOfMidiOutputDevices-1
wmout = new MyWindowsMidiOutputMBS
WinMidiOutput.Append wmout
WinMidiOutput(o).Open(o)
WinMidiOutput(o).DeviceNum=o
Next

Julia


----------------------------------------------------------------------

Message: 1
Date: Sun, 1 Apr 2012 14:01:59 -0400
From: Aaron Andrew Hunt <<email address removed><mailto:<email address removed>>>
Subject: [MBS] multiple devices with Windows MIDI ?
To: <email address removed><mailto:<email address removed>>
Message-ID: <<email address removed><mailto:<email address removed>>>
Content-Type: text/plain; charset=us-ascii

On Mac it's easy to connect multiple MIDI source devices as unique input endpoints.

On Windows, connecting a source device disconnects any currently connected source, so only one can be connected at a time.

Is there no way to connect multiple MIDI input sources on Windows?

Thanks,
Aaron

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

[MBS] multiple devices with Windows MIDI ?
Date: 01.04.12 19:01 (Sun, 1 Apr 2012 14:01:59 -0400)
From: Aaron Andrew Hunt
On Mac it's easy to connect multiple MIDI source devices as unique input endpoints.

On Windows, connecting a source device disconnects any currently connected source, so only one can be connected at a time.

Is there no way to connect multiple MIDI input sources on Windows?

Thanks,
Aaron
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] multiple devices with Windows MIDI ?
Date: 01.04.12 22:26 (Sun, 1 Apr 2012 23:26:41 +0200)
From: Christian Schmitz

Am 01.04.2012 um 20:01 schrieb Aaron Andrew Hunt:

> On Mac it's easy to connect multiple MIDI source devices as unique input endpoints.
>
> On Windows, connecting a source device disconnects any currently connected source, so only one can be connected at a time.
>
> Is there no way to connect multiple MIDI input sources on Windows?

Sorry, I have no idea about this.

Greetings
Christian

Re: [MBS] multiple devices with Windows MIDI ?
Date: 01.04.12 19:06 (Sun, 01 Apr 2012 11:06:10 -0700)
From: Tim Jones
On Apr 1, 2012, at 11:01 AM, Aaron Andrew Hunt wrote:

> On Mac it's easy to connect multiple MIDI source devices as unique input endpoints.
>
> On Windows, connecting a source device disconnects any currently connected source, so only one can be connected at a time.
>
> Is there no way to connect multiple MIDI input sources on Windows?

Just a thought back to my Windows 95 days, but are you trying to connect all of the devices on the same channel? Each device must be on its own channel.

Tim

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info