View Single Post
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#8
Originally Posted by Keir View Post
I followed the fart app tut and that worked fine. But instead of selecting a sound/fart and then pressing a play button.

I just want press the cow button for moo sound. sheep for Baa etc.
Sure, it's a matter of rearranging the code.

I thought I'd try and give you a boost Ive made a simple project with two buttons, one that plays a cow mooooo and one a pig grunt grunt.. err grunt..



Ive zipped them up and attached them to the post. I hope you'll find it useful for your own project. To add more animals it's just a matter of adding more buttons to the gui, adding new methods (defs) to play the animal sounds in the main.py, and connecting the buttons to the methods (defs) in the main.py. If you open the main you'll see what I mean. Let us know how you get on

(As far as I'm aware, pics and wav files are copyright and royalty free.)

I wonder if there's any interest in making a full project out of this idea
Attached Files
File Type: zip maeFarm.zip (304.7 KB, 278 views)
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun

Last edited by kojacker; 2011-06-26 at 10:48.