Page 1 of 1

LÖVE and MIDI Keyboards

Posted: Fri Mar 02, 2012 10:28 am
by yannik27
Hello all.

I am (very) new to Love, but am hoping to get a question answered regarding MIDI Keyboard's usage in Love. The question is:

Is it possible to use 'live' MIDI data from a MIDI keyboard in Love?

I basically want the user to be able to trigger certain animations in my Love app, by using their MIDI keyboard. Is this possible (in any way)? If not, could someone please recommend another (preferably similar) language in which this is possible?
I know Love supports .mid files, but that's about as much info as could find on the topic. I already have a basic version of what I want in a Pure Data patch (using GEM). But that platform is very limiting for what I actually wish to achieve.

Please, any help is greatly appreciated. Love is awesome from what I have seen so far and I really wish to take this project further using it.

Thanks

Re: LÖVE and MIDI Keyboards

Posted: Mon Oct 01, 2012 10:33 pm
by antivapor

Re: LÖVE and MIDI Keyboards

Posted: Tue Oct 02, 2012 9:48 pm
by Patalo
Hi.
I don't know what is your OS (and I'm afraid the result will always be OS specific), but under linux, I could easily interface LÖVE with ALSA, thus control my LÖVE app with a midi keyboard, thanks to midialsa http://www.pjb.com.au/comp/lua/midialsa.html

Good luck with your project

Re: LÖVE and MIDI Keyboards

Posted: Wed Oct 03, 2012 2:58 pm
by Lafolie
This is interesting, but as I've discovered before there are lots of things to consider here. If you're making a game you should consider that not everyone has a MIDI interface. Another thing to consider is that you don't necessarily need to use a keyboard, any MIDI controller should be able to do the job, I've toyed with the idea of hooking up a kaoss pad with some sort of scrolling game. If you have OS X you can even get ControllerMate and do all sorts of crazy things.