Code covered by the MathWorks Limited License

Highlights from
Real-Time Audio Processor

image thumbnail

Real-Time Audio Processor


Tucker McClure (view profile)


Simplifies streaming or generating audio in real time.

%% Build MIDI Interface
% This script builds a simple MIDI input interface for Windows. It requires
% the Windows SDK and a compiler.
% Tucker McClure @ The MathWorks
% Copyright 2012 The MathWorks, Inc.

function midi_interface_builder()

% Set some paths to the Windows SDK.
sdk_path = 'C:\Program Files (x86)\Microsoft SDKs\Windows\v5.0';
include_sub = '\Include';
library_sub = '\Lib\IA64';

% Specify the Include directory for Windows and the Library directory
% containing WinMM.lib and build everything.
fprintf('Building MEX file... ');
mex(['-I' sdk_path include_sub], ...
    ['-L' sdk_path library_sub], ....
    '-lwinmm', ...

% Oh yeah.

Contact us