Sound recording
Somnium
Posts: 46
How would I go about doing this...
When a sound comes into my chip it will save the sound, start recording with another sound input (mic) as well as start a servo to move... at the end the chip will be triggered by a switch that will combine the two sounds together and send it out through headphone.
Is this at all possible and how would I go about doing it? Thanks...
Post Edited By Moderator (Joshua Donelson (Parallax)) : 10/23/2009 4:42:14 AM GMT
When a sound comes into my chip it will save the sound, start recording with another sound input (mic) as well as start a servo to move... at the end the chip will be triggered by a switch that will combine the two sounds together and send it out through headphone.
Is this at all possible and how would I go about doing it? Thanks...
Post Edited By Moderator (Joshua Donelson (Parallax)) : 10/23/2009 4:42:14 AM GMT
Comments
Combining two sound streams is beyond the level of what you're likely to find for detailed advice here. If you're going to play one sound through one channel and the other through the other, you just need the sound samples to be "clocked" at the same rate. Two cogs can be synchronized to put out samples to each of two channels at the same time. If you want to combine two streams into one channel, you'll have to add the samples together and, if necessary, scale them so they don't exceed the maximum value in the digital to analog converter.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Need a TV Module?
Newzed@aol.com
·
There are I2C routines in the Propeller Object Exchange that can be used for this and the Propeller OS routines can also be used by themselves to access this memory.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Need a TV Module?
Newzed@aol.com
·
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Need a TV Module?
Newzed@aol.com
·
As long as you can buffer the sound in the Propeller's memory (the sound is short enough and the quality of what you can afford to record is good enough), you can play it backwards, forwards, both directions at the same time, any time you want. Again, someone recently posted a variation on the sound playing example in the Propeller Tool's demo library that adds an echo to sound from the Demo Board's microphone by buffering sound for a short period of time and adding it back into the live sound stream. I'm sorry, I don't have the link to it.
Mike