Midi
Midi
Midi
What is MIDI?
Some Clarification:
MIDI doesnt directly describe
musical sound
MIDI is not a language
MIDI Messages
Channel
Mode
Voice
System
Real Time
Common
System Exclusive
MIDI message types
1. channel messages:
MIDI channel messages have 4 modes:
Mode 1: Omni On + Poly, usually for testing devices
Mode 2: Omni On + Mono, has little purpose
Mode 3: Omni Off + Poly, for general purpose
Mode 4: Omni Off + Mono, for general purpose
where:
i. Omni On/Off:
respond to all messages regardless of their channel
ii. Poly/Mono:
respond to multiple/single notes per channel
MIDI message types
0 d d d d d d d
MIDI message types:
channel voice messages
a. Note On
To start a note, with particular pitch
and velocity, on a particular
channel
1st byte: Status byte
1 0 0 1 c c c c
1001 means note on,
cccc is the binary representation of the message
channel
MIDI message types:
channel voice messages
a. Note On
2nd byte: Pitch Data byte
0 d d d d d d d
0 v v v v v v v
vvvvvvv is the binary representation of
velocity (loudness) of the note (decimal 0-
127).
The velocity value does not specify a
particular loudness. It depends on velocity
map of the synthesizer/sampler, but 0 is
typically silence and 127 is typically loudest.
MIDI message types:
channel voice messages
b. Note Off
To end a note, with particular pitch, on a
particular channel
Its structure is very similar to Note On, except
that the 1st byte (status byte) is 1000cccc.
Note off message will stop a presently playing
note of the same pitch.
Running Status
144 60 39 64 43 67 37
So, we have GM
Define a set of available sound
patches, with their program numbers
fixed
Sequence recorded on one GM
synthesizer is then recognizable
on other synthesizers.
General MIDI specification
1. GM Lite
Based on the assumption that
the reduced performance may
be acceptable
- For example, different in
specification compared with GM1:
16 (half GM1) simultaneous notes
1 Simultaneous Percussion Kits
(GM1 has two channel 11 can be set
as percussion kit if necessary)
Other General MIDI standards
1. Dynamics
How should a note of pressure 120
on program number 1 be performed?
Different samplers use different voice
samples
what if manufacturer A uses a
Steinway piano, manufacturer B
uses a Yamaha piano?
The dynamics can be very different!
Limitations of GM
2. Instrument definition
We know what is a flute
?
MIDI Hardware
Optional Features
i. Note Polyphony:
Nowadays, most keyboard have polyphony
(a $200 keyboard made in the Mainland,
can have 10 polyphony)
ii. Touch response
A keyboard can sense different levels of
input pressure
MIDI Hardware
c. Controllers
Numbered controllers
e.g. volume panel
Continuous Controllers
You can roll the controller to get a particular
value
e.g. modulation wheel
On/Off controllers
can send two different values (e.g. 0/127)
e.g. foot pedal (sustain pedal)
MIDI Hardware
c. Controllers
bidirectional controllers
it will jump back to the center
when released
e.g.. pitch wheel
Method:
1. Wavetable/direct synthesis.
store the series of numbers the represent the amplitude
values of a waveform, at each sample interval, then recall
the stored value to produce sound
2. frequency modulation (FM) synthesis
Simple waveforms change the frequencies of other simple
waveform, produce a new waveform.
3. additive synthesis
add together a number of harmonics at different frequency
4. subtractive synthesis
starts with a waveform that is already rich in harmonics,
then filter out unwanted harmonics to produce a desired
sound
5, phase distortion
a simple waveform is altered to produce a more complex
one
MIDI Hardware
Example: Yamaha SY85 Synthesizer
What synthesis technique does it use?
Sampling wavetable
for attack for sus/decay
lowpass
filter
out
Plays back samples in attack, and then begins looping
one period of samples for sustain and decay.
Uses LPF with decreasing cutoff frequency to make
wavetable output gradually become less bright.
Uses 5-segment amplitude envelopes for wavetable
synthesis.
MIDI Hardware
e. Sequencer
replay a sequence of MIDI messages
f. MIDI interface
P.S. now, most studio use software samplers for pop song,
instead of hardware sampler.
WHY?
Since it is more economical, and more efficient to update
1. Studio Production
recording, playback, cut-and-splice
editing
creative control/effect can be added
2. Making score
with score editing software, MIDI is
excellent in making score
some MIDI software provide function of
auto accompaniment/intelligent chord
arrangement
3. Learning
You can write a MIDI orchestra, who are
always eager to practice with you!
Applications of MIDI
4. Commercial products
mobile phone ring tones, music box
music..
5. Musical Analysis
MIDI has detailed parameters for every
input note
It is useful for doing research