X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fnote_player.h;h=03970c4706136f76cfe49f782bad812e1bcd3f63;hb=78d5e6af289ff0e05a0058d078b79d3cc4d1c27d;hp=e5ff93e113096cec16e7e72a31c1fe4b6e201c9c;hpb=a9ebb3576e53c30b27016a442168daf8e9880707;p=ardour.git diff --git a/gtk2_ardour/note_player.h b/gtk2_ardour/note_player.h index e5ff93e113..03970c4706 100644 --- a/gtk2_ardour/note_player.h +++ b/gtk2_ardour/note_player.h @@ -1,20 +1,21 @@ /* - Copyright (C) 2011 Paul Davis - - This program 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. - - This program 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 more 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., 675 Mass Ave, Cambridge, MA 02139, USA. -*/ + * Copyright (C) 2010-2017 Paul Davis + * Copyright (C) 2011-2015 David Robillard + * + * This program 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. + * + * This program 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 more 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 Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ #ifndef __gtk2_ardour_note_player_h__ #define __gtk2_ardour_note_player_h__ @@ -23,7 +24,7 @@ #include #include -#include "evoral/Note.hpp" +#include "evoral/Note.h" namespace ARDOUR { class MidiTrack; @@ -31,14 +32,16 @@ namespace ARDOUR { class NotePlayer : public sigc::trackable { public: - typedef Evoral::Note NoteType; + typedef Evoral::Note NoteType; NotePlayer (boost::shared_ptr); - ~NotePlayer () {} + ~NotePlayer (); void add (boost::shared_ptr); void play (); + void on (); void off (); + void clear (); static bool _off (NotePlayer*);