摘要
目前,MIDI音乐多用PC制作。本文主要介绍基于AT89C51单片机实现MIDI音乐的制作和播放。本系统介绍由单片机产生MIDI消息,通过串口RS232与美得利MIDI音乐模块通信,此音乐模块相当于音乐合成器,能对MIDI消息进行译码,并执行MIDI消息,从而产生波形,送往扬声器发出音乐。系统可实现迪斯科、华尔兹、探戈等常用节奏型,并配以贝司与和弦,节奏的速度可以调节和显示。系统中还有多首背景音乐可选,也可通过编曲键盘自己设定背景音乐。系统简单可靠、音色优美动听。
At present, MIDI music is produced by PC. This paper proposed a method to proctuce and play music on AT89C51 single chip computer. The message is generated from single chip computer and communicated with MIDI music module through RS 232 interface. This music module performs the function of music synthesizer and decode MIDI message to generate waveform. Then, the waveform is transmitted to the broadcaster. This system can play rhythms like disco, tango and so on.
出处
《电子测量技术》
2007年第2期108-110,共3页
Electronic Measurement Technology