X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fevoral%2Fevoral%2FSequence.hpp;h=b4e11ba808a029096502e6e67a94e22938e9c498;hb=8d4bf70c7e40429e0a3ba2686f30c7c38871532f;hp=d78c69df5790664bf00818447c428bb677249de4;hpb=3d594b460b1d0fdbc6799ded15201174d9a2c03c;p=ardour.git diff --git a/libs/evoral/evoral/Sequence.hpp b/libs/evoral/evoral/Sequence.hpp index d78c69df57..b4e11ba808 100644 --- a/libs/evoral/evoral/Sequence.hpp +++ b/libs/evoral/evoral/Sequence.hpp @@ -1,16 +1,16 @@ /* This file is part of Evoral. * Copyright (C) 2008 Dave Robillard * Copyright (C) 2000-2008 Paul Davis - * + * * 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 @@ -35,9 +35,9 @@ namespace Evoral { class TypeMap; -template class EventSink; -template class Note; -template class Event; +template class EventSink; +template class Note; +template class Event; /** An iterator over (the x axis of) a 2-d double coordinate space. */ @@ -58,12 +58,10 @@ public: /** This is a higher level view of events, with separate representations for * notes (instead of just unassociated note on/off events) and controller data. * Controller data is represented as a list of time-stamped float values. */ -template +template class Sequence : virtual public ControlSet { public: Sequence(const TypeMap& type_map, size_t size=0); - - bool read_locked() { return _read_iter.locked(); } void write_lock(); void write_unlock(); @@ -80,78 +78,86 @@ public: bool writing() const { return _writing; } void end_write(bool delete_stuck=false); - size_t read(EventSink& dst, - timestamp_t start, - timedur_t length, - timestamp_t stamp_offset) const; - /** Resizes vector if necessary (NOT realtime safe) */ - void append(const Event& ev); - - inline const boost::shared_ptr< const Note > note_at(unsigned i) const { return _notes[i]; } - inline const boost::shared_ptr< Note > note_at(unsigned i) { return _notes[i]; } + void append(const Event