MIDI piano keyboard input in C2?

Discussion and feedback on Construct 2

Post » Tue Feb 26, 2013 6:49 pm

I would like to create a game that uses my USB MIDI piano keyboard as an input device to control characters, objects and sounds.

Is this idea even possible in Construct 2? What external libraries or plugins would be helpful to use? Would I have to learn C++ to implement this idea?

Please help me.


Thank you very much.



B
3
Posts: 1
Reputation: 477

Post » Tue Feb 26, 2013 7:29 pm

Should be possible.
Requires some Javascript Magic though.

In theory, you could simply listen for every single key on that keyboard.

The thing that is currently unworkable though, is getting the browser to interface with any input device that isn't a keyboard or a mouse.

There's already a draft for MIDI support though (http://www.w3.org/TR/2012/WD-webmidi-20121025/) and someone has already laid some groundwork for MIDI keyboard integration.

See here:
http://abumarkub.net/abublog/?p=505
and here:
http://abumarkub.net/abublog/?p=754

SO yea. No native support for MIDI keyboards yet, though this might change soon and then it really will be just a matter of implementing simple event listeners (if at all). Blinx1232013-02-26 19:36:33
B
6
S
2
Posts: 206
Reputation: 1,685

Post » Tue Feb 26, 2013 11:11 pm

That would be nice. You know I always wished I could bind game controls to my midi foot pedals. Would give such a competitive advantage in multiplayer.
B
14
S
4
G
3
Posts: 38
Reputation: 3,741

Post » Wed Feb 27, 2013 9:37 am

For the moment, the only hope is using a Java applet that send the signals to the Javascript code.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Wed Feb 27, 2013 2:42 pm

I think it would be awesome to be able to integrate a midi keyboard into the system. My son is dabbling in electronics and is tossing around the idea. The possibilities are endless with that type of set up. You would be able to set up music tutorials, and create games based on notes and chords played. I would love to have an art program set up to accept regular commands from a midi keyboard.
B
20
S
2
Posts: 257
Reputation: 2,431


Return to Construct 2 General

Who is online

Users browsing this forum: Ashley and 14 guests