Ardour
9.0-pre0-822-g12e3bc5c20
pianoroll_velocity.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2024 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 "
ghost_event.h
"
22
#include "
velocity_display.h
"
23
24
class
PianorollVelocityDisplay
:
public
VelocityDisplay
25
{
26
public
:
27
PianorollVelocityDisplay
(
EditingContext
&,
MidiViewBackground
&,
MidiView
&,
ArdourCanvas::Rectangle
& base_rect,
Gtkmm2ext::Color
oc);
28
29
void
remove_note
(
NoteBase
*);
30
void
set_colors
();
31
void
set_height
(
double
);
32
33
private
:
34
ArdourCanvas::Container
*
_note_group
;
35
GhostEvent::EventList
events
;
36
GhostEvent::EventList::iterator
_optimization_iterator
;
37
38
bool
base_event
(GdkEvent*);
39
bool
lollevent
(GdkEvent*,
GhostEvent
*);
40
};
ArdourCanvas::Container
Definition:
container.h:40
ArdourCanvas::Rectangle
Definition:
rectangle.h:31
EditingContext
Definition:
editing_context.h:79
GhostEvent
Definition:
ghost_event.h:19
GhostEvent::EventList
std::unordered_map< std::shared_ptr< NoteType >, GhostEvent * > EventList
Definition:
ghost_event.h:34
MidiViewBackground
Definition:
midi_view_background.h:50
MidiView
Definition:
midi_view.h:103
NoteBase
Definition:
note_base.h:59
PianorollVelocityDisplay
Definition:
pianoroll_velocity.h:25
PianorollVelocityDisplay::set_height
void set_height(double)
PianorollVelocityDisplay::remove_note
void remove_note(NoteBase *)
PianorollVelocityDisplay::_optimization_iterator
GhostEvent::EventList::iterator _optimization_iterator
Definition:
pianoroll_velocity.h:36
PianorollVelocityDisplay::base_event
bool base_event(GdkEvent *)
PianorollVelocityDisplay::lollevent
bool lollevent(GdkEvent *, GhostEvent *)
PianorollVelocityDisplay::set_colors
void set_colors()
PianorollVelocityDisplay::PianorollVelocityDisplay
PianorollVelocityDisplay(EditingContext &, MidiViewBackground &, MidiView &, ArdourCanvas::Rectangle &base_rect, Gtkmm2ext::Color oc)
PianorollVelocityDisplay::events
GhostEvent::EventList events
Definition:
pianoroll_velocity.h:35
PianorollVelocityDisplay::_note_group
ArdourCanvas::Container * _note_group
Definition:
pianoroll_velocity.h:34
VelocityDisplay
Definition:
velocity_display.h:42
ghost_event.h
Gtkmm2ext::Color
uint32_t Color
Definition:
colors.h:33
velocity_display.h
gtk2_ardour
pianoroll_velocity.h
Generated on Wed Feb 5 2025 03:14:24 for Ardour by
1.9.1