An octave defines a doubling in frequency. There are twelve notes in each octave, since the "oct" in "octave" means eight...I'd expect to see either 8 or 12 notes per octave.
Damn musicians.
An octave defines a doubling in frequency. There are twelve notes in each octave, since the "oct" in "octave" means eight...I'd expect to see either 8 or 12 notes per octave.
Yes you are correct!If the resultl is greater than the filled in part of the prosound table, that is going to cause problems. If you put "return" in for the unfilled part for testing that should help.
Yes yes yes!!!To reduce code size you can replace all the pssnd calls with a single function. Put the PR2 values in the table, CCPR1L is just PR2 shifted to the right, then you just have to set the prescaler according to the size of resultl.
Yes it's the frequency that is changing, the duty cycle stays the same. He's using the PWM module of the PIC to do it, and we've probably been a bit casual with the terminology.I hope you guys don't mind a dumb question. Been following this thread, and the one thing from the very start that has been bothering me is - How does changing pulse width(PWM) change the frequency?
Isn't the pulse width completely different than the frequency? The PWM I'm familiar with is not frequency. Always thought PWM frequency was the "carrier" frequency. Please help an old dumb guy here.
Maybe, to make them sound evenly spaced each note should be a fixed percentage higher than the last one. Try a few percentages in a spreadsheet until you find the one that gives the overall range you want.Yes yes yes!!!
I'm thinking if choosing them in an *evenly spaced* manner would make it sound like a siren with 32 different sounds!!s
If you look at a piano keyboard and count the keys from any key to before then next similar key (like the white key to the left of 3 black keys) you will find there are 12 keys or notes. The similar keys denote an octave, and an octave is a doubling of frequency.Maybe, to make them sound evenly spaced each note should be a fixed percentage higher than the last one. Try a few percentages in a spreadsheet until you find the one that gives the overall range you want.
Sorry, I don't read large portions of assembly.What do you think of these *evenly spaced* frequencies!!?
Would that generate 32 *different* s*o*u*n*d*s*??
Sir, you forgot to put your *glass* on attachment on post #37 are not *assembly* but just spreadsheet of values!!Sorry, I don't read large portions of assembly.