Creating Simple Music By Keith Lynn

Slides:



Advertisements
Similar presentations
Chapter 18 Building the user interface. This chapter discusses n Javas graphical user interface. n Swing: an enhancement of a library called the Abstract.
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.
Features of MP3, MIDI, wave, audio and file types including suffixes. By Georgina Honeysett PGCE ICT.
Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
CNIT 132 – Week 9 Multimedia. Working with Multimedia Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
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.
Introduction to Objective-C and Xcode (Part 1) FA 175 Intro to Mobile App Development.
1 Digital Audio Storage Formats. 2 Formats  There are many different formats for storing and communicating digital audio:  CD audio  Wav  Aiff  Au.
Music Technology & Associated Devices B.Sc. (Hons) Multimedia ComputingMedia Technologies.
BY CHRIS ANDERSON Creating a MIDI Generator Program.
ISE 582 Making Music (with MIDI) November 6, 2003 Arpi Mardirossian.
MIDI ISE 599 Yun-Ching Chen. Overview Musical Instrument Digital Interface Came in 1983, conceived by a consortium of synthesizer manufacturers A serial.
Andrew Welds Music Technology BTEC. Examples MIDI-Karaoke (which uses the ".kar" file extension) files are an "unofficial" extension of MIDI files, used.
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.
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.
Home entertainment. The hardware, software and techniques used for sound MP3 players: play music files stored digitally in MP3 file format are small and.
Field Trip #26 Create a Find a Word Puzzle in Java By Keith Lynn.
Signal Digitization Analog vs Digital Signals An Analog Signal A Digital Signal What type of signal do we encounter in nature?
XP Tutorial 8New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and.
Creating Web Documents alt attribute Good and bad uses of ‘multimedia’ Sound files Homework: Discuss with me AND post announcement of Project II. Forms.
CMSCDHN1114/CMSCD1011 Introduction to Computer Audio
Unit 1 – setup and operate a digital audio workstation.
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.
MIDI Musical Instrument Digital Interface. MIDI A data communications protocol that describes a means for music systems and related equipment to exchange.
Field Trip #32 Digital Alarm Clock By Keith Lynn.
Virtual Instruments and Sequencing. Proses Pembuatan Lagu/Musik TrackingMixingMastering.
Multimedia MCI Control. MCI control enables a program to interact with any multimedia device connected to the computer that supports Media Control Interface.
Field Trip #28 Securing a VNC Connection with Java By Keith Lynn.
Field Trip #25 Creating a Client/Server By Keith Lynn.
Final Projects Some simple ideas. Composition (1) program that "learns" some aspect of musical composition.
Field Trip #23 Hangman By Keith Lynn. JApplet A JApplet is a top-level container An applet is a small Java program that is executed by another program.
DIGITAL LANGUAGE
1 Sound in Java Summary: r Sound API Basics r MIDI JavaSound - Part of the UIT User Interface Toolkit.
Object Serialization. Sequential-access Text Files Sequential-access files store records In order by the record-key field Java imposes no structure on.
File Systems cs550 Operating Systems David Monismith.
Field Trip #27 Using Java to Download Images and Sounds By Keith Lynn.
MULTIMEDIA Multimedia is the field concerned with the computer- controlled integration of text, graphics, drawings, still and moving images (Video), animation,
Guerino Mazzola (Fall 2015 © ): Honors Seminar IV.3 Communication IV.3.1 (Fr Nov 06) MIDI.
Unit 01 - Set up and operate a digital audio workstation.
Field Trip #34 Creating and Reading Zip Files in Java By Keith Lynn.
MIDI. MIDI, which means: Musical Instrument Digital Interface, is a digital communications protocol. In August of 1983, music manufacturers agreed on.
Field Trip #30 A Memory Game By Keith Lynn. View A View is the basic building block of an app Some Views hold other views An example of this is GridLayout.
Sequencing Systems & Techniques MIDI Setup. Learning Outcomes Define 2 or more examples of MIDI CC data and explain their purpose. Setup a computer and.
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.
MIDI Musical Instrument Digital Interface A digital communication protocol allowing devices to send and/or respond to instructions.
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.
Sound and music.
Chapter 15 Recording and Editing Sound
Invitation to Computer Science 6th Edition
Using Multimedia on the Web
Lucas Dias and Fabio Mantelli
European Robotic LABoratory
European Robotic LABoratory
Façade Pattern:.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
IV.3 Communication IV.3.1 (We Nov 01) MIDI.
Creation of an Android App By Keith Lynn
European Robotic LABoratory
Laser Harp Team: Peter Crinklaw Qiushi Jiang Edwin Rodriguez.
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
CSC 320 – Music Instrument Digital Interface (MIDI) and Digital Audio, Spring 2017 April 2017 Dr. Dale Parson.
Multimedia: making it Work
SOUND.
The MIDI Standard A.
Presentation transcript:

Creating Simple Music By Keith Lynn Field Trip #20 Creating Simple Music By Keith Lynn

Midi Midi stands for Musical Instrument Digital Interface It is an interface that allows a variety of instruments to connect and communicate with each other A single midi link can carry up to 16 channels of information We can connect a channel to a different device

Midi cont'd A Midi Event message carries information about Pitch Notation Velocity Volume etc

Instrument An instrument is represented by an integer between 0 and 255 You can find a list of instruments at http://www.ccarh.org/courses/253/handout/gmii nstruments

Creating the Midi In order to create the midi, we will create a Sequencer After we create the Sequencer, we open it We create a Sequence The Sequence is made of Tracks The Tracks are made up of MidiEvents The MidiEvent is composted of a MidiMessage and a tick. The tick indicates the time in the sequence where the event fires

MidiMessage In this app, we will create a simple message A ShortMessage contains two bytes of information To create the ShortMessage, we specify four things A Midi command A channel The first data byte The second data byte

Midi Commands The ShortMessage class contains constants that represent Midi commands Some of the most common are Note on – Start Playing Note off – Stop Playing Program change – Specify what instrument is on a channel

Playing Notes The third parameter to create the ShortMessage is a note Middle C is 60 The fourth parameter is the velocity Typically we can use 100

Playing the sound In order to play the Midi sound, we create the ShortMessages and create a MidiEvent The MidiEvent specifies the ShortMessage and the tick The tick is the time when the event fires

Creating the Midi Player In our app, we allow the user to specify through Java components, the values to create a ShortMessage These ShortMessages appear in a Jpanel When we are ready to play, we click Play and each of the MidiMessages are put into a track, and the track put in a sequence, and the sequence put in the sequencer

Storing MidiEvents In our app, we create a Jpanel called a MidiMessagePanel This class is declared to be Serialiazable This means that instances of the class can be written to a file Later we can read them back in In order to write the objects, we use an ObjectOutputStream, and in order to read the objects, we use an ObjectInputStream