From 947077c12e13a11d6a39b931bd21f288883568cd Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Wed, 11 Feb 2009 09:54:31 +0000 Subject: [PATCH] * introduced dependency: libsmf-1.2 * extracted Interface from SMF: StandardMIDIFile * first implementation of StandardMIDIFile based on libsmf that passes basic test git-svn-id: svn://localhost/ardour2/branches/3.0@4529 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/evoral/evoral/LibSMF.hpp | 84 +++++++++++++ libs/evoral/evoral/SMF.hpp | 5 +- libs/evoral/evoral/StandardMIDIFile.hpp | 64 ++++++++++ libs/evoral/src/LibSMF.cpp | 160 ++++++++++++++++++++++++ libs/evoral/test/SMFTest.cpp | 2 +- libs/evoral/test/SMFTest.hpp | 8 +- libs/evoral/wscript | 4 +- 7 files changed, 318 insertions(+), 9 deletions(-) create mode 100644 libs/evoral/evoral/LibSMF.hpp create mode 100644 libs/evoral/evoral/StandardMIDIFile.hpp create mode 100644 libs/evoral/src/LibSMF.cpp diff --git a/libs/evoral/evoral/LibSMF.hpp b/libs/evoral/evoral/LibSMF.hpp new file mode 100644 index 0000000000..1bc50c8259 --- /dev/null +++ b/libs/evoral/evoral/LibSMF.hpp @@ -0,0 +1,84 @@ +/* This file is part of Evoral. + * Copyright(C) 2008 Dave Robillard + * Copyright(C) 2000-2008 Paul Davis + * Author: Hans Baier + * + * Evoral is free software; you can redistribute it and/or modify it under the + * terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or(at your option) any later + * version. + * + * Evoral is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef EVORAL_LIB_SMF_HPP +#define EVORAL_LIB_SMF_HPP + +#include "evoral/StandardMIDIFile.hpp" + +#include +#include + +namespace Evoral { + +template class Event; +template class EventRingBuffer; + +/** Standard Midi File (Type 0) + */ +template +class LibSMF : public StandardMIDIFile