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
21
#include "
ardour/libardour_visibility.h
"
22
#include "
ardour/midi_model.h
"
23
#include "
ardour/midi_operator.h
"
24
25
namespace
ARDOUR
{
26
27
class
LIBARDOUR_API
Transpose
:
public
MidiOperator
{
28
public
:
29
typedef
Evoral::Sequence<Temporal::Beats>::NotePtr
NotePtr
;
30
typedef
Evoral::Sequence<Temporal::Beats>::Notes
Notes
;
31
32
Transpose
(
int
semitones);
33
34
PBD::Command
* operator() (std::shared_ptr<ARDOUR::MidiModel> model,
35
Temporal::Beats
position
,
36
std::vector<Notes>& seqs);
37
38
std::string
name
()
const
{
return
std::string (
"transpose"
); }
39
40
private
:
41
int
_semitones
;
42
};
43
44
}
/* namespace */
45
ARDOUR::MidiOperator
Definition:
midi_operator.h:38
ARDOUR::Transpose
Definition:
transpose.h:27
ARDOUR::Transpose::name
std::string name() const
Definition:
transpose.h:38
ARDOUR::Transpose::Notes
Evoral::Sequence< Temporal::Beats >::Notes Notes
Definition:
transpose.h:30
ARDOUR::Transpose::NotePtr
Evoral::Sequence< Temporal::Beats >::NotePtr NotePtr
Definition:
transpose.h:29
ARDOUR::Transpose::_semitones
int _semitones
Definition:
transpose.h:41
ARDOUR::Transpose::Transpose
Transpose(int semitones)
Evoral::Sequence::Notes
std::multiset< NotePtr, EarlierNoteComparator > Notes
Definition:
Sequence.h:157
Evoral::Sequence::NotePtr
std::shared_ptr< Evoral::Note< Time > > NotePtr
Definition:
Sequence.h:89
PBD::Command
Definition:
command.h:35
Temporal::Beats
Definition:
beats.h:65
libardour_visibility.h
LIBARDOUR_API
#define LIBARDOUR_API
Definition:
libardour_visibility.h:38
midi_model.h
midi_operator.h
ARDOUR
Definition:
analysis_window.h:44
MIDI::position
@ position
Definition:
midi++2/midi++/types.h:51
libs
ardour
ardour
transpose.h
Generated on Wed Dec 25 2024 05:44:55 for Ardour by
1.9.1