⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mdc.html

📁 java编程的一些Applets例子。值得深入研究一下。
💻 HTML
字号:
<html>
<head>
   <title>JavaMidiKeyboard</title>
   <meta name="Author" content="">
   <meta name="GENERATOR" content="Mozilla/2.01Gold (Win32)">
</head>
<body>

<center><p><b><font SIZE=+3>Java MidiKeyboard </p></center>
<hr><applet CODE="MidiKeyboard.class" WIDTH=375 HEIGHT=80><param NAME=device VALUE="-1"><param NAME=velocity VALUE="100"><param NAME=progam VALUE="44"></applet>
<hr>
<br></font></b>Applet name: Java MidiKeyboard 
<br>Applet Source: <a href="MidiKeyboard.java">MidiKeyboard.java</a> 
<br>Import(s): java.net, java.util, java.applet, java.awt, java.io 
<br>Feature(s): text, image, mouse 
<br>Author: <a href="mailto:mash@interport.net (">Michael St. Hippolyte</a>


<p><b><font SIZE=+2>Usage Guide: </font></b></p>

<p>MidiKeyboard is a graphical representation of a synthesizer keyboard
which plays musical notes via MIDI when clicked on with the mouse. The
MIDI support is implemented using native methods, and is only provided
for Windows 95 and Windows NT. </p>

<p>MidiKeyboard supports a number of parameters, all of which are optional.
Proper usage of these parameters may require some knowledge of MIDI. The
available parameters: </p>

<p>device - the MIDI device ID to be used for output. This can be -1 for
the operating system's MIDI Mapper, or any value from 0 up to the number
of MIDI out deveices installed in the system minus 1. If this parameter
is absent, the device ID defaults to 0. </p>

<p>numkeys - the number of keys to display. This number can range from
1 to 128. The default value is 48. </p>

<p>startkey - the MIDI note number of the leftmost key on the keyboard.
MIDI note numbers range from 0 to 127. The default is 48, which is C one
octave below middle C. </p>

<p>velocity - the velocity value to use in the MIDI Note On messages generated
by the keyboard. A higher velocity means a louder, more forceful sounding
note. This value can range from 1 to 127. The default is 64. </p>

<p>channel - the MIDI channel to use for output. The channel number can
range from 0 to 15. The default is 0. </p>

<p>program - the MIDI program number, sometimes referred to as the patch
number, which specifies what instrument the keyboard will play. This value
can range from 0 to 127, with a default of 0. The actual instrument assignments
depend on the user's MIDI configuration. The most common configuration
on PC's is called General MIDI, in which program 0 is an acoustic piano.
</p>

<p>The following usage example specifies the MIDI Mapper as the device,
a moderately strong velocity, and MIDI program 44 (defined by General MIDI
as tremolo strings): </p>

<p>&lt;APPLET CODE=&quot;MidiKeyboard.class&quot; WIDTH=375 HEIGHT=80&gt;

<br>&lt;PARAM NAME=device VALUE=&quot;-1&quot;&gt; 
<br>&lt;PARAM NAME=velocity VALUE=&quot;100&quot;&gt; 
<br>&lt;PARAM NAME=progam VALUE=&quot;44&quot;&gt; 
<br>&lt;/APPLET&gt; 
<br>
<br></p>

<center><p>
<hr><a href="../index.html"><img src="../images/mantoid.gif" alt="Return to index." border=0 height=109 width=109></a></p></center>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -