论文部分内容阅读
在Scratch中,用键盘、鼠标来控制角色动作的例子非常多,如耳熟能详的走迷宫、大鱼吃小鱼、打地鼠等,那么同样属于输入设备的麦克风是否也能够控制角色的动作呢?在程序“侦测”模块中的“音量值”能体现麦克风输入声音的大小,从而在程序设计中可通过改变“音量值”的大小来实现对角色动作的控制,建立现实与虚拟的互动。本课先通过“听话的小猫”实例来初步感知麦克风输入的声音与“音量值”的关系,在此基础上模拟实现生活中“声控灯”的效果。在教学中,
In Scratch, there are many examples of using keyboards and mice to control character movements, such as familiar maze, big fish, and hamster. Can microphones that are also input devices also control their actions? In the program “detection ” module “volume value ” can reflect the size of the microphone input sound, so that in the program design by changing the “volume value” size to achieve the role of the control of the movement to establish Reality and virtual interaction. In this lesson, we first perceive the relationship between the microphone input sound and the “volume value” through the “obedient kitten” instance, and then simulate the effect of “sound-controlled lamp” in life. In teaching,