Ardour  9.0-pre0-582-g084a23a80d
transpose.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Paul Davis <paul@linuxaudiosystems.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #pragma once
20 
22 #include "ardour/midi_model.h"
23 #include "ardour/midi_operator.h"
24 
25 namespace ARDOUR {
26 
28 public:
31 
32  Transpose (int semitones);
33 
34  PBD::Command* operator() (std::shared_ptr<ARDOUR::MidiModel> model,
36  std::vector<Notes>& seqs);
37 
38  std::string name () const { return std::string ("transpose"); }
39 
40 private:
42 };
43 
44 } /* namespace */
45 
std::string name() const
Definition: transpose.h:38
Evoral::Sequence< Temporal::Beats >::Notes Notes
Definition: transpose.h:30
Evoral::Sequence< Temporal::Beats >::NotePtr NotePtr
Definition: transpose.h:29
Transpose(int semitones)
std::multiset< NotePtr, EarlierNoteComparator > Notes
Definition: Sequence.h:157
std::shared_ptr< Evoral::Note< Time > > NotePtr
Definition: Sequence.h:89
#define LIBARDOUR_API