Set tempo for "Play a" block
John Kauffman
Posts: 653
Is there a way to assign a beats per minute to duration values in a set of "Play a" blocks?
John Kauffman
Posts: 653
Comments
Could you use the play tone block and use the duration to achieve the same thing? For instance, at 120 BPM, each beat would be 500 ms (1/2 second)? This could make a very interesting lesson in math and music. The block could be used for rests (or with a wait block).
See this great resource at wiki - https://en.wikipedia.org/wiki/Tempo
But for play block, having a duration doesn't have a meaning in music without a tempo (or as the DJ's say: beats per minute). I don't know if it would be easy to have a block that sets tempo. I think there might be one in Scratch.
Here is something fun that could be Saved As to start a new bit of code or appended to code.
http://blockly.parallax.com/blockly/editor/blocklyc.jsp?project=15299#
Sometimes brute force is a fine solution.
BlocklyProp Code for S3 - BPM Set and Volume Set for S3 Play Tone Block - http://blockly.parallax.com/blockly/editor/blocklyc.jsp?project=15299