MIDI One choice for adding sounds to multimedia applications is the use of digital audio soundfiles This can become very memory intensive, however, for.

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

Tamara Berg Advanced Multimedia
Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
Musical Instrument Digital Interface. MIDI Basics First introduced in 1983.
Int 2 Multimedia Revision. Digitised Sound Analogue sound recorded from person, or real instruments.
I Power Higher Computing Multimedia technology Audio.
SWE 423: Multimedia Systems Chapter 3: Audio Technology (2)
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.
1 Digital Audio Storage Formats. 2 Formats  There are many different formats for storing and communicating digital audio:  CD audio  Wav  Aiff  Au.
Musical Instrument Digital Interface. MIDI Musical Instrument Digital Interface Enables electronic musical instruments, such as keyboard controllers,
Music Processing Roger B. Dannenberg. Overview  Music Representation  MIDI and Synthesizers  Synthesis Techniques  Music Understanding.
Spring 2002EECS150 - Lec13-proj Page 1 EECS150 - Digital Design Lecture 13 - Final Project Description March 7, 2002 John Wawrzynek.
1 PC Audio 2 Sound Card  An expansion board that enables a computer to receive, manipulate and output sounds.
BPC: Art and Computation – Summer 2007 Digital Media – Audio, part 2 Robert Putnam
UFCEXR-20-1Multimedia Sound Production Basic Components for Sound Production.
Music Processing Roger B. Dannenberg. Overview  Music Representation  MIDI and Synthesizers  Synthesis Techniques  Music Understanding.
EE2F2 - Music Technology 5. MIDI. A Musical Interface Early synthesisers were often modular designs Sounds were built up by patching together several.
MIDI. What is MIDI? MIDI stands for Musical Instrument Digital Interface MIDI stands for Musical Instrument Digital Interface Some Clarification: MIDI.
IT-101 Section 001 Lecture #15 Introduction to Information Technology.
Chapter 14 Recording and Editing Sound. Getting Started FAQs: − How does audio capability enhance my PC? − How does your PC record, store, and play digital.
Sound Chapter Types of Sound Waveforms MIDI Sound is related to many things in computers but only Wav and MIDI exist in PCs.
Digital Audio Multimedia Systems (Module 1 Lesson 1)
6. Sound/Audio. 2   How computers process sound   How computers synthesize sound   The differences between the two major kinds of audio, namely.
2 Outline Digital music The power of FPGA The “DigitalSynth” project –Hardware –Software Conclusion Demo.
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.
Thursday 27 th September. Periods Music Technology A2.
Digital Sound and Video Chapter 10, Exploring the Digital Domain.
1 1 Multimedia. 2 What is SOUND? Sound comprises the spoken word, voices, music and even noise. It is a complex relationship involving: a vibrating object.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
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.
COMP Representing Sound in a ComputerSound Course book - pages
A Breath in an Electronic World: Experiments in Musical Expression using a Midi Wind Controller Matthew Ahrens Mentor: Dr. James Bohn Bridgewater State.
CHAPTER SEVEN SOUND. CHAPTER HIGHLIGHTS Nature of sound – Sine waves, amplitude, frequency Traditional sound reproduction Digital sound – Sampled – Synthesized.
Multimedia Elements: Sound, Animation, and Video.
Overview of Multimedia A multimedia presentation might contain: –Text –Animation –Digital Sound Effects –Voices –Video Clips –Photographic Stills –Music.
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
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 9 This presentation © 2004, MacAvon Media Productions Sound.
Introduction to SOUND.
Sound element Week - 11.
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.
Sound Representation Digitizing Sound Sound waves through Air Different Voltages Voltage converted to numbers.
Virtual Instruments and Sequencing. Proses Pembuatan Lagu/Musik TrackingMixingMastering.
By Cheyenne Morgan Unit 1- Set up and operate a DAW.
Theme: Multimedia Sound ProductionUFCFY Multimedia Sound Production.
CSCI-100 Introduction to Computing Hardware Part II.
Unit 01 - Set up and operate a digital audio workstation.
Final Year Project Eoin Culhane. MIDI Guitar Guitar with 6 outputs 1 output for each string Each individual string output will be converted to MIDI.
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.
MIDI Musical Instrument Digital Interface A digital communication protocol allowing devices to send and/or respond to instructions.
Chapter 15 Recording and Editing Sound
EE2F2: Music Technology - Revision
Introduction to Multimedia
CSC 320 – Music Instrument Digital Interface (MIDI) and Digital Audio, Spring 2017 April 2017 Dr. Dale Parson.
Multimedia: making it Work
The MIDI Standard A.
Presentation transcript:

