MIDI Controllers

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
racarate
Prole
Posts: 34
Joined: Wed May 02, 2012 12:37 pm

MIDI Controllers

Post by racarate »

Hey everyone,

I recently heard about somebody (I think it was increpare) hooking up physical knobs and sliders to control gameplay parameters. It's sounds like Unity's scrubbers to the next level! Has anybody here tried this with LOVE? The Korg nanocontrol looks like a perfect little gizmo for this kind of thing, but while there seems to be reams of USB-->MIDI projects I can't find anything about MIDI-->'love.keypressed'.


-Nick
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: MIDI Controllers

Post by josefnpat »

It might be tricky, but I think you can do it with the help of a few external Lua Libraries. Take a look at this.

My MIDI knowledge is not up to snuff to understand this at a glance, so perhaps someone else on the forums has tried this, but I've only seen a few threads talking about getting MIDI keyboards working in love.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: MIDI Controllers

Post by coffee »

josefnpat wrote:It might be tricky, but I think you can do it with the help of a few external Lua Libraries. Take a look at this.

My MIDI knowledge is not up to snuff to understand this at a glance, so perhaps someone else on the forums has tried this, but I've only seen a few threads talking about getting MIDI keyboards working in love.
That would help him to deal with midi data internally but wouldn't deal with get hardware input as he wants. He would need do some custom LOVE build.
Turns to be the same problem that viewtopic.php?f=4&t=8290
User avatar
racarate
Prole
Posts: 34
Joined: Wed May 02, 2012 12:37 pm

Re: MIDI Controllers

Post by racarate »

Thanks for the replies so far... I was hoping there was a MIDI-keyboard program along the lines of joyToKey but I haven't found one yet.


-Nick
User avatar
TechnoCat
Inner party member
Posts: 1612
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: MIDI Controllers

Post by TechnoCat »

racarate wrote:Thanks for the replies so far... I was hoping there was a MIDI-keyboard program along the lines of joyToKey but I haven't found one yet.
MIDI is generally values from 0-255 so midi2key wouldn't make sense.

I suppose I can try it out with my MIDI controllers and report back in the near future if I remember to.
User avatar
racarate
Prole
Posts: 34
Joined: Wed May 02, 2012 12:37 pm

Re: MIDI Controllers

Post by racarate »

Good point, maybe mapping MIDI input to love.joystick.getAxes() makes more sense?


-Nick
User avatar
TechnoCat
Inner party member
Posts: 1612
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: MIDI Controllers

Post by TechnoCat »

racarate wrote:Good point, maybe mapping MIDI input to love.joystick.getAxes() makes more sense?


-Nick
You would need like hundreds of joysticks. :crazy:
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: MIDI Controllers

Post by coffee »

TechnoCat wrote:
racarate wrote:Good point, maybe mapping MIDI input to love.joystick.getAxes() makes more sense?


-Nick
You would need like hundreds of joysticks. :crazy:
I had same thought than you but actually with modern gamepads with a lot of parameters/axis/buttons one joystick is actually enough to do a lot. There really some people that had that idea
http://www.otk.it/mjoy/
http://www.fergonez.net/index.php?lang= ... pps&pid=14 / http://forum.cockos.com/showthread.php?t=37629
http://www.virtualdj.com/homepage/pern/ ... apper.html
http://www.instructables.com/id/Arcade- ... ontroller/
http://www.instructables.com/id/DIY-Vir ... ontroller/
http://www.instructables.com/id/How-to- ... Xbox-360-/

GREAT UPDATE!
Actually could be possible use a midi keyboard or any midi device to transform it in game controls so we can use it again in LOVE to do something musical!
This transforms midi signals in game controls input
http://glovepie.org/glovepie.php
Control games and applications any way you want.
Send fake keyboard keys, jostick actions, mouse moves, midi input or speech input to any program.
Use a VR Glove, Kinect, Wiimote, SIXAXIS, keyboard, joysticks, mice, touchpad or a microphone
to control any program.
User avatar
racarate
Prole
Posts: 34
Joined: Wed May 02, 2012 12:37 pm

Re: MIDI Controllers

Post by racarate »

Awesome! Gonna borrow a MIDI controller and try this out...


-Nick
projecte1
Prole
Posts: 1
Joined: Thu May 10, 2012 1:26 pm

Re: MIDI Controllers

Post by projecte1 »

I've been looking at the links you posted and "http://glovepie.org/glovepie.php" I have been very useful.

Thanks for sharing and help! Above me in this case hehehehe.
:D :D :D :D :D
coffee wrote:
TechnoCat wrote:
racarate wrote:Good point, maybe mapping MIDI input to love.joystick.getAxes() makes more sense?


-Nick
You would need like hundreds of joysticks. :crazy:
I had same thought than you but actually with modern gamepads with a lot of parameters/axis/buttons one joystick is actually enough to do a lot. There really some people that had that idea
http://www.otk.it/mjoy/
http://www.fergonez.net/index.php?lang= ... pps&pid=14 / http://forum.cockos.com/showthread.php?t=37629
http://www.virtualdj.com/homepage/pern/ ... apper.html
http://www.instructables.com/id/Arcade- ... ontroller/
http://www.instructables.com/id/DIY-Vir ... ontroller/
http://www.instructables.com/id/How-to- ... Xbox-360-/

GREAT UPDATE!
Actually could be possible use a midi keyboard or any midi device to transform it in game controls so we can use it again in LOVE to do something musical!
This transforms midi signals in game controls input
http://glovepie.org/glovepie.php
Control games and applications any way you want.
Send fake keyboard keys, jostick actions, mouse moves, midi input or speech input to any program.
Use a VR Glove, Kinect, Wiimote, SIXAXIS, keyboard, joysticks, mice, touchpad or a microphone
to control any program.
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest