📄 midikeyboard.html
字号:
<HTML>
<HEAD>
<TITLE>MIDI Keyboard</TITLE>
</HEAD>
<BODY background="textur20.gif">
<P>
<h2 align=center>MIDI Keyboard</h2>
<p>
<p>Here is a MIDI Keyboard applet created in Java. Until you have Java MIDI set up on your system,
however, the space immediately below will be blank.
<p>
<div align=center>
<applet code=MidiKeyboard.class width=375 height=80>
<param name=program value="44">
<param name=velocity value="100">
</applet>
</div>
<p>So how do you set up Java MIDI? First of all, you need a Java-enabled browser
such as Netscape 2.0b2. You also need a platform-dependent Java-to-MIDI interface
file. Unfortunately, the only available interface file at present is for Windows 95
and NT. (If you want to port an interface for other platforms, <a href="javamidi.html">look here</a>
for more information.)
<p>Next, you need to manually install some Java class files on your system, because
Java won't automatically download classes that access system resources directly, in
order to foil the evil-minded Java programmers among us. Finally, you need to set
the CLASSPATH environment variable and reboot your system.
<p>I know, I know! I wish I could make it easier (I'm still trying). But if you're
with me so far and have a few minutes, you can do it. Just follow these steps:
<ol>
<p><li>Download <a href="javamidi.zip">javamidi.zip</a> (10K).
<p><li>Unzip javamidi.zip into a temporary directory. You should see seven files: <b>javamidi.dll</b>,
and six files with the <b>.class</b> extension.
<p><li>Copy javamidi.dll into your browser's <b>\java\bin</b> subdirectory. For Netscape,
\java\bin will normally be a subdirectory off of the directory containing the Netscape
executable. If you have trouble finding \java\bin, search for awt.dll or mmedia.dll,
and copy javamidi.dll into the same directory as those files.
<p><li>If you don't have a CLASSPATH on your system (and if you've never heard of a CLASSPATH
before, then you probably don't have one), select or create a directory to be your
CLASSPATH. Netscape normally has a subdirectory called <b>\java\classes</b> which works
fine for this purpose. Add the line <b>set CLASSPATH=<i>pathname</i></b>, where <b><i>dirname</i></b>
is the full path name of the CLASSPATH directory, to your <b>autoexec.bat</b> file.
Reboot your system to activate the CLASSPATH directory.
<p><li>Create a subdirectory called <b>midi</b> off of the CLASSPATH directory. Copy the six
files with the <b>.class</b> extension from the temporary directory to the midi subdirectory.
<p><li>Reload this page.
</ol>
<p>
<p>You should now see the image of a keyboard at the top of the page. If the keys on the
keyboard are yellow instead of white, it means that javamidi.dll is not properly installed,
or your system does not have any MIDI devices. If you don't see the keyboard at all,
it means your .class files are not properly installed. Retrace your steps and try again.
<p>
<p>Here is the <a href="MidiKeyboard.java">source</a> for the keyboard applet.
<br>
<br>
<p>
Back to <a href="java.html">Michael St. Hippolyte's Java page</a>.
<p>
<hr>
<font size=2>
<p>Last modified 11/06/95
<p>Copyright © 1995 by Michael St. Hippolyte. All rights reserved.
<p>Please send comments to <a href="mailto:mash@interport.net">mash@interport.net</a>.
</font>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -