Mercurial > hg > svcore
comparison data/fileio/MIDIFileWriter.cpp @ 980:6e6da0636e5e tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 16:36:21 +0100 |
parents | dad0fc8ff405 |
children | 0d3d1ec7dfde |
comparison
equal
deleted
inserted
replaced
954:35b05cac32d0 | 980:6e6da0636e5e |
---|---|
39 MIDIFileWriter::MIDIFileWriter(QString path, const NoteExportable *exportable, | 39 MIDIFileWriter::MIDIFileWriter(QString path, const NoteExportable *exportable, |
40 int sampleRate, float tempo) : | 40 int sampleRate, float tempo) : |
41 m_path(path), | 41 m_path(path), |
42 m_exportable(exportable), | 42 m_exportable(exportable), |
43 m_sampleRate(sampleRate), | 43 m_sampleRate(sampleRate), |
44 m_tempo(tempo) | 44 m_tempo(tempo), |
45 m_midiFile(0) | |
45 { | 46 { |
46 if (!convert()) { | 47 if (!convert()) { |
47 m_error = "Conversion from model to internal MIDI format failed"; | 48 m_error = "Conversion from model to internal MIDI format failed"; |
48 } | 49 } |
49 } | 50 } |