MIDI capability is a standard feature of audio hardware on Intel platforms. Interesting and innovative MIDI applications running under Microsoft Windows can be developed using the multimedia capabilities of Windows. This paper examines Windows MIDI develop

Byte1 (MSB) Not used
Byte2 Data2 Velocity
Byte3 Data1
Byte4 (LSB)
90H (All values in Hex)
Pitch NoteOn (9nH) Channel 1 (0H)Figure 1
or exchanging data blocks between MIDI devices.
Two broad categories of MIDI messages exist. The rst category consists of commands made up of one, two or three bytes of data. Typically, a status byte de ning the type of message and one or two data bytes that serve as parameters to the message. The status byte consists of a four-bit command and a four-bit channel assignment, as MIDI uses sixteen distinct communication channels. As an example, a NoteOn message, which plays a single note on a synthesizer, is represented by four bytes as shown in Figure 1.
Pitch is encoded as a keyboard key number and velocity affects the loudness of a note. Sending the four bytes to a MIDI soundcard plays a middle-C note on channel one.
A second category of MIDI messages, system exclusive (sysex) messages support user-de ned data by allowing any number of data bytes to be transmitted between a start and an end byte represented by F0H and F7H. System exclusive messages are typically used to transfer variable-length data blocks between a computer and a MIDI device.
Visual development environments such as Visual Basic, Delphi and C++ Builder provide multimedia components that use MCI functions. Streams are a recent addition to Windows, included with Windows98 and supported by later versions of Windows95. Streams provide a compromise between the limited functionality of the MCI and the programming dif culties associated with the low-level functions. Streams provide most of the functionality of the low-level API but do not support timestamped input of MIDI data. Robust applications that require timestamped input and output must use the low-level API. Support for MIDI is gradually appearing in Microsoft’s DirectMusic, which may become the standard for future MIDI development.
3.1 Basic MIDI Input and Output
Low-level API functions are documented in the Microsoft SDK, which also exists as a set of help les shipped by compiler vendors with their products. Despite recent improvements, the SDK is not a clear introduction to MIDI programming. The event-driven architecture of Windows does not allow the polling of input ports. Windows sends an application a message or callback when a speci c event occurs. A callback window procedure or a callback function process Windows messages for an application. Standard event-handlers such as OnMouseDown that use a callback window procedure are familiar to Windows programmers. Windows posts a message to a callback each time a complete MIDI message is received from an input port. To read MIDI data from an input port:
1 Determine the number of input ports available to Windows using GetNumIntputDevices()2 De ne a callback window or function.
3 Open an input port using MidInOpen( . .) and at-tach the callback to the input port by specifying the callback as one of the parameters.
4 Respond to the callback message, which will be a MIM_DATA message when the input port receives a complete MIDI message.
5 Close the input port before the application termi-nates with MidiInClose()
3. DEVELOPING WINDOWS
MIDI APPLICATIONS
Windows 3.11 and later versions of Windows provide a uniform software layer that MIDI hardware can communicate with using hardware-independent virtual device drivers. There are three different ways to implement Windows MIDI applications, by using the Media Control Interface (MCI) functions, using MIDI streams, or via the low-level Application Programmer’s Interface (API) functions.
MCI functions encapsulate the low-level multimedia API providing simple solutions to using MIDI.
在 Innovation 中提供了公司树帮助我们进行 这方面的检索,我们可以通过公司树来了解它的大致架构和收购历史等。 筛选授权专利可以通过文献种类标识代码(kind code)...
INNOVATION MANAGEMENT Ji?í Vacek vacekj@kip.zcu.cz Department of Management, Innovations and Projects UWB, Faculty of Economics Summer semester 2009/10 ...
www.ourchem.com 登录界面——www.thomsoninnovation.com 登录界面 奥凯 –信息咨询顾问 信息咨询顾问 www.ourchem.com 2 为Innovation设置自动登陆 设置自动登陆 ...
innovation cheat sheet-david_英语学习_外语学习_教育专区。innovation cheat sheet-david画ecosystem 的 elements 1, stockholders/potential a players 利益相关者 ...
Innovation创新-英语演讲稿_演讲/主持_工作范文_应用文书。创新-英语演讲稿What we cannot afford to lose We cannot lose innovation There is a wonderful word...
Disney (current) Author - Closing the Innovation Gap, McGraw-Hill, 2008 Over 100 interviews with innovators, leaders, educators COPYRIGHT ? JLABS, LLC ...
Discontinuous Innovation_销售/营销_经管营销_专业资料 暂无评价0人阅读0次下载举报文档 Discontinuous Innovation_销售/营销_经管营销_专业资料。Discontinuous ...
传统和创新(tradition and innovation )传统和创新(tradition and innovation )隐藏>> Tradition and Innovation Good morning, my fellow students and dear ...
The topic of my speech is: Tradition and Innovation. The modern society has witnessed a universal phenomenon which can be characterized by two key words:...
Thomson Innovation 快速参考指南登陆 http://www.thomsoninnovation.com/,输入用户名和密码访问 Thomson Innovation。 登录后的首页显示如下: ① ⑦②⑧③④⑩⑤⑥...
热门文档