Ardour  9.0-pre0-582-g084a23a80d
Note Class Reference

#include <note.h>

Inheritance diagram for Note:
[legend]

Public Types

typedef Evoral::Note< Temporal::BeatsNoteType
 
- Public Types inherited from NoteBase
typedef Evoral::Note< Temporal::BeatsNoteType
 

Public Member Functions

 Note (MidiView &region, ArdourCanvas::Item *parent, const std::shared_ptr< NoteType > note=std::shared_ptr< NoteType >(), bool with_events=true)
 
 ~Note ()
 
ArdourCanvas::Coord x0 () const
 
ArdourCanvas::Coord y0 () const
 
ArdourCanvas::Coord x1 () const
 
ArdourCanvas::Coord y1 () const
 
void set (ArdourCanvas::Rect)
 
void set_x0 (ArdourCanvas::Coord)
 
void set_y0 (ArdourCanvas::Coord)
 
void set_x1 (ArdourCanvas::Coord)
 
void set_y1 (ArdourCanvas::Coord)
 
void set_outline_what (ArdourCanvas::Rectangle::What)
 
void set_outline_all ()
 
void set_outline_color (uint32_t)
 
void set_fill_color (uint32_t)
 
void show ()
 
void hide ()
 
void set_ignore_events (bool)
 
void set_velocity (double)
 
double visual_velocity () const
 
void move_event (double dx, double dy)
 
- Public Member Functions inherited from NoteBase
 NoteBase (MidiView &region, bool, const std::shared_ptr< NoteType > note=std::shared_ptr< NoteType >())
 
virtual ~NoteBase ()
 
void set_item (ArdourCanvas::Item *)
 
ArdourCanvas::Itemitem () const
 
bool valid () const
 
void invalidate ()
 
void validate ()
 
bool selected () const
 
void set_selected (bool yn)
 
void set_hide_selection (bool yn)
 
uint32_t base_color ()
 
void show_velocity ()
 
void hide_velocity ()
 
void on_channel_change (uint8_t channel)
 
void on_channel_selection_change (uint16_t selection)
 
float mouse_x_fraction () const
 
float mouse_y_fraction () const
 
const std::shared_ptr< NoteTypenote () const
 
MidiViewregion_view () const
 
bool mouse_near_ends () const
 
virtual bool big_enough_to_trim () const
 

Private Attributes

ArdourCanvas::Note_visual_note
 

Additional Inherited Members

- Static Public Member Functions inherited from NoteBase
static uint32_t base_color (int velocity, ARDOUR::ColorMode color_mode, Gtkmm2ext::Color, int channel, bool selected)
 
static void set_colors ()
 
static Gtkmm2ext::Color meter_style_fill_color (uint8_t vel, bool selected)
 
static uint32_t calculate_outline (uint32_t color, bool showing_selection=false)
 calculate outline colors from fill colors of notes More...
 
- Static Public Attributes inherited from NoteBase
static const uint32_t midi_channel_colors [16]
 hue circle divided into 16 equal-looking parts, courtesy Thorsten Wilms More...
 
- Protected Types inherited from NoteBase
enum  State { None , Pressed , Dragging }
 
- Protected Member Functions inherited from NoteBase
void set_mouse_fractions (GdkEvent *)
 
- Protected Attributes inherited from NoteBase
MidiView_region
 
ArdourCanvas::Item_item
 
ArdourCanvas::Text_text
 
State _state
 
const std::shared_ptr< NoteType_note
 
bool _with_events
 
bool _own_note
 
Flags _flags
 
bool _valid
 
float _mouse_x_fraction
 
float _mouse_y_fraction
 

Detailed Description

Definition at line 33 of file gtk2_ardour/note.h.

Member Typedef Documentation

◆ NoteType

Definition at line 36 of file gtk2_ardour/note.h.

Constructor & Destructor Documentation

◆ Note()

Note::Note ( MidiView region,
ArdourCanvas::Item parent,
const std::shared_ptr< NoteType note = std::shared_ptr< NoteType >(),
bool  with_events = true 
)

◆ ~Note()

Note::~Note ( )

Member Function Documentation

◆ hide()

void Note::hide ( )
virtual

Implements NoteBase.

◆ move_event()

void Note::move_event ( double  dx,
double  dy 
)
virtual

Implements NoteBase.

◆ set()

void Note::set ( ArdourCanvas::Rect  )

◆ set_fill_color()

void Note::set_fill_color ( uint32_t  )
virtual

Implements NoteBase.

◆ set_ignore_events()

void Note::set_ignore_events ( bool  )
virtual

Implements NoteBase.

◆ set_outline_all()

void Note::set_outline_all ( )

◆ set_outline_color()

void Note::set_outline_color ( uint32_t  )
virtual

Implements NoteBase.

◆ set_outline_what()

void Note::set_outline_what ( ArdourCanvas::Rectangle::What  )

◆ set_velocity()

void Note::set_velocity ( double  )
virtual

Reimplemented from NoteBase.

◆ set_x0()

void Note::set_x0 ( ArdourCanvas::Coord  )

◆ set_x1()

void Note::set_x1 ( ArdourCanvas::Coord  )

◆ set_y0()

void Note::set_y0 ( ArdourCanvas::Coord  )

◆ set_y1()

void Note::set_y1 ( ArdourCanvas::Coord  )

◆ show()

void Note::show ( )
virtual

Implements NoteBase.

◆ visual_velocity()

double Note::visual_velocity ( ) const
virtual

Implements NoteBase.

◆ x0()

ArdourCanvas::Coord Note::x0 ( ) const
virtual

Implements NoteBase.

◆ x1()

ArdourCanvas::Coord Note::x1 ( ) const
virtual

Implements NoteBase.

◆ y0()

ArdourCanvas::Coord Note::y0 ( ) const
virtual

Implements NoteBase.

◆ y1()

ArdourCanvas::Coord Note::y1 ( ) const
virtual

Implements NoteBase.

Member Data Documentation

◆ _visual_note

ArdourCanvas::Note* Note::_visual_note
private

Definition at line 73 of file gtk2_ardour/note.h.


The documentation for this class was generated from the following file: