Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Brendan Owens
1,101 PointsCan android device 'listen' for usb key input
I am trying to learn enough to make one or two android apps for myself. One in particular I want to make is that of a 'drum machine'. Yes I know these are 'wheels' that are already 'invented' However, in particular I want one to respond to a USB foot-pedal (two pedals, Start/Stop and A/B fill). I've seen on youtube a home-made USB pedal adapted from a keyboard. However this is my question. Before I invest all that time in programming, can you tell me do ANY android devices 'listen' to the usb port for devices such as a keyboard, or are they only for charging or file transfer?
I ask because it seems that none of the 'drum machine' apps on the Play Store have any 'listening' for pedals.
I'm trying to obviate the need for a drum machine on live solo gigs by incorporating an app on an android tablet that can also serve as an MP3 backing player. A repeated MP3 pattern (with the added dynamics of start stop by pedal) is often preferred to performing along to a backing track because it leaves you free to use it for many songs and gives the user more freedom in the format of the song.
Perhaps this would be a good project to include as a small course.
1 Answer
Ben Jakuben
Treehouse TeacherGood question. I've never tried or read up on this. You can read a bit on the developer site and StackOverflow and possibly try something out. It sounds like a challenging but rewarding project.
Brendan Owens
1,101 PointsBrendan Owens
1,101 PointsThanks Ben. I'll see if I can check that out. Fell at first hurdle with your crystal ball android app as my computer wasn't too happy about me running the emulator in eclipse. I will need to start again on my main desk computer instead. That's a quad core 64bit. My laptop is only dual and 32bit.
Ben Jakuben
Treehouse TeacherBen Jakuben
Treehouse TeacherBeen there! Give Genymotion a shot as a replacement for the default emulator, too. I recorded a stage about it here: http://teamtreehouse.com/library/android-tools#getting-started-with-genymotion