Marsyas
0.6.0-alpha
|
Reads a MIDI file and synthesizes audio (needs MATLAB and the MIDI Toolbox) More...
#include <MidiFileSynthSource.h>
Inherits MarSystem.
Public Member Functions | |
MarSystem * | clone () const |
MidiFileSynthSource (std::string name) | |
MidiFileSynthSource (const MidiFileSynthSource &a) | |
virtual void | myProcess (realvec &in, realvec &out) |
Processes data. | |
~MidiFileSynthSource () |
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.
MidiFileSynthSource | ( | std::string | name | ) |
Definition at line 25 of file MidiFileSynthSource.cpp.
MidiFileSynthSource | ( | const MidiFileSynthSource & | a | ) |
Definition at line 43 of file MidiFileSynthSource.cpp.
~MidiFileSynthSource | ( | ) |
Definition at line 32 of file MidiFileSynthSource.cpp.
Implements MarSystem.
Definition at line 38 of file MidiFileSynthSource.cpp.
Processes data.
in | Input data to read. |
out | Output data to write. |
Implement this method in subclass to define specific data processing.
Implements MarSystem.
Definition at line 157 of file MidiFileSynthSource.cpp.