Sound command of Picbasic Pro to generate melody

Status
Not open for further replies.

jojokatada

Full Member level 5
Joined
Jan 13, 2005
Messages
255
Helped
19
Reputation
38
Reaction score
4
Trophy points
1,298
Activity points
2,122
picbasic sound

hi i would like to use pic16f84a to generate some tones

in the sound command of the pBP manual from 1 to 127 are tones ragne from 78hz to 10,000hz
while the piano has 88 tones from 27hz to 4,186hz

anybody have experience in using the sound command to generate some tones.

or i want to know in 128 tones from the sound command which range is the correspondingthe the 88 tones of the piano.

appreciate for suggestion,help
 

picbasic pro sound

well, you have to calculate the frequencies and make a parallel:
-for picbasic: 0=silence; 1=78.74hz; 2=2*78.74; 3=3*.. and so on...
-for the piano there is no such as linearity and you must know the correspondence between keys and freqs (from some tables or a piano-player);
 

picbasicpro sound

appreciate for the explaination

do you know where can i find the table of convertion pbp and the piano?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…