LÖVE and MIDI Keyboards

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
yannik27
Prole
Posts: 1
Joined: Fri Mar 02, 2012 10:20 am

LÖVE and MIDI Keyboards

Post 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
User avatar
Patalo
Prole
Posts: 41
Joined: Sun Apr 29, 2012 1:15 pm
Contact:

Re: LÖVE and MIDI Keyboards

Post 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
Current project : 3D fractal explorer DEFract ( viewtopic.php?t=9193)
Github : https://github.com/plule/ | Twitter : http://twitter.com/plule_
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: LÖVE and MIDI Keyboards

Post 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.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 203 guests