MIDI Musical Instrument Digital Interface A digital communication protocol allowing devices to send and/or respond to instructions.

Slides:



Advertisements
Similar presentations
QS6 Basics. Type : Sample playback synthesizer keyboard Keys: 61 velocity and aftertouch sensitive, synth action. Polyphony : 64 voices MIDI Channels.
Advertisements

MUSC1010 – WEEK 4 MIDI. MIDI (Musical Instrument Digital Interface) MIDI is associated with cheap and nasty sounds due to the fact that most computer.
Musical Instrument Digital Interface. MIDI Basics First introduced in 1983.
MIDI. Musical Instrument Digital Interface Specification for physically connecting different devices, and for communicating between them. Designed for.
EE2F2: Music Technology - Revision Two exam questions Music Recording Technology Mixing & multi-track recording Effects MIDI & Sequencers Virtual Studio.
Copyright © 2011 by Denny Lin1 Simple Synthesizer Part 4 Based on Floss Manuals (Pure Data) “Building a Simple Synthesizer” By Derek Holzer Slides by Denny.
Musical Instrument Digital Interface. MIDI Musical Instrument Digital Interface Enables electronic musical instruments, such as keyboard controllers,
EET 450 Chapter 18 – Audio. Analog Audio Sound is analog Consists of air pressure that has a variety of characteristics  Frequencies  Amplitude (loudness)
EE2F2 - Music Technology 5. MIDI. A Musical Interface Early synthesisers were often modular designs Sounds were built up by patching together several.
Digital Audio Multimedia Systems (Module 1 Lesson 1)
MIDI One choice for adding sounds to multimedia applications is the use of digital audio soundfiles This can become very memory intensive, however, for.
M I D I Musical Instrument Digital Interface The MIDI protocol — a “language” that lets synthesizers, computers and other devices talk to each other.
Midi files Here we look at another way of dealing with sound on a computer the use of Midi files. The the Midi file differs from the “wav” file, because.
MIDI. A protocol that enables computers, synthesizers, keyboards, and other musical devices to communicate with each other. Instead of storing actual.
Multimedia Technology Digital Sound Krich Sintanakul Multimedia and Hypermedia Department of Computer Education KMITNB.
MIDI and YOU Orchestra in a Box. What is MIDI?  Musical Instrument Digital Interface  MIDI is a protocol - a standard by which two electronic instruments.
Topics Introduction Hardware and Software How Computers Store Data
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
Multimedia Technology and Applications Chapter 2. Digital Audio
Chapter 15 Recording and Editing Sound. 2Practical PC 5 th Edition Chapter 15 Getting Started In this Chapter, you will learn: − How sound capability.
CMSCDHN1114/CMSCD1011 Introduction to Computer Audio
Storing and Organizing Data. Why Do I Need to Understand How Data Is Represented? In order to install, program,maintain, and troubleshoot today’s PLCs,
Digital Audio IV MIDI Overview. Sending MIDI Information I. Serial Transmission A. Single cable to move data B. Slower than parallel, but is less expensive.
Audio / Sound INTRODUCTION TO MULTIMEDIA SYSTEMS Lect. No 3: AUDIO TECHNOLOGY.
MIDI Musical Instrument Digital Interface. MIDI A data communications protocol that describes a means for music systems and related equipment to exchange.
DATA AND FILE FORMATS. RTF TIFF MIDI JPEG DIB MPEG
Theme: Multimedia Sound ProductionUFCFY Multimedia Sound Production.
MIDI. MIDI, which means: Musical Instrument Digital Interface, is a digital communications protocol. In August of 1983, music manufacturers agreed on.
27656 (v1) Demonstrate and apply introductory knowledge of music technology equipment and techniques MUSIC Level 1Credits 4.
MIDI Musical Instrument Digital Interface Musical sound can be generated, unlike other types of sounds. The Musical Instrument Digital Interface standard.
Understanding Midi Audio Processing Describe the Midi Audio Processing.
XP Practical PC, 3e Chapter 14 1 Recording and Editing Sound.
By Kyle Tatum.  MIDI (or Musical Instrumental Digital Interface) is an industry-standard protocol, first defined in 1982 by Gordon Hall, that enables.
Launchpad with MIDI TAHA SHASHTARI MAHMOUD AL-SHAKA’A.
Lesson 1 PLC BASICS. PLC Definition  Programmable Logic Controllers are industrial computers that control machine and other applications.  PLC have.
Computer Basics.
Chapter 15 Recording and Editing Sound
Topic 2: Hardware and Software
Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir. A.C. Verschueren Eindhoven University of Technology Section of Digital.
Lucas Dias and Fabio Mantelli
Chapter 13: I/O Systems Modified by Dr. Neerja Mhaskar for CS 3SH3.
Chapter Objectives In this chapter, you will learn:
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Topics Introduction Hardware and Software How Computers Store Data
Voice Manipulator Department of Electrical & Computer Engineering
Module 4 Remote Login.
EE2F2: Music Technology - Revision
Creating Simple Music By Keith Lynn
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Laser Harp Team: Peter Crinklaw Qiushi Jiang Edwin Rodriguez.
IRQ, DMA and I/O Ports - Introduction -
CSC 320 – Music Instrument Digital Interface (MIDI) and Digital Audio, Spring 2017 April 2017 Dr. Dale Parson.
Multimedia: making it Work
Programmable Logic Controllers (PLCs) An Overview.
Interfacing Memory Interfacing.
Asynchronous Serial Communications
Parallel communication interface 8255
The MIDI Standard A.
Topics Introduction Hardware and Software How Computers Store Data
Data Representation Conversion 05/12/2018.
Introducing the PIC Mid-Range Family and the 16F84A
Training Module Introduction to the TB9100/P25 CG/P25 TAG Customer Service Software (CSS) Describes Release 3.95 for Trunked TB9100 and P25 TAG Release.
Chapter 2: Operating-System Structures
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
Chapter 1 Introduction to Networking
Chapter 2: Operating-System Structures
Digital Audio Application of Digital Audio - Selected Examples
Chapter 9 Audio.
♪ Embedded System Design: Synthesizing Music Using Programmable Logic
William Stallings Computer Organization and Architecture
Presentation transcript:

