SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Audio Engineering
MIDI
• MIDI (Musical Instrument Digital Interface); is an
industry-standard protocol that enables electronic
musical instruments and other equipment to
communicate, control and synchronize with each other
and to exchange system data
• Devices such as computers, synthesizers, keyboard
controllers, sound cards, samplers and drum machines
• MIDI does not transmit an audio signal or media!
• The sounds are generated by the synthesizer, which
receives the MIDI data
History
• By the end of the 1970s, devices from different
manufacturers were generally incompatible with each
other. At the control level, they had their own specific laws
for defining voltage to pitch conversions
• Dave Smith proposed a digital standard for musical
instruments at the Audio Engineering Society show in New
York
• The MIDI Specification 1.0 was established in August 1983
• The MIDI specification has been re‐released many times
since, listing new features
• In 1990, the International MIDI Association changed its
name to the MIDI Manufacturers Association, MMA
Interfacing
MIDI Ports
• MIDI-In Port allows data to be received by a
MIDI-compliant device

• MIDI-Out Port is used for transmitting data

• MIDI-Thru Port is used for linking a no. of
MIDI devices with a single transmitter
MIDI Thru
New Interfacing methods
Networks

A MIDI network is a combination of hardware and
software that provides interconnectivity between a
group of MIDI devices, such as
synthesizers, controllers, and sequencers
Protocol
•
•
•
•
•

MIDI is a serial stream of data
Runs at 31250 bits per second baud rate
Describes event information
Asynchronous transmission
A 'standard' MIDI word consists of three bytes:
The first is a Status byte, the second and third
are Data bytes
• All status bytes have their MSB set to
1, whereas all data bytes have it set to 0
Messages
• MIDI messages commonly have at least one
COMMANDSTATUS byte and may have zero
or more DATA bytes
• Types of Messages:
1. Channel Messages
2. System Exclusive Messages
3. System Common Messages
4. System Real-Time Messages
Message Name

Byte 1

Byte 2

Byte 3

Example

Channel Messages

1000 cccc

The
MIDI
key
The velocity specifies
specifies the number
83 3D 79 turns note 3D (decimal 61) on channel 3 off
how quickly the noteof the key or note to
with a velocity of 79 (decimal 121).
release is affected.
release.

Note On

1001 cccc

The
MIDI
key
specifies the number
of the key or note to
turn on.

The velocity specifies
how
quickly
or 94 3D 79 turns note 3D (decimal 61) on channel 4 on
forcefully the note is with a velocity of 79 (decimal 121).
struck.

Polyphonic
Aftertouch

1010 cccc

The
MIDI
number.

The key pressure value.

Control Change

1011 cccc

The controller number The controller
[0 - 119]
[0 - 127]

Program
Change

1100cccc

The new program
-- n/a -(patch) number.

C3 44 changes the program number for MIDI channel
3 to 44 (decimal 68).

1101 cccc

The single greatest
pressure value of all -- n/a -depressed keys.

D3 44 changes the channel-pressure for MIDI
channel 3 to 44 (decimal 68).

Note Off

Channel
Pressure
(Aftertouch)
Pitch
Change
Bend)

Wheel
(Pitch 1110 cccc

key

A0 3D 5A changes the pressure for note 3D (decimal
61) on channel 0 to a value of 5A (decimal 90).

value B3 10 7F sets the value of controller number 10
(decimal 16) to 7F (decimal 127).

Least significant 7Most significant 7-bits E1 70 37 sets the pitch-bend for channel 1 to a value
bits of pitch-bend
of pitch-bend value.
of 03F8 (decimal 1016).
value.
System Exclusive Messages
• System Exclusive Messages are generally longer MIDI
messages that are used for a variety of purposes
• One of the primary purposes of the SysEx message is to
send manufacturer-specific data to a MIDI synthesizer

• Each SysEx message begins with two data bytes F0
(1111 0000) and 0iiiiiii, where iiiiiii is a manufacturer's
code and equipment only responds to messages with the
correct manufacturer's code
• The SysEx message is terminated when the byte value
F7 (1111 0111) is encountered
System Common Messages
Message Name

Byte 1

Byte 2

Byte 3

System Exclusive

F0 (1111 0000)

The
manufacture's
identifier.

unique

Reserved

F1 (1111 0001)

-- n/a --

-- n/a --

Song Position Pointer

F2 (1111 0010)

Least significant 7-bits.

Most significant 7-bits.

Song Select

F3 (1111 0011)

The song or sequence to be
-- n/a -played.

Reserved

F4 (1111 0100)

-- n/a --

-- n/a --

Reserved

F5 (1111 0101)

-- n/a --

-- n/a --

Tune Request

F6 (1111 0110)

-- n/a --

-- n/a --

System Exclusive END

F7 (1111 0111)

-- n/a --

-- n/a --

-- n/a --
System Real-Time Messages
Message Name

Byte 1

Byte 2

Byte 3

Timing Clock

F8 (1111 1000)

-- n/a --

-- n/a --

Reserved

F9 (1111 1001)

-- n/a --

-- n/a --

Start

FA (1111 1010)

-- n/a --

-- n/a --

Continue

FB (1111 1011)

-- n/a --

-- n/a --

Stop

FC (1111 1100)

-- n/a --

-- n/a --

Reserved

FD (1111 1101)

-- n/a --

-- n/a --

Active Sensing

FE (1111 1110)

-- n/a --

-- n/a --

Reset

FF (1111 1111)

-- n/a --

-- n/a --
MIDI Controllers
Example
1. Note-On message:
0x90, 0x3C, 0x7F

2. Aftertouch message(s):
0xD3, 0x46

3. Note-Off message:
0x80, 0x3C, 0x46
Composition & File formats
• MIDI composition and arrangement typically takes place using
either MIDI sequencing/editing software on computers or using
specialized hardware music workstations
• MIDI data files are much smaller than recorded audio waveforms
• The SMF specification was developed and is being maintained
by, the MIDI Manufacturers Association (MMA)
• Karaoke files display lyrics synchronized with the music in
"follow-the-bouncing-ball" fashion, turning any PC into a karaoke
machine
Synthesizer
• A synthesizer is an electronic musical instrument that
uses one or more sound generators to create waveforms
which are then processed and combined in order to
generate musical sounds
• MIDI synthesizers produce musical tones and
percussion based on the input of MIDI software
messages
Sequencer
• A music sequencer is an application or a device
designed to record and play back musical notation
• A MIDI sequencer is the electronic version of the
musician in the MIDI world
• A MIDI sequencer:
a) records MIDI software message sequences
b) replays MIDI software sequences with the appropriate
timing
c) provides some sort of editing capabilities
• The terms "Music Sequencer" and "Digital Audio
Workstation" are often used interchangeably
Sampler