MIDI One choice for adding sounds to multimedia applications is the use of digital audio soundfiles This can become very memory intensive, however, for large soundfiles For example, a stereo 16 bit/sample 22 kHz soundfile requires > 5 mbytes per minute of audio May be too much (e.g. for ringtones on a cellphone) As an alternative to the use of soundfiles, MIDI files have been considered

MIDI MIDI (Musical Instrument Digital Interface) is a standardized control language and hardware specification allows suitably equipped electronic musical instruments and devices to communicate real-time and nonreal-time performance and control data MIDI data is communicated digitally through a production system as a string of MIDI messages Each message describes an event which occurs during a musical performance

MIDI The messages are transformed into the sound described by the message/event by a synthesizer. MIDI can be created using a MIDI-editing program or they can be recorded from a performance on a MIDI-capable device (a MIDI controller) and subsequently edited using the same program. MIDI data can easily be converted into sample data, but the reverse is not true.

MIDI MIDI messages are transmitted (in a serial fashion) through a single MIDI line at 31.25 K bits/second MIDI communication is unidirectional No error detection/correction (so max cable length of 50 meters) Usually, MIDI instruments and devices are linked together in a daisy-chain fashion The following slide shows an example

MIDI Ports MIDI devices may have up to 3 ports MIDI IN port to receive data (to be played back/synthesized by the device, for example) MIDI OUT port for MIDI controllers which generate their own MIDI data MIDI thru to pass the input data to the next MIDI device in the daisy chain arrangement

MIDI Devices MIDI controllers generate performance data in MIDI format MIDI synthesizers generate audio output based on MIDI data A single keyboard might act as both MIDI controller and MIDI synthesizer A synthesizer can be some hardware (instrument) or a program (soft synth) MIDI sequencers can be used to receive, store and edit MIDI data Either hardware device or an application program

MIDI Sequencers The sequencer software will typically run on a Digital Audio Workstation (DAW) Originally, special purpose microprocessor-based hardware for capturing, editing, creating music Today, a computer running special-purpose software with audio hardware interfaces Example sequencing software – Cubase Examples of hardware-based sequencers are MIDI keyboards and drum machines These also may contain a synthesizer component

MIDI Sequencers MIDI data can be used to produce musical scores corresponding to the data, so sequencing software is often tightly coupled to musical notation software

Musical Acoustics and Notation Musical sounds are characterized by pitch (frequency), timbre, loudness A note also carries start and duration info Two notes which differ in pitch by 2^n, sound alike to the human ear (except for the higher pitch) An octave is the interval between one musical pitch and another with half or double its frequency The division into notes of an octave differs from culture to culture In Western culture, 440 Hz is a reference point and is called note A The octave between one note A and another (440-880 Hz, e.g.) is divided into 12 notes

Musical Acoustics and Notation On a keyboard, 8 white notes and 4 black notes Musical notation is written on a musical staff, with a key signature The timbre of a musical sound is a function of its overtones The perceived loudness of a musical sound is a function of the air pressure amplitude The amplitude envelope covers the period of a single musical note

Musical Acoustics and Notation

Musical Acoustics and Notation

MIDI Messages MIDI messages are bytes that are interpreted by the MIDI devices The messages are used to convey a series of instructions to one or all of the MIDI devices within the system. The messages can be divided into two types: Channel messages are messages assigned to a specific MIDI channel System messages address all devices in a system, without regard to channel assignment Messages are transmitted in 10-bit bytes Each begins with start bit of 0 and ends with a stop bit of 1 The start and stop bits are “stripped out” at the serial port, so we are left with 8-bit bytes of data

MIDI Messages The following is a typical 3 byte MIDI Note On message: (10010101) (01000000) (01011010) This message is interpreted as follows. The first byte is the status byte while the second and third are data bytes The most significant bit of the byte determines which type of byte it is The next three bits of the status byte code the Note On message The four least significant bits give the channel to which this message is directed In the case, channel #5. (Note that we can have up to 16 channels addressed through a single MIDI cable)

MIDI Channels

MIDI Channel Messages Whenever a MIDI device is instructed to respond to a specific channel number, it will ignore any message not directed to that channel On the other hand, if a message is transmitted to that channel, the device will respond to the message (within the device’s capability limits). The 7 bits (not including the MSB) of the first data byte code the note # that should be turned on - here, it is 64 The 7 bits of the second data byte indicate the attack velocity (volume level of the note) - here, it is 90

