Greeting
Welcome to MSP430 Source code and example help center: http://www.franktu.com
MSP430 Source CodeTool Box for Firmware Engineer
GreetingWelcome to MSP430 Source code and example help center: http://www.franktu.com 2 Responses to “Greeting” |
Hi Frank,
I like your tutorials, they explain a lot that seems to be missing in other tutorials.
I have one question on your Playing Music tutorial.
In section 2, second paragraph you talk about controlling the time to play the note. You set the time for a 64th note to 4.5/64 seconds. Can you explain a little more about where the 4.5 comes from and why? It seems like it would be 1/64th of a second.
Any light you can shed on this would be helpful.
Thanks.
Regards,
Mike Warren
Hi Mike,
For a 1/4 note, usually takes 1 second in a song. I made it a little bit slower to 1.125 second.
1.125 for 1/4–>1.125/16 for 1/64, so we got 1.125/16=4.5/64.
You can make it faster or slower, just for fun.
Regards,
Frank