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

Polyphonic sound

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



Joined: 27 Oct 2003
Posts: 12

View user's profile Send private message

Polyphonic sound
PostPosted: Wed Oct 27, 2004 9:13 pm     Reply with quote

Is it possible to play polyphonic sound with 16F628 or even 16F630 (no H/W PWM)?
I have try Ex_tone.c, but it is single tone and not so impress to me.
I have try PICSound by Roman Black, but it require a lot of memory.

Search on the forum, mark r. hahn provide a method by cycle thru the tables at the appropriate rates; add the samples from each table together
and dump the result to some kind of D to A device. (or PWM)

const byte square[] = {
0x64,0x64,0x64,0x64,0x00,0x00,0x00,0x00
};

const byte triangle[] = {
0x00,0x16,0x32,0x48,0x64,0x48,0x32,0x16
}

But I like to generate "Jingle bell" sound, if to using above method,
what waveform and rate I need to generate that kind of "bell" sound?
Or can someone show me other possible method on generate "bell" sound?
Victor



Joined: 27 Oct 2003
Posts: 12

View user's profile Send private message

PostPosted: Fri Oct 29, 2004 8:51 pm     Reply with quote

Can anyone give me some hints? Crying or Very sad
Thank you.....
thushi



Joined: 22 Feb 2006
Posts: 14

View user's profile Send private message

Bell sound
PostPosted: Tue Jun 20, 2006 6:39 am     Reply with quote

Did you find the solution? I also wants to generate Bell sound using PIC.

Thank you
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

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

PostPosted: Tue Jun 20, 2006 8:28 am     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=22010
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