Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/28/10 18:51
Read: times


 
#176953 - Several options
Responding to: ???'s previous message
A number of alternatives that may be used.

Use notes. Let each note represent a wav file.
Write code that sums multiple wav files (remember that many instruments have sound that slowly declines).
Send the sum of the currently sounding tones to a 16-bit DAC. If low quality is acceptable, look for an ulaw/alow codec solution.

With a fast enough processor, you can play quite a large number of concurrent tones. With 10-20 concurrent tones you get a reasonably good result playing new chords while still playing the remaining sound from the previous chords. Best is to perform the math using more than 16 bits - 24 bits is a good choice.

Another alternative. Use a large SPI flash chip and store full music recordings. 1GB of flash is about 1.5 times larger than a CD, so it gives an indication how much music you can store.

A third alternative. If you need huge amounts of sound - use a MP3 chip or get a processor with MP3 decoder or a fast enough processor to run the decoding in software. The third alternative isn't so fun unless you have other reasons for a quite fast processor.

But as noted - it is not easy to convert sound into tones, since many instruments produces very rich sounds with a lot of frequencies involved. And you normally don't play a single tone at a time either.

List of 23 messages in thread
TopicAuthorDate
Any links for Wave to Musical Note Converter ?            01/01/70 00:00      
   Bad Link            01/01/70 00:00      
      Sorry for the bad link...            01/01/70 00:00      
         Supplied Link...            01/01/70 00:00      
            Do you mean this one?            01/01/70 00:00      
               Yes, that is the one !!!            01/01/70 00:00      
   Musical Notes will            01/01/70 00:00      
      One ARM may be..            01/01/70 00:00      
      Several options            01/01/70 00:00      
         ADSR            01/01/70 00:00      
            Very sorry sound            01/01/70 00:00      
               Here is some more clarification            01/01/70 00:00      
      Thanks Micheal            01/01/70 00:00      
         much more complicated than it seems            01/01/70 00:00      
   not sure, but            01/01/70 00:00      
   Here is the Audio File in MP3 Format            01/01/70 00:00      
      Terrible Terrible            01/01/70 00:00      
         RE: sharp harsh low frequency tone going on            01/01/70 00:00      
         Thanks for your replies            01/01/70 00:00      
            Tones have fixed frequency and timing is easy            01/01/70 00:00      
               That is precisely what I am doing tommorow            01/01/70 00:00      
   It Worked !!!            01/01/70 00:00      
   It Worked !!!            01/01/70 00:00      

Back to Subject List