Marsyas  0.5.0-beta1
Public Member Functions
MidiFileSynthSource Class Reference

Reads a MIDI file and synthesizes audio (needs MATLAB and the MIDI Toolbox) More...

#include <MidiFileSynthSource.h>

Inherits MarSystem.

Public Member Functions

MarSystemclone () const
 MidiFileSynthSource (std::string name)
 MidiFileSynthSource (const MidiFileSynthSource &a)
virtual void myProcess (realvec &in, realvec &out)
 Processes data.
 ~MidiFileSynthSource ()

Detailed Description

Reads a MIDI file and synthesizes audio (needs MATLAB and the MIDI Toolbox)

MidiFileSynthSource makes use of the MIDI Toolbox for MATLAB (see http://www.jyu.fi/hum/laitokset/musiikki/en/research/coe/materials/miditoolbox/ ) using the MATLABengine. It takes a midi file and synthesizes the corresponding audio. Both the mixed audio and each MIDI channel audio is output (the mixed audio is the first observation, while the following observations have the audio of each MIDI track, individually (this may be usefull for ground truth purposes). For each output audio frame is also returned the number of playing MIDI notes (computed from the midi data).

Controls:

Definition at line 71 of file MidiFileSynthSource.h.


Constructor & Destructor Documentation

MidiFileSynthSource ( std::string  name)

Definition at line 25 of file MidiFileSynthSource.cpp.

Definition at line 43 of file MidiFileSynthSource.cpp.

Definition at line 32 of file MidiFileSynthSource.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 38 of file MidiFileSynthSource.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Processes data.

Parameters:
inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Definition at line 157 of file MidiFileSynthSource.cpp.


The documentation for this class was generated from the following files: