Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS...

11
Sound DirectMusic & DirectSound

Transcript of Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS...

Page 1: Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.

Sound

DirectMusic & DirectSound

Page 2: Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.

Sound Formats

Wav Midi (Musical Instrument Digital

Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments Loader for new formats

Page 3: Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.

DirectMusic vs DirectSound

DirectMusic more oriented to high level playing of arrangements and compositional effects (MIDI, DLS)

DirectSound has sound recording and low level buffer operations (full duplex capabilities)

Page 4: Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.

Playing Audio Files Initialize: create instances of the loader,

the performance, and initialize the performance

Load a File: load the file and get an interface to that interface (segment)

Play the File: download all kind of settings from the segment to the performance, and play the segment

Close Down: close all the stuf

Page 5: Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.

SoundData Flow

Page 6: Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.

SoundInput

Page 7: Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.

SoundInternal

Page 8: Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.

SoundOutput

Page 9: Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.

Elements of a DirectMusic ApplicationKey concepts and code objects of DirectMusic: Loader Segments and Segment States Performance Messages Performance Channels Downloadable Sounds Instruments and Downloading Audio paths and Buffers Audio Scripts

Page 10: Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.

SoundData Flow

Key concepts and code objects• Loader • Segments and Segment States • Performance • Messages • Performance Channels • Downloadable Sounds • Instruments and Downloading • Audio paths and Buffers • Audio Scripts

Page 11: Sound DirectMusic & DirectSound. Sound Formats Wav Midi (Musical Instrument Digital Interface) DLS (Downloadable Sounds) DirectMusic Producer Segments.

Assignments (Problems) 1,3, and 5: add before the includes of

dmusici.h and dmusicc.h: typedef unsigned long DWORD; typedef DWORD * DWORD_PTR

Assignment 2 has compilation errors that we have to solve, so do not compile yet, but browse through the code only. Look at the MMP2003 web-page tomorrow for an update on this!