comparison main/MainWindow.cpp @ 694:959f01137742 tony_integration

Merge subrepos from tonioni
author Chris Cannam
date Tue, 28 Jan 2014 15:17:06 +0000
parents 7f7fba33b7de
children 44fcce228d02
comparison
equal deleted inserted replaced
693:c764dd0df6ec 694:959f01137742
2646 NoteModel *nm = dynamic_cast<NoteModel *>(model); 2646 NoteModel *nm = dynamic_cast<NoteModel *>(model);
2647 2647
2648 if (!nm) { 2648 if (!nm) {
2649 error = tr("Can't export non-note layers to MIDI"); 2649 error = tr("Can't export non-note layers to MIDI");
2650 } else { 2650 } else {
2651 MIDIFileWriter writer(path, nm); 2651 MIDIFileWriter writer(path, nm, nm->getSampleRate());
2652 writer.write(); 2652 writer.write();
2653 if (!writer.isOK()) { 2653 if (!writer.isOK()) {
2654 error = writer.getError(); 2654 error = writer.getError();
2655 } 2655 }
2656 } 2656 }