文件名称:98
-
所属分类:
- 标签属性:
- 上传时间:2014-03-14
-
文件大小:32.08kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1)编程思路:首先,本练习因为要制作模拟钢琴的实例,所以首先要生成程序界面:先通过语句Image m_ImgUp生成键盘、鼠标松开时显示的键盘图片,再通过语句Image m_ImgDown生成键盘、鼠标按下时显示的键盘图片,最后通过语句m_ImgUp=getImage(getDocumentBase(),"img/up.gif")和语句m_ImgDown=getImage(getDocumentBase(),"img/down.gif")加载图片,生成钢琴界面。然后,因为要实现模拟钢琴效果,所以要模拟声音的播放,首先通过语句AudioClip[] m_AudioClip=new AudioClip[14]生成一个音频对象的数组,保存七个中音和七个高音的声调,最后,通过函数public void keyPressed(KeyEvent e)来响应按下键盘的动作,实现声音的播放。-1) programming ideas: first, because to make examples of this exercise simulated piano, so we must first generate the program interface: first m_ImgUp generated when the keyboard, mouse, keyboard, display pictures by loosening the statement Image, then m_ImgDown generate keyboard and mouse through the statement Image Press keyboard display pictures, and finally through the statement m_ImgUp = getImage (getDocumentBase (), " img/up.gif" ) and statements m_ImgDown = getImage (getDocumentBase (), " img/down.gif" ) load images, generate piano interface. Then, because to achieve the effect of simulated piano, so to simulate the sound playback, first by the statement AudioClip [] m_AudioClip = new AudioClip [14] to generate an array of audio objects, saving seven midrange and treble tones of seven, and finally, By function public void keyPressed (KeyEvent e) in response to press the keyboard action, to achieve the sound.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
练习98模拟钢琴/AU/0.AU
练习98模拟钢琴/AU/1.AU
练习98模拟钢琴/AU/10.AU
练习98模拟钢琴/AU/11.AU
练习98模拟钢琴/AU/12.AU
练习98模拟钢琴/AU/13.AU
练习98模拟钢琴/AU/14.AU
练习98模拟钢琴/AU/2.AU
练习98模拟钢琴/AU/3.AU
练习98模拟钢琴/AU/4.AU
练习98模拟钢琴/AU/5.AU
练习98模拟钢琴/AU/6.AU
练习98模拟钢琴/AU/7.AU
练习98模拟钢琴/AU/8.AU
练习98模拟钢琴/AU/9.AU
练习98模拟钢琴/AU/_desktop.ini
练习98模拟钢琴/IMG/DOWN.GIF
练习98模拟钢琴/IMG/Thumbs.db
练习98模拟钢琴/IMG/UP.GIF
练习98模拟钢琴/IMG/_desktop.ini
练习98模拟钢琴/Piano.class
练习98模拟钢琴/Piano.html
练习98模拟钢琴/Piano.java
练习98模拟钢琴/_desktop.ini
练习98模拟钢琴/练习98模拟钢琴.doc
练习98模拟钢琴/AU
练习98模拟钢琴/IMG
练习98模拟钢琴
练习98模拟钢琴/AU/1.AU
练习98模拟钢琴/AU/10.AU
练习98模拟钢琴/AU/11.AU
练习98模拟钢琴/AU/12.AU
练习98模拟钢琴/AU/13.AU
练习98模拟钢琴/AU/14.AU
练习98模拟钢琴/AU/2.AU
练习98模拟钢琴/AU/3.AU
练习98模拟钢琴/AU/4.AU
练习98模拟钢琴/AU/5.AU
练习98模拟钢琴/AU/6.AU
练习98模拟钢琴/AU/7.AU
练习98模拟钢琴/AU/8.AU
练习98模拟钢琴/AU/9.AU
练习98模拟钢琴/AU/_desktop.ini
练习98模拟钢琴/IMG/DOWN.GIF
练习98模拟钢琴/IMG/Thumbs.db
练习98模拟钢琴/IMG/UP.GIF
练习98模拟钢琴/IMG/_desktop.ini
练习98模拟钢琴/Piano.class
练习98模拟钢琴/Piano.html
练习98模拟钢琴/Piano.java
练习98模拟钢琴/_desktop.ini
练习98模拟钢琴/练习98模拟钢琴.doc
练习98模拟钢琴/AU
练习98模拟钢琴/IMG
练习98模拟钢琴
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.