MIDI Channel Voice Messages Channel voice messages are used to transmit real-time performance data throughout a connected MIDI system There are seven channel voice messages: Note On Note Off Polyphonic Key Pressure Channel Pressure Program Change Control Change Pitch Bend Change

MIDI Channel Voice Messages A Note On message indicates the beginnning of a MIDI note The message consists of three bytes of information: MIDI channel number; MIDI note number; Attack velocity value In general, MIDI note 60 is assigned to middle C key, and notes 21-108 correspond to the 88 keys of an extended keyboard controller The final byte indicates the velocity at which the key was pressed Higher velocities lead to louder notes Not all instruments interpret all attack velocities, and some do not respond dynamically at all

MIDI Channel Voice Messages A Note Off message indicates the end of a MIDI note If the instrument being played has a release (or decay) phase, it will begin that phase when the message is received The release velocity byte indicates the speed at which the key was released Few instruments generate or respond to release velocity

MIDI Channel Voice Messages Polyphonic Key Pressure messages are transmitted by instruments that are capable of playing more than one sound at a time (e.g. a chord on a keyboard instrument) The message indicates a pressure message for each key that is depressed Pressure values can commonly be assigned to such parameters as vibrato, loudness, and pitch Channel Pressure messages are commonly transmitted by polyphonic instruments that will only respond to a single overall pressure applied to their controllers, regardless of the number of keys being played at any one time

MIDI Channel Voice Messages The Program Change message changes the program or preset number that is active in a device or instrument Up to 128 presets can be selected by using this message This can be used, for example, to switch between the different sounds of a synthesizer or to change the rhythm patterns of a drum machine

MIDI Channel Voice Messages The Control Change message transmits information that relates to real-time control over the performance parameters of a MIDI instrument Control change messages correspond to changes in controllers such as foot pedals, relative balance of a stereo sound field, etc. Pitch Bend Change messages are transmitted by an instrument whenever its pitch bend wheel is moved either in the positive (raise pitch) or negative (lower pitch) position from its central (no pitch bend) point

Pitch and Mod. Wheels

MIDI Channel Mode Messages Controller numbers 121-127 are reserved for Channel Mode messages. These include: Reset all controllers Local control All Notes Off MIDI Mode messages

General MIDI The basic instrument sounds that are reproduced by almost any electronic music setup will invariably change from one setup to the next This lack of conformity has brought about a single set of standardized MIDI patch settings that have come to be known as General MIDI (1991) This standardized series of sound settings has been defined so that common and popular instrument sounds are mapped to various program change numbers

General MIDI Other standards followed General MIDI Level 2 (GM2) released in 1999 increases polyphony to 32 voices, standardizes controller numbers and system messages, etc. while maintaining backwards compatibility with GM GM2 also incorporates MIDI Tuning Standard (MTS) from 1992 which allows for alternate (non-Western) tunings to be specified MIDI Time Code (MTC) embeds SMPTE timecode timing information in a sequence of MIDI messages

General MIDI Program # Instrument Group 1-8 Piano 9-16 Chromatic Percussion 17-24 Organ 25-32 Guitar 33-40 Bass 41-48 Strings 49-56 Ensemble 57-64 Brass 65-72 Reed

General MIDI Program # Instrument Group 73-80 Pipe 81-88 Synth Lead 89-96 Synth Pad 97-104 Synth Effects 105-112 Ethnic 113-120 Percussive 121-128 Sound Effects

Playback of MIDI Sampled sounds are played back by converting the samples to an analog voltage which can be used to drive speakers Done in CD players, MP3 players and sound cards

Playback of MIDI For MIDI files, the sound must be built up or synthesized Two methods for synthesizing sounds are frequency modulation (FM) synthesis and wavetable synthesis FM synthesis modulates sinusoidal frequencies An amplitude envelope function is used Fairly inexpensive Wavetable synthesis makes use of stored sound samples of real instruments More realistic, but more expensive due to the need for memory to store the samples

Alternative MIDI Uses Besides being used for musical performance, MIDI messages can also be used for non-musical apps, as long as sender and receiver agree on the meaning of MIDI messages Some of the alternative uses of MIDI include (note that timing is important in each) Show control Theatre lighting Special effects Etc.

MIDI Future Alternative transportation mechanisms for MIDI are being explored MIDI on ethernet MIDI over RTP/IP MIDI over wireless HD Protocol under discussion allows Higher speed transport Device discovery and enumeration Increased numbers of channels and controllers New kinds of events Etc.