Controlling sound and lighting with wiimotes
Jul 31, 2013 at 6:41am
Controlling sound and lighting with wiimotes
I’m trying to manipulate live audio recording through the use of Wiimotes, e.g. when you talk and move the wiimote downwards, the pitch of your voice goes down along. At the same time, I want the lighting in the room to react on this as well, like the lower the pitch the more red the room becomes.
I’m currently using MAX 5 / Windows 7.
After a lot of searching on the Internet, I’m kinda dazzled by the amount of different options to accomplish this type of thing.
What are your thoughts on this? Should I be using a OSX with MAX 6 together with aka.wiiremote? Or maybe OSCulator? Is MAX even capable of controlling lighting? Or should I continue with using GlovePIE?
I hope you can clarify this a bit for me, as I’m starting to get lost!
Thanks for reading,
Jul 31, 2013 at 7:00am
Stick with Max 5 and try the tk.wii external and the Toshiba Bluetooth stack. I must stress that I haven’t used this since updating to Max6 (many “older” externals are not 64-bit compatible), but when I did it was very intuitive and solid.
You will get recommendations for other externals and Bluetooth drivers but they will be OS/context/taste dependent.
I used GlovePIE for Wiimote extensively back in the day (kinda miss it), and it requires a virtual MIDI port such as MIDI-Yoke. But GlovePIE is no longer supported AFAIK, definitely never tried it under Win7.
Jul 31, 2013 at 7:11am
ps and btw
have you considered Arduino + accelerometers for a possible DIY solution? Much less of a hassle, if very slightly more expensive. I could write you (or direct you to) a simple Arduino program to send accelerometer values to Max, it would be a fragment of urine :$
Jul 31, 2013 at 8:05am
Thank you for your quick and helpful reaction!
After installing the Toshiba bluetooth drivers, connecting the Wiimote and opening your tk.wii patch, the MAX window says: tk.wii>>Found Wiimote. deviceid=0 handle=2324
After this, I do not see anything happening when moving the wiimote, or pressing its buttons. Also, the lights are still flashing?
I haven’t considered Arduino, having only heard of its capabilities and having no experience with it. Would this be a simpler and/or better solution to control sound and lighting through MAX?
Awaiting your reply,
Jul 31, 2013 at 8:54am
Again, this all relates to using the external under XP and Vista.
If you’re still stuck, try searching through this forum, for “tk.wii” “wiimote win7″ etc.
There are other wireless gesture-control solutions, of which Arduino is just one. I think you need to define the parameters of your interaction environment a little more clearly and solidly before deciding on the choice of technology – a rookie mistake :P
Half the problem is that there are numerous options, each of which has numerous challenges across numerous platforms and contexts. You can see that option anxiety is futher exacerbated by an exponential number of possible pitfalls. I like Arduino. It’s simple and solid and only does what I tell it to, when I ask.
sorry not to be more directly helpful
Jul 31, 2013 at 10:35am
Great advice, you’re being very helpful.
I’d like to be more clear on what I want to do:
The user is facing a wall of 3×2 meters, at a distance of 3 meters. While pointing both his arms straightforward holding the wiimotes, a piece of sound is heard. While moving his right arm down, the sound is pitched downwards and the lighting should color the room red. While moving his right arm up, the sound is pitched upwards and the lighting should color the room blue.
The sound module I already have in MSP, I thought it would be easy controlling the fader that controls the pitch using a wiimote. Though now I am uncertain if I can achieve this even with tk.wii, which is responding now. Also, I have still got no clue if MAX can communicate the information to the lighting, or what I would need for it.
Feeling a bit lost now, greets Rowan.
Jul 31, 2013 at 12:04pm
Post your “soundplayer” patch here and we can demonstrate how to control pitch.
As for lighting, not my bag I’m afraid but I believe all you need to do is output MIDI to a hardware DMX (?) controller, again, searching here will give you loads of help cos I’ve seen this type of topic/question many times.
Jul 31, 2013 at 1:03pm
Thanks Brendan, you’ve been a big help.
The tk.wii patch has an option for a second wiimote, after connecting these both to the toshiba bluetooth controller, I synced them to the tk.wii patch. Motion Plus also really smoothes the tracking!
Both x- and y-values are outputted as floats between 0 and 1, so it should be no problem linking these to my soundplayer.
As for lighting, I believe you are right.
Thanks again, greets Rowan.
You must be logged in to reply to this topic.