今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
Intro: Accessing peripherals
(robotic sound) - [Instructor] Hello and welcome to the fourth problem of the Code Clinic series. This is a challenge to build a musical instrument controlled by the computer mouse. The concept is easy but execution is difficult because many computer languages insulate the language from the hardware of the computer. This has the advantage of allowing one program to run on multiple computers without modification. But it has a disadvantage of making it difficult to access hardware that isn't available through the operating system. This challenge will illustrate this difference between different languages. Some will have absolutely no problem and some will find it impossible. Here's the challenge. Create a computer program that converts mouse movements into musical pitches. The instrument should be silent until one of the mouse buttons is held down. Move the mouse up and down to change the pitch. Move the mouse side to side to change the volume. Let go of the mouse button and the musical…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。