MIDI Musical Instrument Digital Interface A digital communication protocol allowing devices to send and/or respond to instructions

Function of MIDI n The MIDI protocol allows devices to exchange various types of instructions n MIDI data is not an audio signal n As a comparison: – a tape or CD contains a description of an audio signal – a printed page of music contains instructions that a (human) instrumentalist is trained to carry out – a MIDI file contains instructions that a (computer) instrumentalist is trained to carry out

Function of MIDI n Thus, a MIDI file is small and easily transmitted n It contains instructions only, leaving the creation of the actual audio signal to the receiving device n Instruction messages are transmitted in the form of binary numbers n Binary numbers may be transmitted by alternating voltage between set high and low levels – high = 1 – low = 0

Connecting MIDI Instruments n Typically, a MIDI instrument has three MIDI ports – IN, OUT and THRU n In a simple configuration, one main instrument will act as the master to a number of slave instruments.

Connecting MIDI Instruments n The sound of the master may be enhanced by doubling its sound with a slave instrument that is set to play a different type of sound. n This is accomplished by connecting the MIDI OUT Of the master to the MIDI IN of the slave. master slave

Connecting MIDI Instruments n To enhance the sound still further, more slave devices may be added by “daisy chaining” more instruments together via the MIDI THRU port. n The MIDI THRU port simply passes on what comes to the instrument via the IN port. master slave 1slave 2slave n...

Connecting MIDI Instruments n In some situations, daisy chains can lead to delays at the end of the chain. n A tidier configuration is to use a MIDI Thru Box master

Connecting MIDI Instruments n To play an arrangement, a sequencer can send MIDI to a group of instruments. sequencer n MIDI has 16 channels n Each instrument can be set to play a different sound and base channel, with each part corresponding to a different channel. Channel 1Channel 2Channel 16...

Configuring MIDI Instruments n MIDI came into being at the same time as the personal computer. Soon, programmers began writing MIDI software. A MIDI interface translates computer code to MIDI code

MIDI Software n A software sequencer could have more features than a dedicated hardware sequencer, and have more memory. n Editor/Librarian software could allow complex synthesizer patches to be created more intuitively. – Patches could be arranged and stored in banks – Groups of banks could be stored in a computer and transferred to the instrument n Notation software could translate MIDI information into notated music, as well as transpose, create parts, allow easy creation of alternate arrangements, etc.

Configuring MIDI Instruments n The most flexible configuration makes use of a MIDI patchbay MIDI patchbay With successive IN/OUT port pairs, each device connected to the patchbay can send and receive information Tone modules are synthesizers without keyboards A master controller keyboard produces no sound, but only sends MIDI information Many devices can play on more than one MIDI channel A patchbay allows a software synthesizer to address both port and channel number Thus, the number of available channels becomes * 16

