Getting signals from a MIDI port in C#

后端 未结 6 1063
灰色年华
灰色年华 2020-12-10 06:52

I bought a MIDI keyboard for my birthday. I found a program (MidiPiano) that gets signals from the MIDI input and translates it into music, but I\'d rather like to write one

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 07:40

    I have solved this in a roundabout way by writing a Python script to transmit a UDP packet every time a note ON/OFF occurs on the MIDI keyboard.

    MIDI over TCP/IP/UDP to be received inUnity3D with C#/.NET

    That way the platform specific MIDI stuff is wrapped, and I can write platform agnostic C# code to pick up the UDP packet.

提交回复
热议问题