A sampler is an electronic musical instrument which
plays back recordings (or “samples") that are loaded
or recorded onto it to perform or compose music
Software samplers
MIDI Standards
Patch

Family Name

Patch

Family Name

1-8

Piano

65 - 72

Reed

9 - 16

Chromatic Percussion

73 - 80

Pipe

17 - 24

Organ

81 - 88

Synth Lead

25 - 32

Guitar

89- 96

Synth Pad

33 - 40

Bass

97 - 104

Synth Effects

41 - 48

Strings

105 - 112

Ethnic

49- 56

Ensemble

113 - 120

Percussive

57 - 64

Brass

121 - 128

Sound Effects
Musical Applications
• You can use a MIDI instrument with which you’re
comfortable to play the sounds belonging to any other MIDI
device.
• Create rich musical textures by layering sounds from
multiple MIDI devices, or assign different sounds to play in
different pitch ranges.
• When you play a MIDI instrument, it produces data that can
be captured by a MIDI “sequencer.” Sequencers aren’t just
MIDI recorders, they let you fix mistakes, change the
pitches of your notes, fix their timing, the way they play,
the sounds they use, and more.
LED
1

LED
2

LED
3

LED
4

LED
5

LED
6

LED
7

LED
8

LCD
SW1

SW2

SW3

ATMega128 μC
TX

SW4

RX

UART
1

PC
LED
1

LED
2

LED
3

LED
4

LED
5

LED
6

LED
7

LED
8

LCD
SW1

SW2

SW3

Sends
0x90, 0x24, 0x7F
to PC

^

B
TX

SW4

RX

UART
1

PC
LED
1

LED
2

LED
3

LED
4

LED
5

LED
6

LED
7

LED
8

LCD
SW1

SW2

SW3

^

Sends 0x91, 0x26,
0x7F to PC

BS
TX

SW4

RX

UART
1

PC
LED
1

LED
2

LED
3

LED
4

LED
5

LED
6

LED
7

LED
8

LCD
SW1

SW2

SW3

Sends
0x92, 0x31, 0x7F
to PC

^

BSC
TX

SW4

RX

UART
1

PC
LED
1

LED
2

LED
3

LED
4

LED
5

LED
6

LED
7

LED
8

LCD
SW1

SW2

SW3

Sends
0x93, 0x2E, 0x7F
to PC

^

BSCH
TX

SW4

RX

UART
1

PC
Non-musical Applications
•
•
•
•
•
•
•
•
•
•
•

Show control
Machine control
Theatre lighting
Console automation
Special effects
Sound design
Recording system synchronization
Audio processor control
Computer animation
Computer networking
Video Jockeys
We have come a long way...
References
•
1.
2.
3.
4.
5.

Webistes:
Wikipedia (http://en.wikipedia.org/)
How stuff works (http://www.howstuffworks.com/)
MIDI Manufacturers Association (http://www.midi.org/)
MIDI Reference from IO.com(http://www.io.com/)
Tonalsoft (http://www.tonalsoft.com/)

• Books and eBooks:
1. eBook – MIDI and the AVR – AVRFreaks.com
(http://www.avrfreaks.com/)
2. Audio Engineering: Know It All - Douglas Self
3. Audio Electronics, Second edition - John Linsley Hood
Thank You
Bhaumik Bhatt

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Multimedia chapter 4
Multimedia chapter 4Multimedia chapter 4
Multimedia chapter 4
 
Sound
SoundSound
Sound
 
Chapter 5 - Data Compression
Chapter 5 - Data CompressionChapter 5 - Data Compression
Chapter 5 - Data Compression
 
Video compression
Video compressionVideo compression
Video compression
 
Multimedia color in image and video
Multimedia color in image and videoMultimedia color in image and video
Multimedia color in image and video
 
Video on demand
Video on demandVideo on demand
Video on demand
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Multimedia file formats
Multimedia file formatsMultimedia file formats
Multimedia file formats
 
Digital Audio
Digital AudioDigital Audio
Digital Audio
 
Chapter 6 - Multimedia Over Ip
Chapter 6 - Multimedia Over IpChapter 6 - Multimedia Over Ip
Chapter 6 - Multimedia Over Ip
 
Ppt on audio file formats
Ppt on audio file formatsPpt on audio file formats
Ppt on audio file formats
 
Multimedia:Multimedia compression
Multimedia:Multimedia compression Multimedia:Multimedia compression
Multimedia:Multimedia compression
 
IT Introduction - 06. Graphic & Multimedia
IT Introduction - 06. Graphic & MultimediaIT Introduction - 06. Graphic & Multimedia
IT Introduction - 06. Graphic & Multimedia
 
Video
VideoVideo
Video
 
Audio format
Audio formatAudio format
Audio format
 
YUV, Y CB CR and Subsampling
YUV, Y CB CR and SubsamplingYUV, Y CB CR and Subsampling
YUV, Y CB CR and Subsampling
 
Multimedia- How Internet Works
Multimedia- How Internet WorksMultimedia- How Internet Works
Multimedia- How Internet Works
 
Chapter 7 : MAKING MULTIMEDIA
Chapter 7 : MAKING MULTIMEDIAChapter 7 : MAKING MULTIMEDIA
Chapter 7 : MAKING MULTIMEDIA
 
Digital video
Digital videoDigital video
Digital video
 
Multimedia communication networks
Multimedia communication networksMultimedia communication networks
Multimedia communication networks
 

Ähnlich wie The MIDI Protocol - Musical Instrument Digital Interface

Ig2 task 1 no2
Ig2 task 1 no2Ig2 task 1 no2
Ig2 task 1 no2
Kenyon101
 
A2Z Control System
A2Z Control SystemA2Z Control System
A2Z Control System
zatinsinghal
 
Lecture# 7 midi file format
Lecture#  7 midi file formatLecture#  7 midi file format
Lecture# 7 midi file format
Mr SMAK
 
Rloynd ig2 t1 ws
Rloynd ig2 t1 wsRloynd ig2 t1 ws
Rloynd ig2 t1 ws
rosstapher
 
Ig2 task 1 work sheet
Ig2 task 1 work sheetIg2 task 1 work sheet
Ig2 task 1 work sheet
Gladeatorkid
 

Ähnlich wie The MIDI Protocol - Musical Instrument Digital Interface (20)

Ig2 task 1
Ig2 task 1Ig2 task 1
Ig2 task 1
 
Ig2 task 1 no2
Ig2 task 1 no2Ig2 task 1 no2
Ig2 task 1 no2
 
Saxophus: Virtual Soprano, Alto, Tenor and Baritone Saxophones VST VST3 Audio...
Saxophus: Virtual Soprano, Alto, Tenor and Baritone Saxophones VST VST3 Audio...Saxophus: Virtual Soprano, Alto, Tenor and Baritone Saxophones VST VST3 Audio...
Saxophus: Virtual Soprano, Alto, Tenor and Baritone Saxophones VST VST3 Audio...
 
2 Midi
2 Midi2 Midi
2 Midi
 
Midi workstation basics
Midi workstation basicsMidi workstation basics
Midi workstation basics
 
A2Z Control System
A2Z Control SystemA2Z Control System
A2Z Control System
 
Ig2
Ig2Ig2
Ig2
 
Drumwavy VST VST3 Audio Unit: Orchestral and Ethnic Percussion VST, VST3 and ...
Drumwavy VST VST3 Audio Unit: Orchestral and Ethnic Percussion VST, VST3 and ...Drumwavy VST VST3 Audio Unit: Orchestral and Ethnic Percussion VST, VST3 and ...
Drumwavy VST VST3 Audio Unit: Orchestral and Ethnic Percussion VST, VST3 and ...
 
audio digital.pdf
audio digital.pdfaudio digital.pdf
audio digital.pdf
 
Lecture# 7 midi file format
Lecture#  7 midi file formatLecture#  7 midi file format
Lecture# 7 midi file format
 
Rloynd ig2 t1 ws
Rloynd ig2 t1 wsRloynd ig2 t1 ws
Rloynd ig2 t1 ws
 
MIDI for A2 music tech students
MIDI for A2 music tech studentsMIDI for A2 music tech students
MIDI for A2 music tech students
 
Chordophonet Virtual Concert Pedal Harp, Celtic Harp, Electric and Synth Harp...
Chordophonet Virtual Concert Pedal Harp, Celtic Harp, Electric and Synth Harp...Chordophonet Virtual Concert Pedal Harp, Celtic Harp, Electric and Synth Harp...
Chordophonet Virtual Concert Pedal Harp, Celtic Harp, Electric and Synth Harp...
 
RetroMagix Harpsichord VST VST3 Audio Unit EXS24 & KONTAKT: Based on Flemish,...
RetroMagix Harpsichord VST VST3 Audio Unit EXS24 & KONTAKT: Based on Flemish,...RetroMagix Harpsichord VST VST3 Audio Unit EXS24 & KONTAKT: Based on Flemish,...
RetroMagix Harpsichord VST VST3 Audio Unit EXS24 & KONTAKT: Based on Flemish,...
 
AUDIO DEVICES, FORMATS AND CODECS
AUDIO DEVICES, FORMATS AND CODECSAUDIO DEVICES, FORMATS AND CODECS
AUDIO DEVICES, FORMATS AND CODECS
 
DAL Flute & Woodwinds VST VST3 Audio Unit: Virtual Flute, Oboe, Clarinet, Eng...
DAL Flute & Woodwinds VST VST3 Audio Unit: Virtual Flute, Oboe, Clarinet, Eng...DAL Flute & Woodwinds VST VST3 Audio Unit: Virtual Flute, Oboe, Clarinet, Eng...
DAL Flute & Woodwinds VST VST3 Audio Unit: Virtual Flute, Oboe, Clarinet, Eng...
 
Ig2 task 1 work sheet
Ig2 task 1 work sheetIg2 task 1 work sheet
Ig2 task 1 work sheet
 
Cgt158 midi
Cgt158 midiCgt158 midi
Cgt158 midi
 
Sound.pptx
Sound.pptxSound.pptx
Sound.pptx
 
Mc303 Adv Midi
Mc303 Adv MidiMc303 Adv Midi
Mc303 Adv Midi
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

The MIDI Protocol - Musical Instrument Digital Interface

  • 2. MIDI • MIDI (Musical Instrument Digital Interface); is an industry-standard protocol that enables electronic musical instruments and other equipment to communicate, control and synchronize with each other and to exchange system data • Devices such as computers, synthesizers, keyboard controllers, sound cards, samplers and drum machines • MIDI does not transmit an audio signal or media! • The sounds are generated by the synthesizer, which receives the MIDI data
  • 3. History • By the end of the 1970s, devices from different manufacturers were generally incompatible with each other. At the control level, they had their own specific laws for defining voltage to pitch conversions • Dave Smith proposed a digital standard for musical instruments at the Audio Engineering Society show in New York • The MIDI Specification 1.0 was established in August 1983 • The MIDI specification has been re‐released many times since, listing new features • In 1990, the International MIDI Association changed its name to the MIDI Manufacturers Association, MMA
  • 5. MIDI Ports • MIDI-In Port allows data to be received by a MIDI-compliant device • MIDI-Out Port is used for transmitting data • MIDI-Thru Port is used for linking a no. of MIDI devices with a single transmitter
  • 6.
  • 9. Networks A MIDI network is a combination of hardware and software that provides interconnectivity between a group of MIDI devices, such as synthesizers, controllers, and sequencers
  • 10. Protocol • • • • • MIDI is a serial stream of data Runs at 31250 bits per second baud rate Describes event information Asynchronous transmission A 'standard' MIDI word consists of three bytes: The first is a Status byte, the second and third are Data bytes • All status bytes have their MSB set to 1, whereas all data bytes have it set to 0
  • 11. Messages • MIDI messages commonly have at least one COMMANDSTATUS byte and may have zero or more DATA bytes • Types of Messages: 1. Channel Messages 2. System Exclusive Messages 3. System Common Messages 4. System Real-Time Messages
  • 12. Message Name Byte 1 Byte 2 Byte 3 Example Channel Messages 1000 cccc The MIDI key The velocity specifies specifies the number 83 3D 79 turns note 3D (decimal 61) on channel 3 off how quickly the noteof the key or note to with a velocity of 79 (decimal 121). release is affected. release. Note On 1001 cccc The MIDI key specifies the number of the key or note to turn on. The velocity specifies how quickly or 94 3D 79 turns note 3D (decimal 61) on channel 4 on forcefully the note is with a velocity of 79 (decimal 121). struck. Polyphonic Aftertouch 1010 cccc The MIDI number. The key pressure value. Control Change 1011 cccc The controller number The controller [0 - 119] [0 - 127] Program Change 1100cccc The new program -- n/a -(patch) number. C3 44 changes the program number for MIDI channel 3 to 44 (decimal 68). 1101 cccc The single greatest pressure value of all -- n/a -depressed keys. D3 44 changes the channel-pressure for MIDI channel 3 to 44 (decimal 68). Note Off Channel Pressure (Aftertouch) Pitch Change Bend) Wheel (Pitch 1110 cccc key A0 3D 5A changes the pressure for note 3D (decimal 61) on channel 0 to a value of 5A (decimal 90). value B3 10 7F sets the value of controller number 10 (decimal 16) to 7F (decimal 127). Least significant 7Most significant 7-bits E1 70 37 sets the pitch-bend for channel 1 to a value bits of pitch-bend of pitch-bend value. of 03F8 (decimal 1016). value.
  • 13. System Exclusive Messages • System Exclusive Messages are generally longer MIDI messages that are used for a variety of purposes • One of the primary purposes of the SysEx message is to send manufacturer-specific data to a MIDI synthesizer • Each SysEx message begins with two data bytes F0 (1111 0000) and 0iiiiiii, where iiiiiii is a manufacturer's code and equipment only responds to messages with the correct manufacturer's code • The SysEx message is terminated when the byte value F7 (1111 0111) is encountered
  • 14. System Common Messages Message Name Byte 1 Byte 2 Byte 3 System Exclusive F0 (1111 0000) The manufacture's identifier. unique Reserved F1 (1111 0001) -- n/a -- -- n/a -- Song Position Pointer F2 (1111 0010) Least significant 7-bits. Most significant 7-bits. Song Select F3 (1111 0011) The song or sequence to be -- n/a -played. Reserved F4 (1111 0100) -- n/a -- -- n/a -- Reserved F5 (1111 0101) -- n/a -- -- n/a -- Tune Request F6 (1111 0110) -- n/a -- -- n/a -- System Exclusive END F7 (1111 0111) -- n/a -- -- n/a -- -- n/a --
  • 15. System Real-Time Messages Message Name Byte 1 Byte 2 Byte 3 Timing Clock F8 (1111 1000) -- n/a -- -- n/a -- Reserved F9 (1111 1001) -- n/a -- -- n/a -- Start FA (1111 1010) -- n/a -- -- n/a -- Continue FB (1111 1011) -- n/a -- -- n/a -- Stop FC (1111 1100) -- n/a -- -- n/a -- Reserved FD (1111 1101) -- n/a -- -- n/a -- Active Sensing FE (1111 1110) -- n/a -- -- n/a -- Reset FF (1111 1111) -- n/a -- -- n/a --
  • 17. Example 1. Note-On message: 0x90, 0x3C, 0x7F 2. Aftertouch message(s): 0xD3, 0x46 3. Note-Off message: 0x80, 0x3C, 0x46
  • 18. Composition & File formats • MIDI composition and arrangement typically takes place using either MIDI sequencing/editing software on computers or using specialized hardware music workstations • MIDI data files are much smaller than recorded audio waveforms • The SMF specification was developed and is being maintained by, the MIDI Manufacturers Association (MMA) • Karaoke files display lyrics synchronized with the music in "follow-the-bouncing-ball" fashion, turning any PC into a karaoke machine
  • 19. Synthesizer • A synthesizer is an electronic musical instrument that uses one or more sound generators to create waveforms which are then processed and combined in order to generate musical sounds • MIDI synthesizers produce musical tones and percussion based on the input of MIDI software messages
  • 20. Sequencer • A music sequencer is an application or a device designed to record and play back musical notation • A MIDI sequencer is the electronic version of the musician in the MIDI world • A MIDI sequencer: a) records MIDI software message sequences b) replays MIDI software sequences with the appropriate timing c) provides some sort of editing capabilities • The terms "Music Sequencer" and "Digital Audio Workstation" are often used interchangeably
  • 21. Sampler A sampler is an electronic musical instrument which plays back recordings (or “samples") that are loaded or recorded onto it to perform or compose music
  • 23. MIDI Standards Patch Family Name Patch Family Name 1-8 Piano 65 - 72 Reed 9 - 16 Chromatic Percussion 73 - 80 Pipe 17 - 24 Organ 81 - 88 Synth Lead 25 - 32 Guitar 89- 96 Synth Pad 33 - 40 Bass 97 - 104 Synth Effects 41 - 48 Strings 105 - 112 Ethnic 49- 56 Ensemble 113 - 120 Percussive 57 - 64 Brass 121 - 128 Sound Effects
  • 24. Musical Applications • You can use a MIDI instrument with which you’re comfortable to play the sounds belonging to any other MIDI device. • Create rich musical textures by layering sounds from multiple MIDI devices, or assign different sounds to play in different pitch ranges. • When you play a MIDI instrument, it produces data that can be captured by a MIDI “sequencer.” Sequencers aren’t just MIDI recorders, they let you fix mistakes, change the pitches of your notes, fix their timing, the way they play, the sounds they use, and more.
  • 25.
  • 31. Non-musical Applications • • • • • • • • • • • Show control Machine control Theatre lighting Console automation Special effects Sound design Recording system synchronization Audio processor control Computer animation Computer networking Video Jockeys
  • 32. We have come a long way...
  • 33. References • 1. 2. 3. 4. 5. Webistes: Wikipedia (http://en.wikipedia.org/) How stuff works (http://www.howstuffworks.com/) MIDI Manufacturers Association (http://www.midi.org/) MIDI Reference from IO.com(http://www.io.com/) Tonalsoft (http://www.tonalsoft.com/) • Books and eBooks: 1. eBook – MIDI and the AVR – AVRFreaks.com (http://www.avrfreaks.com/) 2. Audio Engineering: Know It All - Douglas Self 3. Audio Electronics, Second edition - John Linsley Hood

Hinweis der Redaktion

  1. Audio engineering is a part of audio science dealing with the recording and reproduction of sound through mechanical and electronic means.An audio engineer must be proficient with different types of recording media, such as analog tape, digital multi-track recorders and workstations, and computer knowledge.In this digital age, an audio engineer requires to be well-versed with the overall understanding of software and hardware integration andanalog-digital audio transfers.Let us take on a topic that has been of immense help and utmost importance to audio engineers around the globe!
  2. MIDI (Musical Instrument Digital Interface) is an industry-standard protocol that enables electronic musical instruments and other equipment to communicate, control and synchronize with each other and to exchange system data.It is an opto-isolated serial interface and communication protocol. MIDI data is in serial binary form (i.e. 1’s and 0’s, known as bits) and is transmitted between devices via a single data cable.Devices such as computers, synthesizers, keyboard controllers, sound cards, samplers and drum machines. It provides for the transmission from one device or instrument to another of real-time performance data.MIDI does not transmit an audio signal or media! It is important to remember that MIDI does not send sounds; rather it sends instructions on how the sounds are to be performed. It only transmits event messages such as the pitch and intensity of musical notes to be played. Control signals for parameters such asvolume, vibrato and panning, and clock signals to set the tempo.The sounds are generated by the synthesizer, which receives the MIDI data.The electronic protocol is widely used throughout the music industry.(Click on audio button for nokia tune)
  3. With it’s history we understand how it came into existence and why?By the end of the 1970s, electronic musical devices were becoming increasingly common and affordable. However, devices from different manufacturers were generally not compatible with each other and could not be interconnected. At the control level, they had their own specific laws for defining voltage to pitch conversions. Following several months of discussion between US and Japanese manufacturers, in November 1981, audio engineer Dave Smith of Sequential Circuits, Inc. proposed a digital standard for musical instruments at the Audio Engineering Society show in New York. By the time of the January, 1983 Winter NAMM show, Smith was successfully able to demonstrate a MIDI connection between his Prophet 600 and a Roland JP-6. The MIDI Specification 1.0 was established in August 1983 by the International MIDI Association and by the end of that year most synthesizer manufacturers had begun to include a MIDI interface as a standard communications system. Dave smith, later came to be known as the "Father of MIDI“. The MIDI specification has been re‐released many times since, listing new features.In 1990, the International MIDI Association changed its name to the MIDI Manufacturers Association, MMA.
  4. The original physical MIDI connection uses DIN 5/180° connectors.Simply put, 5 pins occupying 180° or half of the circular connector.Interestingly, the connector is an earlier version of the PS-2 or mini-DIN connectors, which we use nowadays for keyboards and mice!Opto-isolating connections are used, to prevent ground loops occurring among connected MIDI devices.The traditional MIDI cable used is a shielded twisted pair.
  5. The MIDI port is the logical and/or physical connection, through which MIDI devices communicate with one another.MIDI-In Port allows data to be received by a MIDI-compliant device. The In-port is how a MIDI synthesizer is controlled by an external device or sequencer.MIDI-Out Port is used for transmitting data.MIDI-Thru Port is used for linking a no. of MIDI devices with a single transmitter. Data that comes out of a device's MIDI-Thru port is an exact duplicate of the data received at the MIDI-In port and has not been generated on the device’s MIDI-Out port.
  6. The MIDI IN connector is supposed to have the opto-isolator and no ground connection to pin 2 or to the shield for the express purpose of avoiding a ground loop.Ground loops will cause horrendous hum, buzzes, and other noises, especially when connected to computerized gear or lighting equipment.The noises are caused by differences in voltage potential from one end of the cable to the other.This is done by using a balanced current loop through an opto-isolator and only grounding the MIDI outputs.
  7. MIDI-Thru Port repeats the data that is received by the MIDI-In port; i.e. the incoming data is retransmitted over the MIDI-Thru port, therefore a no. of other devices can be linked.The musician controls the primary keyboard. The primary-keyboard's MIDI-Out port controls the secondary keyboard. The secondary keyboard is also configured to pass-through incoming commands to the MIDI-Thru port, which controls the tertiary keyboard. Hence, the musician is able to control two additional keyboards via a single MIDI-Out port.
  8. All MIDI compatible instruments have a built-in MIDI.Some computers' sound cards have a built-in MIDI, whereas others require an external MIDI which is connected to the computer via the USB connector or by FireWire.Due to the increasing use of computers for music-making and composition and increased use of USB connectors, companies began making USB-to-MIDI audio interfaces, while MIDI keyboard controllers were equipped with USB jacks.
  9. A MIDI network is a combination of hardware and software that provides interconnectivity between a group of MIDI devices, such as synthesizers, controllers, and sequencers. The concept of the MIDI network is just a generalization of a device called the Patch Bay. Originally, a "patch bay" module consisted of a MIDI-In connector and multiple MIDI-Out connectors.A MIDI network may contain one or more logical MIDI ports that interconnect dozens of MIDI devices.
  10. MIDI is a serial stream of data and runs at 31250 bits per second baud rate. It is used to describe when a note is pressed, which note it is, how hard and for how long, but not the sound that is created by this action.The transmission of MIDI messages is asynchronous, i.e. is not constant or only occurring when a message is sent from a device.A 'standard' MIDI word consists of three bytes, though depending on use it may have more or less, generally though. The first is a Statusbyte, the second and third are Databytes.So, with a stream of data coming in, how do you know which byte is which? And which byte is for what? This will be answered later… Hang on.All status bytes have their MSB set to 1, whereas all data bytes have it set to 0.
  11. MIDI messages commonly have at least one COMMAND byte and may have zero or more DATA bytes.We can categorize MIDI messages into the following categories: 1. Channel Messages2. System Exclusive Messages3. System Common Messages4. System Real-Time Messages 
  12. Channel messages are used for controlling one or more of the 16 MIDI channels or for controlling musical notes using a specific MIDI channel. There are only 16 MIDI channels per logical MIDI-Port or connection.Channel messagesare the primary messages used for controlling synthesizers and for receiving input from MIDI controllers. Channel messages require two or three bytes, depending on the specific message. The first byte is always divided into two nibbles (4-bits). The first nibble contains the message number, and the second nibble contains the channel number. Channels have a value between 0 and 15.
  13. System Exclusive Messages:One of the primary purposes of the SysEx message is to send manufacturer-specific data to a MIDI synthesizer.The system-exclusive (SysEx) message is just a message-shell for transporting data and commands that are not supported by the MIDI specification.Each SysEx message begins with two data bytes F0 (1111 0000) and 0iiiiiii, where iiiiiii is a manufacturer's code. Each equipment manufacturer has its own unique code and the equipment only responds to messages with the correct manufacturer's code.The SysEx message is terminated when the byte value F7 (1111 0111) is encountered.
  14. System Common Messagesprovidesome standardized features that are used for controlling the playback of songs in MIDI format and some other miscellaneous features.System-common messages are a bunch of messages that are used for purposes other than controlling MIDI voices and channels. All System-common messages have the first nibble of the first byte equal to F (i.e., 1111).
  15. System Real-Time Messages provide some MIDI features for synchronizing the internal timing clocks of connected MIDI devices and for controlling the playback of sequences or songs in MIDI format.System real-time messages are those messages that are system-wide in nature and are used controlling the sequencer in real-time. Like the System-common messages, the real-time messages are defined with the first nibble value of F (1111). The musical instrument generates these messages autonomously; all the musician has to do is play the notes (or make some other gesture). This consistent, automated abstraction of the musical gesture could be considered the core of the MIDI standard.
  16. Amongst MIDI enthusiasts, keyboards and other devices used to trigger musical sounds are called "controllers", because with most MIDI set-ups, the keyboard or other device does not make any sounds by itself. MIDI controllers need to be connected to a voice bank or sound module in order to produce musical tones or sounds; the keyboard or other device is "controlling" the voice bank or sound module by acting as a trigger. It is the human interface component of a traditional instrument redesigned as a MIDI input device.MIDI controllers are available in a range of forms.All MIDI compatible controllers, musical instruments, and MIDI-compatible software follow the same MIDIspecification, and thus interpret any given MIDI message the same way. For example, if a note is played on a MIDI controller, it will sound at the right pitch on any MIDI instrument whose MIDI In connector is connected to the controller's MIDI Out connector.
  17. Example: When a musical performance is played on a MIDI instrument (or controller) it transmits MIDI channel messages from its MIDI-Out connector.A typical MIDI channel message sequence corresponding to a key being struck and released on a keyboard is:1. The user presses the middle C key with a specific velocity (which is usually translated into the volume of the note). The instrument sends one Note-On message. 2. The user changes the pressure applied on the key while holding it down - a technique called Aftertouch. The instrument sends one or more messages. 3. The user releases the middle C key, again with the possibility of velocity of release controlling some parameters. The instrument sends one Note-Off message. Note-On, Aftertouch and Note-Off are all channel messages.MIDI is also used for a whole host of other events, but the action of pressing a note is the simplest to describe and understand.(Show this with the help of Channel messages table)Let’s take the action of the Note On Event. Three bytes are sent; Status, Note On, Velocity.Assuming, we're working on Midi Channel 1, the data would look something like this 0x90, 0x3C, 0x7F.Let’s go through the bytes one at a time.First the status byte, 0x90 if we translate this into binary we get 10010000. The upper nibble (1001) shows we have a Note On event, the lower nibble (0000) is the MIDI channel 1. MIDI devices can have 16 channels.The next byte is the note value, in this case 0x3C, which is the middle C note.The final byte is 0x7F, which is the velocity i.e. how hard the key was pressed, in this case maximum.And so on..
  18. MIDI composition and arrangement typically takes place using either MIDI sequencing/editing software on computers or using specialized hardware music workstations.MIDI data files are much smaller than recorded audio waveforms. Many computer sequencing programs allow manipulation of the musical data such that composing for an entire orchestra of sounds is possible.MIDI messages (along with timing information) can be collected and stored in a computer file system, in what is commonly called a MIDI file, or more formally, a Standard MIDI File (SMF).The SMF specification was developed and is being maintained by, the MIDI Manufacturers Association (MMA).These formats are very compact; a file as small as 10 KB can produce a full minute of music or more due to the fact that the file stores instructions on how to recreate the sound based on synthesis with a MIDI synthesizer rather than an exact waveform to be reproduced.Small MIDI file sizes have also been advantageous for applications such as mobile phone ringtones, and some video games.Another format called MIDI-Karaoke,which uses the ".kar" file extension displays lyrics synchronized with the music in "follow-the-bouncing-ball" fashion, turning any PC into a karaoke machine.
  19. A synthesizer is an electronic musical instrument that uses one or more sound generators to create waveforms which are then processed and combined in order to generate musical sounds.Early synthesizers were analog hardware based but many modern synthesizers use a combination of DSP software and hardware or else are purely software-based. Endless no. of synthesis can be achieved by algorithms that work on digital signals.MIDI synthesizers produce musical tones and percussion based on the input of MIDI software messages.Synthesizers are often controlled with a piano-style keyboard, leading such instruments to be referred to simply as "keyboards". Several other forms of controllers have been devised to resemble violins, guitars and wind-instruments.Synthesizers without controllers are often called "modules", and can be controlled using MIDI.With the development of MIDI, it was easier to integrate and synchronize synthesizers and other electronic instruments for use in musical composition.
  20. A music sequencer is an application or a device designed to record and play back musical notation.With the advent of MIDI, programmers were able to write software which could do the same.A MIDI sequencer is the electronic version of the musician in the MIDI world.A MIDI sequencer: (a) records MIDI software message sequences, (b) replays MIDI software sequences using the appropriate timing, and (c) provides some sort of editing capabilities.We will look into these features on software:During recording, the sequencer captures and plays back live MIDI performances. Performances can also be constructed slowly, note-by-note, using onscreen pencil tools that let you “draw” the notes you want.A sequencer may let you view notes in a variety of ways, from a list of MIDI events, to a piano-roll-type view, to onscreen notation. The capturing of MIDI notes is just the beginning, since a sequencer allows you to do all sorts of things to perfect your music.Some of the most commonly used sequencer tools are: Quantization- that corrects the timing of notes. Transposition- that moves notes to new musical keys. Scaling- that changes the feel of recorded musical phrases by adjusting recorded velocity values, note lengths, and more.Some sequencers can record audio in addition to MIDI, allowing you to work on all of the elements in a song at the same time.Hence, the terms "Music Sequencer" and "Digital Audio Workstation" are often used interchangeably, as modern sequencers combine both sets of features.
  21. A sampler is an electronic musical instrument similar in some respects to a synthesizer but, instead of generating sounds, it uses recordings (or “samples") of sounds that are loaded or recorded into it by the user and then played back by means of a keyboard, sequencer or other triggering device to perform or compose music.Because these samples are nowadays usually stored in digital memory the information can be quickly accessed. In general, samplers can play back any kind of recorded audio and most samplers offer editing facilities that allow the user to modify and process the audio and to apply a wide range of effects, making the sampler a powerful and versatile musical tool.
  22. The increases in computing power and memory capacity have made it possible to develop software applications that provide the same capabilities as hardware-based units.These are typically produced as plug in instruments - for example, using the VST or Virtual Studio Technology system.
  23. General MIDI, or “GM,” is a very specific set of standards that allows MIDI composers and arrangers to create music that always plays correctly on any device that supports General MIDI. GM was developed by the MMA and the Japan MIDI Standards Committee (JMSC) and first published in 1991.Why Do We Need GM? All General MIDI devices contain the same set of 128 standard sounds and drum kit sounds, stored in a specified order. Each product creates these sounds using its own unique capabilities, but the goal is to have them all sound similar enough when playing back GM data.Instrument Patch Map in GM: The sounds are grouped into "families" of eight patch numbers each. Patch numbers are in decimal, and start at 1, MIDI patch numbers start at 0.General Midi 2: In 1999, the official GM standard was updated to include more controllers, patches and SysEx messages. General MIDI 2 was introduced. It included everything in General MIDI 1, adding more sounds, standards for sound editing, and some other niceties. General MIDI 2 was last amended in February 2007.
  24. Musically speaking: You can use a MIDI instrument with which you’re comfortable to play the sounds belonging to any other MIDI device.Create rich musical textures by layering sounds from multiple MIDI devices, or assign different sounds to play in different pitch ranges.When you play a MIDI instrument, it produces data that can be captured by a MIDI “sequencer.” Sequencers aren’t just MIDI recorders, they let you fix mistakes, change the pitches of your notes, fix their timing, the way they play, the sounds they use, and more.Let us see how this is done!
  25. We are using the AVR ATMega128 micro-controller.It has 4 switches connected to pins PD6, PD7, PE6 & PE7 respectively.An LCD through PORT A, 8 LED’s connected to PORT C and is running on 16 MHz clock speed.The program is such that..
  26. Let us have a basic understanding of how the MIDI drum controller works.
  27. Non-musical applications: Non-musical applications of MIDI are possible because any device built with a standard MIDI Out connector should in theory be able to control any other device with a MIDI In port, just as long as the developers of both devices have the same understanding about the semantic meaning of all the MIDI messages.Therefore, MIDI is also used every day as a control protocol in applications other than music, including:Show control: The protocol simply transmits digital data providing information such as the type, timing and numbering of technical cues called during a multimedia or live theatre performance.Machine controlTheatre lightingConsole automation: Audio mixers can be controlled with MIDI during console automation.Special effectsSound designRecording system synchronizationAudio processor controlComputer animationComputer networkingVideo Jockeys: Some MIDI devices allow “VJs” or “Video Jockeys” - to manipulate video images onstage, creating exciting visuals.Special software on a laptop computer along with physical controls open up a world of video possibilities, letting VJs remotely select clips and control how they behave.
  28. HD-MIDI\HD Protocol:Development of a version of MIDI for new products which is fully backward compatible is now under discussion in the MMA. First announced as "HD-MIDI" in 2005 and tentatively called "HD Protocol" since 2008, this new standard would support modern high-speed transports, provide greater range and/or resolution in data values, increase the number of Channels, and support the future introduction of entirely new kinds of messages. Representatives from all sizes and types of companies are involved, from the smallest specialty show control operations to the largest musical equipment manufacturers.