Presentation is loading. Please wait.

Presentation is loading. Please wait.

MIDI ISE 599 Yun-Ching Chen. Overview Musical Instrument Digital Interface Came in 1983, conceived by a consortium of synthesizer manufacturers A serial.

Similar presentations


Presentation on theme: "MIDI ISE 599 Yun-Ching Chen. Overview Musical Instrument Digital Interface Came in 1983, conceived by a consortium of synthesizer manufacturers A serial."— Presentation transcript:

1 MIDI ISE 599 Yun-Ching Chen

2 Overview Musical Instrument Digital Interface Came in 1983, conceived by a consortium of synthesizer manufacturers A serial protocol for representing digital music format A MIDI message is a packet of data that fully specifies an event

3 MIDI Messages Channel messages Channel Voice messages Channel Mode messages System messages System common messages System real-time messages System exclusive messages

4 MIDI Messages (cont.) Status ByteData BytesMessage 0x8nNOTE,VELNote Off 0x9nNOTE,VELNote On 0xAnNOTE,PRESUREKey Aftertouch 0xBnCTRL,VALUEControl Change … n=channel, 0 for channel 1, F for channel 16 Channel Voice messages:

5 Java MIDI Package MidiSystem getSequence(file), getMidiFileFormat(file) Sequence Track getTracks(), MidiEvent.get() MidiMessage getMessage(), getStatus()

6 Example F:\>java MidiTestor Happy.mid Track0 Track1 channel= 0 ; Pitch= E5 ; Duration= 94 ; channel= 0 ; Pitch= F#5 ; Duration= 160 ; channel= 0 ; Pitch= E5 ; Duration= 160 ; channel= 0 ; Pitch= A5 ; Duration= 160 ; channel= 0 ; Pitch= G#5 ; Duration= 160 ; channel= 0 ; Pitch= E5 ; Duration= 94 ; channel= 0 ; Pitch= F#5 ; Duration= 160 ; channel= 0 ; Pitch= E5 ; Duration= 160 ; channel= 0 ; Pitch= B5 ; Duration= 160 ; channel= 0 ; Pitch= A5 ; Duration= 160 ; Finish reading file Running MIDI file in Java http://www-scf.usc.edu/~yunchinc/Temp/Happy.mid

7 References Maximum MIDI – Music Application in C++, Paul Messick MuseInfo for MIDI: http://museinfo.sapp.org/doc/links/midi/ Javax.Sound.Midi http://java.sun.com/j2se/1.4.1/docs/api/javax/soun d/midi/package-summary.html


Download ppt "MIDI ISE 599 Yun-Ching Chen. Overview Musical Instrument Digital Interface Came in 1983, conceived by a consortium of synthesizer manufacturers A serial."

Similar presentations


Ads by Google