Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Producing polyphonic melodies with Pic??

Status
Not open for further replies.

Analyzer

Full Member level 6
Joined
Nov 18, 2001
Messages
374
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
3,518
bitscope wavepod

Hi there,

In my project i would like to use polyphonic sound alerts instead of using horrible buzzer.Well maybe you heard alert of cherokee jeeps when its doors are open or when lights are open+key is not located. (like Blimp! Blimp! Blimp!) Can i produce these sounds with a pic or something like filters/special ics'? I can't find any sources for this.Thanks.

Analyzer. :(
 

flatulent

Advanced Member level 5
Joined
Jul 19, 2002
Messages
4,629
Helped
489
Reputation
980
Reaction score
150
Trophy points
1,343
Location
Middle Earth
Activity points
46,689
sum of terms

You should be able to describe your sound in musical terms converted into math. For instance, a sine wave with harmonics will simulate a musical instrument tone. Then multiply it by an amplitude function. Then combine several of these musical tones by summing them. Finally put the instantaneous amplitude into a DAC. I suspect that you will have ot use a real DAC to get decent musical tones. The PIC pwm method is very crude.
 

Analyzer

Full Member level 6
Joined
Nov 18, 2001
Messages
374
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
3,518
Hmm,

Thank you but is there any instant solution for my project? I can imagine, your solution is good but complicated.So please inform me if there is an instant ic for this.Thank you.

Analyzer.
 

flatulent

Advanced Member level 5
Joined
Jul 19, 2002
Messages
4,629
Helped
489
Reputation
980
Reaction score
150
Trophy points
1,343
Location
Middle Earth
Activity points
46,689
past

Before the days of custom IC designs you could buy ready made music generators that could be programmed to sound like different instruments. Now you cannot.

You can generate the sould mathematically as described above and store the samples in a ROM for reading out to a DAC.
 

pro_ind

Junior Member level 1
Joined
Jun 24, 2002
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
41
Hi flatulent

I found in Many messaging devices(telephone), they use Eprom (eg hoktel)to store music(digitally) and they play back,the out put using PWM techiq is there any software or device that converts Human voice or small song to digital form so that it can be programmed in to eprom..

Please give me some DOC or information ,Thanks

Regards
pro_ind
 

flatulent

Advanced Member level 5
Joined
Jul 19, 2002
Messages
4,629
Helped
489
Reputation
980
Reaction score
150
Trophy points
1,343
Location
Middle Earth
Activity points
46,689
no info

I do not have personal knowledge of specific chips that use ROM readouts for sound.


They type of DAC will control the musical quality. If you are using a very small speaker, the PWM method will work. If you are using a larger speaker and are keen on music in general the real binary DAC will produce the least distortion and noise.
 

Cluricaun

Advanced Member level 2
Joined
Sep 28, 2001
Messages
627
Helped
17
Reputation
34
Reaction score
7
Trophy points
1,298
Activity points
3,315
PIC

Hi

For ordinary waves you can check bitscope wavepod, and Harry have wav to eprom, you just take the wav file and pick the appropriate hex code. check here:

hxxp://w1.859.telia.com/~u85920178/

Continue here: Projects->EPROM circuits-> EPROM AF Gen and Wav 2 EPROM, (you see it on the left).

Do not know if this helps.

Good luck
 

hwlee

Newbie level 5
Joined
Apr 27, 2003
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
124
you are luck ! i just finish a polyphonic piano from cypress psoc. i have attached the application note here. let me know if you have futher question.
 

Analyzer

Full Member level 6
Joined
Nov 18, 2001
Messages
374
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
3,518
Hi hwlee,

Thank you for your document, but can you publish full circuit diagram instead of block diagram please? Can i adapt these info to more common mcu's such as pics?
Thank you.

Analyzer
 

hwlee

Newbie level 5
Joined
Apr 27, 2003
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
124
i get the circuit from cypress FAE. since the mcu contains the analog function i needed for the piano, i do not have to worry about the "whole" circuit. as a matter of fact, i only need to put serveral c and r onto the board.

i believe you can use pic or other general purpose mcu. what you need is those analog blocks containing in psoc.

let me try to find something helpful and get back to you latter, ok ?
 

hwlee

Newbie level 5
Joined
Apr 27, 2003
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
124
Hi, Analyzer

are you trying to make a piano with good sound quality like a MIDI player or just a piano that can make sound (more like a toy) ?

hwlee
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top