CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

create sounds with pic

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jennifer
Guest







create sounds with pic
PostPosted: Sun Nov 01, 2009 8:50 am     Reply with quote

hi ,

I want to create a music box with pic16f690.
I started to produce songs with the pwm pin and changing the frequency.

The song is playing well, but the sounds that the speaker produce are so monotonics... (300-550hz), sound like old days.

Can I do some dsp to create a more full, capacity sounds?

A low pass will help? or some software manipulations ?

Thanks.
jenn
Guest







can someone
PostPosted: Mon Nov 02, 2009 3:16 am     Reply with quote

Can someone please help me with this ?

What code manipulation should I do to create a more spacy sounds ?
Guest








PostPosted: Mon Nov 02, 2009 9:51 am     Reply with quote

Did you check the code library? One of the 'regulars' (Ttelmah?) posted a music generation project a while back....

Chuck
yerpa



Joined: 19 Feb 2004
Posts: 58
Location: Wisconsin

View user's profile Send private message Visit poster's website

PostPosted: Mon Nov 02, 2009 3:35 pm     Reply with quote

There is a sound synthesizer with source code (for the PIC 18F series) here:

http://www.reprolabs.com/fraktal_synth_1.htm

You might get some ideas from the various sound producing algorithms. The multiply instruction available on the 18F series gives a good advantage compared to the 16F series.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group