Computer as Sound Generator n It is also possible to use the computer as a sound generating instrument n A MIDI interface is often combined with a sound card that has banks of wavetable sounds n Apple’s QuickTime, a free download, comes bundled with a set of instrument sounds, which are used by the computer to play MIDI files: n The QuickTime instruments also function as an internet browser plug-in, allowing web pages to play MIDI files on a computer that has the plug-in installed. J.S. Bach, Trio Sonata BWV.525

The MIDI Language n MIDI messages fall into two main categories: – Channel (pertaining to information on a particular channel) n Voice n Mode – System (pertaining to the system as a whole) n Real time n Common n System Exclusive (SysEx)

Channel Voice Messages n MIDI is transmitted in 10-bit bytes start stop n The first and last bits are start and stop bits, used to identify the beginnings and ends of bytes MIDI n The actual MIDI information is in the middle eight bits 1 0

Channel Voice Messages n There are two types of MIDI Channel Voice bytes: status bytes and data bytes n A status byte determines the type of message and the channel (what? and where?) – The MSB of a status byte is 1: 1nnnnnnn n A data byte gives a value (how much?) – The MSB of a data byte is 0: 0nnnnnnn – With seven bits following the MSB, a data byte’s range of expressible values is 0-127

Channel Voice Messages n A Channel Voice message consists of one status byte and at least one data byte n The status byte is divided into nibbles: 1nnn nnnn message type channel no. (0-15) n With three bits to define message types, there are eight possible types of messages. Seven are implemented.

Channel Voice Messages 1000nnnn 0nnnnnnn Note Off status note number velocity two data bytes n Velocity: how quickly a note is released – A higher number is a quicker release, corresponding to a note fading quickly – A lower number is a slower release, corresponding to a note fading slowly Middle C = MIDI note number 60

Channel Voice Messages 1001nnnn 0nnnnnnn Note On status note number velocity two data bytes n Velocity: how quickly a note is depressed – A higher number results in a louder tone – A velocity value of 0 is the same as a Note Off.

Channel Voice Messages 1010nnnn 0nnnnnnn Polyphonic Key Pressure (Poly Aftertouch) status note number pressure two data bytes n Pressure applied to the keys is mapped to some modulation parameter (within the particular instrument) n Thus, each key can generate its own degree of modulation n This is a feature found mainly in higher-end instruments (separate sensors must be installed for each key)

Channel Voice Messages 1101nnnn 0nnnnnnn Channel Key Pressure (Channel Aftertouch) status pressure one data byte n “Poor person’s” aftertouch – less costly to implement, and thus found on more instruments than poly aftertouch n One pressure value is applied to all notes on a given channel n The value is read from the key that is being pressed hardest

Channel Voice Messages 1100nnnn 0nnnnnnn Program Change status program number one data byte n Change to a specified patch number on an instrument n With one data byte, up to 128 patch numbers may be specified n A separate message type (that we will see shortly) can allow specification of more than 128 patches

Channel Voice Messages 1110nnnn 0nnnnnnn Pitch Bend status pitch bend value, LSB two data bytes n Pitch bend has 14 bits of resolution, a value range of 0 to 16,383. n The range of pitch shift is programmable within an instrument, typically from one semitone to an octave above and below the note being bent. n 64 values within the range of a semitone would be acceptable, but within the range of an octave there would be audible discontinuities (“zipper noise”). Hence, two data bytes for better resolution. n Pitch bend is a special class of controller (the next message type). It is its own message type so that the two data bytes may be combined into one value. pitch bend value, MSB

Channel Voice Messages 1011nnnn 0nnnnnnn Control change status Controller number two data bytes Controller value Controllers modify the sound of a sounding note The controller number specifies a stream of information. Controller information is commonly described either in terms of what type of device is producing the stream (pedal, wheel, slider, etc.) or what type of sound parameter is being controlled (volume, tremolo, pan position, etc.) The first data byte defines the control stream being addressed, the second data byte determines its value (or position).

Channel Voice Messages Control change The implementation of controller messages was meant to be open-ended, to allow the creation of new types of modulation. Many controller numbers remain undefined. Controller numbers are reserved for another MIDI message type (our next topic), leaving 120 definable controllers. The sound parameter affected by a physical controller may vary from instrument to instrument, or may be mappable within a particular instrument.

Channel Voice Messages Control change Controllers are typically ON/OFF controllers. Value of 0 = OFF; Value of 127 = ON ControllerNumber Sostenuto (damper) pedal66 Soft pedal67

Channel Voice Messages Control change Sometimes more resolution than is needed.

Channel Voice Messages Control change Another example addresses the problem of instruments that have more than 128 patches. Such an instrument will have a number of banks, with each bank containing 128 patches. Controller 0 typically defines bank number. A bank select message (controller 0) followed by a program change message allows selection of this many patches: * 128