Me and some people are making and selling some physical drum machines, where if you press a button on a board, a related sound is played. Now I'm familiar with Microsoft Small basic and visual and html, however I'm not sure on programming the physical button to play an mp3 audio file, and set it so that you can choose a category of sounds too, thus If you press
Say a number on the machine, then the sounds played will be different. How would I go about doing this? I'm thinking of using a raspberry pi. Also if you could leave an email too, as I may need future help.
You should check out a Chumby Hacker board instead of a raspberry pi as they have audio inputs and inputs included.
This site will tell you all you need to know about the required code for the button.
https://learn.adafruit.com/playing-sounds-and-using-buttons-with-raspberry-pi/overview
While I hour this helps, please keep in mind that this site is for people who have already tried to solve their problem and failed. I produced this answer with a Google search and 5 minutes of reading.
Related
I'm using AudioKit framework to implement MIDI in one of my hobby projects. In this project, I'm trying to make an app which has navigation buttons (left right up down) and play button (Just like Ableton Push MIDI controller has).
To make them function, I first recorded MIDI data that comes out of Push to map all the keys. I then used MIDI Utility by AudioKit as a starter and sent note values from the app to Ableton Live software, where it successfully triggered sounds. (Kept channel as 0)
Now, I'm trying to replicate the cc functionality of arrow keys which are cc54, cc55, cc62, cc63 and cc85 for Play. When I send this cc MIDI data using MIDI Utility, it send midi data successfully to Ableton (as I can see the light feedback), but it simply does not do what Ableton Push hardware controller would've done.
Am I missing something significant?
I also tested that when a button is pressed value goes to 127, and on button release it goes to 0. Despite of replicating it, it still doesn't work.
This problem is not related to AudioKit at all. But someone who has understanding of how midi channels, sending etc works in Ableton Push might be able to help me.
Is ableton identifying your controller as a push? Ableton has special scripting to deal with various controllers (They use Python, and if you hunt around you might find examples). Thats likely both the problem and the solution. The script is not recognizing your software as a push. However it might be possible to create a new device profile in python that'll give you the flexibility to really get in there and tweak.
Hi im still not 100% with xcode and android. I have the Droid X and I code with Xcode. My dad is on the Fire Dept. and wants me to code an app for either the android and/or iphone that detects the dispatch's radio signal and receives it and streams it in the background so the firemen could listen to the radio on their phones so they wouldn't have to carry their bulky radios with them everywhere. If there is someone that could help me or point me in the right direction, I would greatly appreciate it.
Thank you, Halokllr
Some bad news Halokllr, the iPhone doesn't have a radio chip, and the FM radio included in some Android models will probably not be able to physically pick up emergency broadcast signals. In order to do what you are suggesting, you would need a web service of some kind that already exists and streams audio for the emergency signals you're interested in. Now there ARE some services like this, though I would strongly suggest that if it is intended to be used for actual first responders that you very carefully research their timeliness guarantees. Some of them may be hours behind live events. Check out http://www.radioreference.com/ as an example service provider.
I need to develop an App witch detects voice when it´s running (not what are they saying, just if someone speaks) and if so, I need to launch an especific mp3 from my sd.
I never developed for android/iphone but I need to especify my boss in how many hours it could be done.
Is there any easy way for voice recognition? and... I think that the answear could be yes but, is ther a way to listen a specified mp3 from my code?
(no plataform specified yet, it could be android or iphone)
Thanks very much in advance
Try looking at this question. It might help a bit. if you got back something valid from the google servers, then you could cause it play an MP3, I suppose.
EDIT: Also, it's important to remember that android phones don't do the "voice recognizing" themselves. The sound is streamed to Google servers (like a phone call) and the servers "recognize" what you're saying, and send that back to the phone.
used this website for the long time to find answers, now need to ask on myself! :)
I have implemented multi player for my game using GKSession and client/server approach, not using peer picker (up to 4 player allowed).
I have one big problem which I can't find solution for.
If you disconnect/reconnect server peer quickly enough, client peer will "remember" that host and will show it in the list of all available peers permanently, only turning wifi/bluetooth off resets this.
So if I do this 5 times in a row, my client will show 5 available hosts with the same name!
Anyone had experience with this? Any idea of workarounds?
I should note that requirements for my game is iPhone SDK 3.0 for Bluetooth and 3.1 for Wifi as GKSession supports both now.
I have a similar problem. In fact I event get peers listed who are not even currently playing the game. Even more so, peers who are not acting as server are listed. I am wondering if there is some behind the scenes caching going on.
I'm thinking about implementing some kind of timer with visual feedback to show the disconnect progress, ideally to prevent this situation. It seems like in general there is a bit of time delay involved with connecting/available and disconnecting/unavailable. It might be better to code the interface to take these time delays into consideration, though I'm not sure exactly how.
A coworker displayed the route he used to commute to/from work on Google Earth
but won't tell me how he did it. I have a laptop with GE installed.
Can you tell me how to do this. I guess I need something to collect the coordinates,
and then create somesort of tracks but any pointers would be helpful.
Also, can this be done in real time. I nother words, can I update my location on
GE while driving?
You can drag and drop xml-files with coordinates onto GE. These files can be created with most GPS software/systems.
http://en.wikipedia.org/wiki/GPS_eXchange_Format
I just figured out how to do this. You will need a USB GPS Receiver. I also got a program called "Earth-Bridge" which allows generic USB GPS units to send their data in realtime to Google Earth.
Just install Earth Bridge, and then Install your Drivers for the USB receiver, and then plug in your Receiver and start Earth Bridge. The GPS will take about 45-60 seconds the first time to get a lock on your position but after that it is pretty good at staying up to date.
Since the GPS uses an internal serial to USB you have to deal with a virtual com port, just make sure you check your instructions on the USB and configure it correctly in Earth Bridge to use the right com Port, baud rate, etc...
Sometimes, the GPS shows me out in the ocean (or somewhere completely different from where I am) and I wait about a minute for it to lock on but it won't get a lock. Then there is a button on Earth Bridge "Reload in Google Earth" and it will usually fix it right away.
A good GPS receiver (the one I bought and love) is here on Amazon for about 38USD.
Google Earth speaks KML, or keyhole markup language. It is nothing more than an XML file with a specific schema.
from wikipedia: http://en.wikipedia.org/wiki/Keyhole_Markup_Language
You don't need an XML package to build it. you can just write out to a text file if you want to. You will still obviously need a GPS to pull the coords from.
you could even go so far as to write a blackberry app. to use its on-board GPS to do this. i've been contemplating doing this for a while to track my walks. my plan is to then automatically upload the tracklog to the web where i can view it later or my wife can view it real-time.
This is an old post, but I have been doing this with the MotionX-GPS iPhone app for years. You record & save a track on the app, and then email it to yourself. The email has an .KMZ attachment, which can open directly in Google Earth to display your track in glorious detail. I have a friend who has tracked all of his flight training with this. It's way Cool!