2 Copyright (C) 2014 Waves Audio Ltd.
\r
4 This program is free software; you can redistribute it and/or modify
\r
5 it under the terms of the GNU General Public License as published by
\r
6 the Free Software Foundation; either version 2 of the License, or
\r
7 (at your option) any later version.
\r
9 This program is distributed in the hope that it will be useful,
\r
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
12 GNU General Public License for more details.
\r
14 You should have received a copy of the GNU General Public License
\r
15 along with this program; if not, write to the Free Software
\r
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
\r
20 #include "waves_midi_buffer.h"
\r
21 #include "waves_midi_event.h"
\r
23 using namespace ARDOUR;
\r
25 WavesMidiBuffer::WavesMidiBuffer (std::string name)
\r
26 : std::vector<WavesMidiEvent*> ()
\r
31 WavesMidiBuffer::~WavesMidiBuffer ()
\r
36 void WavesMidiBuffer::clear ()
\r
38 for (WavesMidiBufferIterator it = begin (); it != end (); ++it)
\r
41 std::vector<WavesMidiEvent*>::clear ();
\r
44 WavesMidiBuffer& WavesMidiBuffer::operator += (const WavesMidiBuffer& source)
\r
46 for (WavesMidiBufferConstIterator it = source.begin (); it != source.end (); ++it) {
\r
47 push_back (new WavesMidiEvent (**it));
\r